digitaluapi

<back to all web services

MessageTonesEdit

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

public class dtos
{

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

        @DataMember(Order=2)
        @Validate(Validator="NotNull")
        public Integer TenantsId = null;

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

        @DataMember(Order=4)
        @Validate(Validator="NotNull")
        public String Name = null;
        
        public Integer getId() { return Id; }
        public MessageTonesEdit setId(Integer value) { this.Id = value; return this; }
        public Integer getTenantsId() { return TenantsId; }
        public MessageTonesEdit setTenantsId(Integer value) { this.TenantsId = value; return this; }
        public Long getAvatarsId() { return AvatarsId; }
        public MessageTonesEdit setAvatarsId(Long value) { this.AvatarsId = value; return this; }
        public String getName() { return Name; }
        public MessageTonesEdit setName(String value) { this.Name = value; return this; }
    }

    public static class MessageTonesEditResponse
    {
        @DataMember(Order=1)
        public Integer Id = null;

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

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

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

        @DataMember(Order=6)
        public ResponseStatus ResponseStatus = null;
        
        public Integer getId() { return Id; }
        public MessageTonesEditResponse setId(Integer value) { this.Id = value; return this; }
        public Integer getTenantsId() { return TenantsId; }
        public MessageTonesEditResponse setTenantsId(Integer value) { this.TenantsId = value; return this; }
        public Long getAvatarsId() { return AvatarsId; }
        public MessageTonesEditResponse setAvatarsId(Long value) { this.AvatarsId = value; return this; }
        public String getName() { return Name; }
        public MessageTonesEditResponse setName(String value) { this.Name = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public MessageTonesEditResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java MessageTonesEdit DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

PUT /message_tones/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0,"TenantsId":0,"AvatarsId":0,"Name":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"TenantsId":0,"AvatarsId":0,"Name":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}