| PUT,OPTIONS | /v1/projects/{ProjectID}/ncrs/{NcrID} |
|---|
"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 NcrUpdateRequest {
/** @param {{ProjectID?:number,NcrID?:number,Title?:string,Description?:string,CostCode?:string,CorrectiveAction?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
ProjectID;
/** @type {number} */
NcrID;
/** @type {string} */
Title;
/** @type {string} */
Description;
/** @type {string} */
CostCode;
/** @type {string} */
CorrectiveAction;
}
JavaScript NcrUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/projects/{ProjectID}/ncrs/{NcrID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectID: 0,
NcrID: 0,
Title: String,
Description: String,
CostCode: String,
CorrectiveAction: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01,
TestNo: String
}
}