Trendsic Platform Service

<back to all web services

WebixKanbanTaskCreateRequest

The following routes are available for this service:
POST/v1/webix/kanban/tasks
POST/v1/webix/kanban/tasks/{ProjectUID}
"use strict";
export class WebixKanbanComment {
    /** @param {{id?:string,user_id?:number,date?:string,text?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {?number} */
    user_id;
    /** @type {string} */
    date;
    /** @type {string} */
    text;
}
export class KanbanTaskAttachment {
    /** @param {{id?:string,link?:string,size?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    link;
    /** @type {number} */
    size;
}
export class WebixKanbanTask {
    /** @param {{id?:string,status?:string,user_id?:number,text?:string,color?:string,tags?:string[],comments?:WebixKanbanComment[],attachments?:KanbanTaskAttachment[],list?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    status;
    /** @type {number} */
    user_id;
    /** @type {string} */
    text;
    /** @type {string} */
    color;
    /** @type {string[]} */
    tags = [];
    /** @type {WebixKanbanComment[]} */
    comments = [];
    /** @type {KanbanTaskAttachment[]} */
    attachments = [];
    /** @type {number} */
    list;
}
export class WebixKanbanTaskResponse extends WebixKanbanTask {
    /** @param {{id?:string,status?:string,user_id?:number,text?:string,color?:string,tags?:string[],comments?:WebixKanbanComment[],attachments?:KanbanTaskAttachment[],list?:number}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
}
export class WebixKanbanTaskCreateRequest extends WebixKanbanTask {
    /** @param {{ProjectUID?:string,id?:string,status?:string,user_id?:number,text?:string,color?:string,tags?:string[],comments?:WebixKanbanComment[],attachments?:KanbanTaskAttachment[],list?:number}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {string} */
    ProjectUID;
}

JavaScript WebixKanbanTaskCreateRequest 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.

POST /v1/webix/kanban/tasks HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<WebixKanbanTaskCreateRequest 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>
  <ProjectUID>00000000-0000-0000-0000-000000000000</ProjectUID>
</WebixKanbanTaskCreateRequest>
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>