Trendsic Platform Service

<back to all web services

AgreementTasksRequest

Requires Authentication
The following routes are available for this service:
GET,PUT,OPTIONS/v1/agreement/{AgreementID}/tasks

export class AgreementTask
{
    public AgreementTaskID: number;
    public AgreementID: number;
    public ServiceTaskID: number;
    public SortOrder: number;
    public Name: string;
    public Category: string;
    public Active: boolean;

    public constructor(init?: Partial<AgreementTask>) { (Object as any).assign(this, init); }
}

export class AgreementTasksResponse
{
    public Tasks: AgreementTask[] = [];
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<AgreementTasksResponse>) { (Object as any).assign(this, init); }
}

export class AgreementTasksRequest
{
    public AgreementID: number;
    public ServiceTaskIds: number[] = [];

    public constructor(init?: Partial<AgreementTasksRequest>) { (Object as any).assign(this, init); }
}

TypeScript AgreementTasksRequest 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 /v1/agreement/{AgreementID}/tasks HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"AgreementID":0,"ServiceTaskIds":[0]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Tasks":[{"AgreementTaskID":0,"AgreementID":0,"ServiceTaskID":0,"SortOrder":0,"Name":"String","Category":"String","Active":false}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}