Trendsic Platform Service

<back to all web services

NcrDispositionRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/ncrs/{NcrID}/disposition
"use strict";
export class Ncr {
    /** @param {{NcrID?:number,NcrUID?:string,ProjectID?:number,QcTestID?:number,NcrNo?:string,Title?:string,Description?:string,CostCode?:string,Disposition?:string,DispositionType?:string,CorrectiveAction?:string,DispositionedBy?:string,DispositionedAt?:string,CreatedBy?:string,CreatedAt?:string,UpdatedAt?:string,TestNo?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    NcrID;
    /** @type {string} */
    NcrUID;
    /** @type {number} */
    ProjectID;
    /** @type {?number} */
    QcTestID;
    /** @type {string} */
    NcrNo;
    /** @type {string} */
    Title;
    /** @type {string} */
    Description;
    /** @type {string} */
    CostCode;
    /** @type {string} */
    Disposition;
    /** @type {string} */
    DispositionType;
    /** @type {string} */
    CorrectiveAction;
    /** @type {string} */
    DispositionedBy;
    /** @type {?string} */
    DispositionedAt;
    /** @type {string} */
    CreatedBy;
    /** @type {?string} */
    CreatedAt;
    /** @type {?string} */
    UpdatedAt;
    /** @type {string} */
    TestNo;
}
export class NcrResponse {
    /** @param {{ResponseStatus?:ResponseStatus,Ncr?:Ncr}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {Ncr} */
    Ncr;
}
export class NcrDispositionRequest {
    /** @param {{ProjectID?:number,NcrID?:number,DispositionType?:string,CorrectiveAction?:string,Close?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ProjectID;
    /** @type {number} */
    NcrID;
    /** @type {string} */
    DispositionType;
    /** @type {string} */
    CorrectiveAction;
    /** @type {boolean} */
    Close;
}

JavaScript NcrDispositionRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/projects/{ProjectID}/ncrs/{NcrID}/disposition HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ProjectID":0,"NcrID":0,"DispositionType":"String","CorrectiveAction":"String","Close":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Ncr":{"NcrID":0,"NcrUID":"00000000000000000000000000000000","ProjectID":0,"QcTestID":0,"NcrNo":"String","Title":"String","Description":"String","CostCode":"String","Disposition":"String","DispositionType":"String","CorrectiveAction":"String","DispositionedBy":"String","DispositionedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","TestNo":"String"}}