digitaluapi

<back to all web services

StatusCodesEdit

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/status_codes/{Id}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class StatusCodesEdit
    {
        @DataMember(Order=1)
        @Validate(Validator="NotNull")
        public Long Id = null;

        @DataMember(Order=2)
        public Integer TenantsId = null;

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public Long StatusTypesId = null;

        @DataMember(Order=4)
        @Validate(Validator="NotNull")
        public String Code = null;

        @DataMember(Order=5)
        @Validate(Validator="NotNull")
        public String Description = null;
        
        public Long getId() { return Id; }
        public StatusCodesEdit setId(Long value) { this.Id = value; return this; }
        public Integer getTenantsId() { return TenantsId; }
        public StatusCodesEdit setTenantsId(Integer value) { this.TenantsId = value; return this; }
        public Long getStatusTypesId() { return StatusTypesId; }
        public StatusCodesEdit setStatusTypesId(Long value) { this.StatusTypesId = value; return this; }
        public String getCode() { return Code; }
        public StatusCodesEdit setCode(String value) { this.Code = value; return this; }
        public String getDescription() { return Description; }
        public StatusCodesEdit setDescription(String value) { this.Description = value; return this; }
    }

    public static class StatusCodesEditResponse
    {
        @DataMember(Order=1)
        public Long Id = null;

        @DataMember(Order=2)
        public Integer TenantsId = null;

        @DataMember(Order=3)
        public Long StatusTypesId = null;

        @DataMember(Order=4)
        public String Code = null;

        @DataMember(Order=5)
        public String Description = null;

        @DataMember(Order=7)
        public ResponseStatus ResponseStatus = null;
        
        public Long getId() { return Id; }
        public StatusCodesEditResponse setId(Long value) { this.Id = value; return this; }
        public Integer getTenantsId() { return TenantsId; }
        public StatusCodesEditResponse setTenantsId(Integer value) { this.TenantsId = value; return this; }
        public Long getStatusTypesId() { return StatusTypesId; }
        public StatusCodesEditResponse setStatusTypesId(Long value) { this.StatusTypesId = value; return this; }
        public String getCode() { return Code; }
        public StatusCodesEditResponse setCode(String value) { this.Code = value; return this; }
        public String getDescription() { return Description; }
        public StatusCodesEditResponse setDescription(String value) { this.Description = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public StatusCodesEditResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java StatusCodesEdit DTOs

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

HTTP + CSV

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

PUT /status_codes/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Id":0,"TenantsId":0,"StatusTypesId":0,"Code":"String","Description":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Id":0,"TenantsId":0,"StatusTypesId":0,"Code":"String","Description":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}