| PUT,OPTIONS | /v1/webix/kanban/tasks/{id} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class WebixKanbanTaskUpdateRequest extends WebixKanbanTask
{
}
public static class WebixKanbanTask
{
public UUID id = null;
public String status = null;
public Integer user_id = null;
public String text = null;
public String color = null;
public ArrayList<String> tags = new ArrayList<String>();
public ArrayList<WebixKanbanComment> comments = new ArrayList<WebixKanbanComment>();
public ArrayList<KanbanTaskAttachment> attachments = new ArrayList<KanbanTaskAttachment>();
public Integer list = null;
public UUID getId() { return id; }
public WebixKanbanTask setId(UUID value) { this.id = value; return this; }
public String getStatus() { return status; }
public WebixKanbanTask setStatus(String value) { this.status = value; return this; }
public Integer getUserId() { return user_id; }
public WebixKanbanTask setUserId(Integer value) { this.user_id = value; return this; }
public String getText() { return text; }
public WebixKanbanTask setText(String value) { this.text = value; return this; }
public String getColor() { return color; }
public WebixKanbanTask setColor(String value) { this.color = value; return this; }
public ArrayList<String> getTags() { return tags; }
public WebixKanbanTask setTags(ArrayList<String> value) { this.tags = value; return this; }
public ArrayList<WebixKanbanComment> getComments() { return comments; }
public WebixKanbanTask setComments(ArrayList<WebixKanbanComment> value) { this.comments = value; return this; }
public ArrayList<KanbanTaskAttachment> getAttachments() { return attachments; }
public WebixKanbanTask setAttachments(ArrayList<KanbanTaskAttachment> value) { this.attachments = value; return this; }
public Integer getList() { return list; }
public WebixKanbanTask setList(Integer value) { this.list = value; return this; }
}
public static class WebixKanbanComment
{
public String id = null;
public Integer user_id = null;
public String date = null;
public String text = null;
public String getId() { return id; }
public WebixKanbanComment setId(String value) { this.id = value; return this; }
public Integer getUserId() { return user_id; }
public WebixKanbanComment setUserId(Integer value) { this.user_id = value; return this; }
public String getDate() { return date; }
public WebixKanbanComment setDate(String value) { this.date = value; return this; }
public String getText() { return text; }
public WebixKanbanComment setText(String value) { this.text = value; return this; }
}
public static class KanbanTaskAttachment
{
public UUID id = null;
public String link = null;
public Long size = null;
public UUID getId() { return id; }
public KanbanTaskAttachment setId(UUID value) { this.id = value; return this; }
public String getLink() { return link; }
public KanbanTaskAttachment setLink(String value) { this.link = value; return this; }
public Long getSize() { return size; }
public KanbanTaskAttachment setSize(Long value) { this.size = value; return this; }
}
public static class WebixKanbanTaskResponse extends WebixKanbanTask
{
}
}
Java WebixKanbanTaskUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/webix/kanban/tasks/{id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<WebixKanbanTaskUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<attachments>
<KanbanTaskAttachment>
<id>00000000-0000-0000-0000-000000000000</id>
<link>String</link>
<size>0</size>
</KanbanTaskAttachment>
</attachments>
<color>String</color>
<comments>
<WebixKanbanComment>
<date>String</date>
<id>String</id>
<text>String</text>
<user_id>0</user_id>
</WebixKanbanComment>
</comments>
<id>00000000-0000-0000-0000-000000000000</id>
<list>0</list>
<status>String</status>
<tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</tags>
<text>String</text>
<user_id>0</user_id>
</WebixKanbanTaskUpdateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<WebixKanbanTaskResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<attachments>
<KanbanTaskAttachment>
<id>00000000-0000-0000-0000-000000000000</id>
<link>String</link>
<size>0</size>
</KanbanTaskAttachment>
</attachments>
<color>String</color>
<comments>
<WebixKanbanComment>
<date>String</date>
<id>String</id>
<text>String</text>
<user_id>0</user_id>
</WebixKanbanComment>
</comments>
<id>00000000-0000-0000-0000-000000000000</id>
<list>0</list>
<status>String</status>
<tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</tags>
<text>String</text>
<user_id>0</user_id>
</WebixKanbanTaskResponse>