TechStacks!

<back to all web services

UpdateTechnology

Tech
Requires Authentication
The following routes are available for this service:
PUT/technology/{Id}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class UpdateTechnology implements IPut
    {
        public Long id = null;
        public String name = null;
        public String vendorName = null;
        public String vendorUrl = null;
        public String productUrl = null;
        public String logoUrl = null;
        public String description = null;
        public Boolean isLocked = null;
        public TechnologyTier tier = null;
        
        public Long getId() { return id; }
        public UpdateTechnology setId(Long value) { this.id = value; return this; }
        public String getName() { return name; }
        public UpdateTechnology setName(String value) { this.name = value; return this; }
        public String getVendorName() { return vendorName; }
        public UpdateTechnology setVendorName(String value) { this.vendorName = value; return this; }
        public String getVendorUrl() { return vendorUrl; }
        public UpdateTechnology setVendorUrl(String value) { this.vendorUrl = value; return this; }
        public String getProductUrl() { return productUrl; }
        public UpdateTechnology setProductUrl(String value) { this.productUrl = value; return this; }
        public String getLogoUrl() { return logoUrl; }
        public UpdateTechnology setLogoUrl(String value) { this.logoUrl = value; return this; }
        public String getDescription() { return description; }
        public UpdateTechnology setDescription(String value) { this.description = value; return this; }
        public Boolean getIsLocked() { return isLocked; }
        public UpdateTechnology setIsLocked(Boolean value) { this.isLocked = value; return this; }
        public TechnologyTier getTier() { return tier; }
        public UpdateTechnology setTier(TechnologyTier value) { this.tier = value; return this; }
    }

    public static enum TechnologyTier
    {
        ProgrammingLanguage,
        Client,
        Http,
        Server,
        Data,
        SoftwareInfrastructure,
        OperatingSystem,
        HardwareInfrastructure,
        ThirdPartyServices;
    }

    public static class UpdateTechnologyResponse
    {
        public Technology result = null;
        public ResponseStatus responseStatus = null;
        
        public Technology getResult() { return result; }
        public UpdateTechnologyResponse setResult(Technology value) { this.result = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public UpdateTechnologyResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class Technology extends TechnologyBase
    {
        public Long id = null;
        public String name = null;
        public String vendorName = null;
        public String vendorUrl = null;
        public String productUrl = null;
        public String logoUrl = null;
        public String description = null;
        public Date created = null;
        public String createdBy = null;
        public Date lastModified = null;
        public String lastModifiedBy = null;
        public String ownerId = null;
        public String slug = null;
        public Boolean logoApproved = null;
        public Boolean isLocked = null;
        public TechnologyTier tier = null;
        public Date lastStatusUpdate = null;
        public Integer organizationId = null;
        public Long commentsPostId = null;
        public Integer viewCount = null;
        public Integer favCount = null;
        
        public Long getId() { return id; }
        public Technology setId(Long value) { this.id = value; return this; }
        public String getName() { return name; }
        public Technology setName(String value) { this.name = value; return this; }
        public String getVendorName() { return vendorName; }
        public Technology setVendorName(String value) { this.vendorName = value; return this; }
        public String getVendorUrl() { return vendorUrl; }
        public Technology setVendorUrl(String value) { this.vendorUrl = value; return this; }
        public String getProductUrl() { return productUrl; }
        public Technology setProductUrl(String value) { this.productUrl = value; return this; }
        public String getLogoUrl() { return logoUrl; }
        public Technology setLogoUrl(String value) { this.logoUrl = value; return this; }
        public String getDescription() { return description; }
        public Technology setDescription(String value) { this.description = value; return this; }
        public Date getCreated() { return created; }
        public Technology setCreated(Date value) { this.created = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public Technology setCreatedBy(String value) { this.createdBy = value; return this; }
        public Date getLastModified() { return lastModified; }
        public Technology setLastModified(Date value) { this.lastModified = value; return this; }
        public String getLastModifiedBy() { return lastModifiedBy; }
        public Technology setLastModifiedBy(String value) { this.lastModifiedBy = value; return this; }
        public String getOwnerId() { return ownerId; }
        public Technology setOwnerId(String value) { this.ownerId = value; return this; }
        public String getSlug() { return slug; }
        public Technology setSlug(String value) { this.slug = value; return this; }
        public Boolean isLogoApproved() { return logoApproved; }
        public Technology setLogoApproved(Boolean value) { this.logoApproved = value; return this; }
        public Boolean getIsLocked() { return isLocked; }
        public Technology setIsLocked(Boolean value) { this.isLocked = value; return this; }
        public TechnologyTier getTier() { return tier; }
        public Technology setTier(TechnologyTier value) { this.tier = value; return this; }
        public Date getLastStatusUpdate() { return lastStatusUpdate; }
        public Technology setLastStatusUpdate(Date value) { this.lastStatusUpdate = value; return this; }
        public Integer getOrganizationId() { return organizationId; }
        public Technology setOrganizationId(Integer value) { this.organizationId = value; return this; }
        public Long getCommentsPostId() { return commentsPostId; }
        public Technology setCommentsPostId(Long value) { this.commentsPostId = value; return this; }
        public Integer getViewCount() { return viewCount; }
        public Technology setViewCount(Integer value) { this.viewCount = value; return this; }
        public Integer getFavCount() { return favCount; }
        public Technology setFavCount(Integer value) { this.favCount = value; return this; }
    }

    public static class TechnologyBase
    {
        public Long id = null;
        public String name = null;
        public String vendorName = null;
        public String vendorUrl = null;
        public String productUrl = null;
        public String logoUrl = null;
        public String description = null;
        public Date created = null;
        public String createdBy = null;
        public Date lastModified = null;
        public String lastModifiedBy = null;
        public String ownerId = null;
        public String slug = null;
        public Boolean logoApproved = null;
        public Boolean isLocked = null;
        public TechnologyTier tier = null;
        public Date lastStatusUpdate = null;
        public Integer organizationId = null;
        public Long commentsPostId = null;
        public Integer viewCount = null;
        public Integer favCount = null;
        
        public Long getId() { return id; }
        public TechnologyBase setId(Long value) { this.id = value; return this; }
        public String getName() { return name; }
        public TechnologyBase setName(String value) { this.name = value; return this; }
        public String getVendorName() { return vendorName; }
        public TechnologyBase setVendorName(String value) { this.vendorName = value; return this; }
        public String getVendorUrl() { return vendorUrl; }
        public TechnologyBase setVendorUrl(String value) { this.vendorUrl = value; return this; }
        public String getProductUrl() { return productUrl; }
        public TechnologyBase setProductUrl(String value) { this.productUrl = value; return this; }
        public String getLogoUrl() { return logoUrl; }
        public TechnologyBase setLogoUrl(String value) { this.logoUrl = value; return this; }
        public String getDescription() { return description; }
        public TechnologyBase setDescription(String value) { this.description = value; return this; }
        public Date getCreated() { return created; }
        public TechnologyBase setCreated(Date value) { this.created = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public TechnologyBase setCreatedBy(String value) { this.createdBy = value; return this; }
        public Date getLastModified() { return lastModified; }
        public TechnologyBase setLastModified(Date value) { this.lastModified = value; return this; }
        public String getLastModifiedBy() { return lastModifiedBy; }
        public TechnologyBase setLastModifiedBy(String value) { this.lastModifiedBy = value; return this; }
        public String getOwnerId() { return ownerId; }
        public TechnologyBase setOwnerId(String value) { this.ownerId = value; return this; }
        public String getSlug() { return slug; }
        public TechnologyBase setSlug(String value) { this.slug = value; return this; }
        public Boolean isLogoApproved() { return logoApproved; }
        public TechnologyBase setLogoApproved(Boolean value) { this.logoApproved = value; return this; }
        public Boolean getIsLocked() { return isLocked; }
        public TechnologyBase setIsLocked(Boolean value) { this.isLocked = value; return this; }
        public TechnologyTier getTier() { return tier; }
        public TechnologyBase setTier(TechnologyTier value) { this.tier = value; return this; }
        public Date getLastStatusUpdate() { return lastStatusUpdate; }
        public TechnologyBase setLastStatusUpdate(Date value) { this.lastStatusUpdate = value; return this; }
        public Integer getOrganizationId() { return organizationId; }
        public TechnologyBase setOrganizationId(Integer value) { this.organizationId = value; return this; }
        public Long getCommentsPostId() { return commentsPostId; }
        public TechnologyBase setCommentsPostId(Long value) { this.commentsPostId = value; return this; }
        public Integer getViewCount() { return viewCount; }
        public TechnologyBase setViewCount(Integer value) { this.viewCount = value; return this; }
        public Integer getFavCount() { return favCount; }
        public TechnologyBase setFavCount(Integer value) { this.favCount = value; return this; }
    }

}

Java UpdateTechnology DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /technology/{Id} HTTP/1.1 
Host: techstacks.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateTechnology xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel">
  <Description>String</Description>
  <Id>0</Id>
  <IsLocked>false</IsLocked>
  <LogoUrl>String</LogoUrl>
  <Name>String</Name>
  <ProductUrl>String</ProductUrl>
  <Tier>ProgrammingLanguage</Tier>
  <VendorName>String</VendorName>
  <VendorUrl>String</VendorUrl>
</UpdateTechnology>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UpdateTechnologyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
    <d2p1:CommentsPostId>0</d2p1:CommentsPostId>
    <d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
    <d2p1:CreatedBy>String</d2p1:CreatedBy>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:FavCount>0</d2p1:FavCount>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:IsLocked>false</d2p1:IsLocked>
    <d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
    <d2p1:LastModifiedBy>String</d2p1:LastModifiedBy>
    <d2p1:LastStatusUpdate>0001-01-01T00:00:00</d2p1:LastStatusUpdate>
    <d2p1:LogoApproved>false</d2p1:LogoApproved>
    <d2p1:LogoUrl>String</d2p1:LogoUrl>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:OrganizationId>0</d2p1:OrganizationId>
    <d2p1:OwnerId>String</d2p1:OwnerId>
    <d2p1:ProductUrl>String</d2p1:ProductUrl>
    <d2p1:Slug>String</d2p1:Slug>
    <d2p1:Tier>ProgrammingLanguage</d2p1:Tier>
    <d2p1:VendorName>String</d2p1:VendorName>
    <d2p1:VendorUrl>String</d2p1:VendorUrl>
    <d2p1:ViewCount>0</d2p1:ViewCount>
  </Result>
</UpdateTechnologyResponse>