Required role: | REGISUserRole |
POST | /DynamicsCRM/Activity/UpdateOwner |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CRMActivityUpdateOwnerRequest
{
public Integer regent_id = null;
public Integer import_id = null;
public String related_username = null;
public Boolean is_contact = null;
public Boolean is_account = null;
public Boolean is_email = null;
public Boolean is_letter = null;
public Boolean is_phonecall = null;
public Boolean is_task = null;
public Boolean is_meeting = null;
public Integer getRegentId() { return regent_id; }
public CRMActivityUpdateOwnerRequest setRegentId(Integer value) { this.regent_id = value; return this; }
public Integer getImportId() { return import_id; }
public CRMActivityUpdateOwnerRequest setImportId(Integer value) { this.import_id = value; return this; }
public String getRelatedUsername() { return related_username; }
public CRMActivityUpdateOwnerRequest setRelatedUsername(String value) { this.related_username = value; return this; }
public Boolean getIsContact() { return is_contact; }
public CRMActivityUpdateOwnerRequest setIsContact(Boolean value) { this.is_contact = value; return this; }
public Boolean getIsAccount() { return is_account; }
public CRMActivityUpdateOwnerRequest setIsAccount(Boolean value) { this.is_account = value; return this; }
public Boolean getIsEmail() { return is_email; }
public CRMActivityUpdateOwnerRequest setIsEmail(Boolean value) { this.is_email = value; return this; }
public Boolean getIsLetter() { return is_letter; }
public CRMActivityUpdateOwnerRequest setIsLetter(Boolean value) { this.is_letter = value; return this; }
public Boolean getIsPhonecall() { return is_phonecall; }
public CRMActivityUpdateOwnerRequest setIsPhonecall(Boolean value) { this.is_phonecall = value; return this; }
public Boolean getIsTask() { return is_task; }
public CRMActivityUpdateOwnerRequest setIsTask(Boolean value) { this.is_task = value; return this; }
public Boolean getIsMeeting() { return is_meeting; }
public CRMActivityUpdateOwnerRequest setIsMeeting(Boolean value) { this.is_meeting = value; return this; }
}
}
Java CRMActivityUpdateOwnerRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/Activity/UpdateOwner HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
regent_id: 0,
import_id: 0,
related_username: String,
is_contact: False,
is_account: False,
is_email: False,
is_letter: False,
is_phonecall: False,
is_task: False,
is_meeting: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }