| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
Content-Type: application/json
Content-Length: length
{"ProjectUID":"00000000000000000000000000000000","id":"00000000000000000000000000000000","status":"String","user_id":0,"text":"String","color":"String","tags":["String"],"comments":[{"id":"String","user_id":0,"date":"String","text":"String"}],"attachments":[{"id":"00000000000000000000000000000000","link":"String","size":0}],"list":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":"00000000000000000000000000000000","status":"String","user_id":0,"text":"String","color":"String","tags":["String"],"comments":[{"id":"String","user_id":0,"date":"String","text":"String"}],"attachments":[{"id":"00000000000000000000000000000000","link":"String","size":0}],"list":0}