Trendsic Platform Service

<back to all web services

NcrCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/ncrs
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Ncr() = 
        member val NcrID:Int32 = new Int32() with get,set
        member val NcrUID:Guid = new Guid() with get,set
        member val ProjectID:Int32 = new Int32() with get,set
        member val QcTestID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val NcrNo:String = null with get,set
        member val Title:String = null with get,set
        member val Description:String = null with get,set
        member val CostCode:String = null with get,set
        member val Disposition:String = null with get,set
        member val DispositionType:String = null with get,set
        member val CorrectiveAction:String = null with get,set
        member val DispositionedBy:String = null with get,set
        member val DispositionedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val TestNo:String = null with get,set

    [<AllowNullLiteral>]
    type NcrResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Ncr:Ncr = null with get,set

    [<AllowNullLiteral>]
    type NcrCreateRequest() = 
        member val ProjectID:Int32 = new Int32() with get,set
        member val QcTestID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Title:String = null with get,set
        member val Description:String = null with get,set
        member val CostCode:String = null with get,set

F# NcrCreateRequest DTOs

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

HTTP + JSV

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

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

{
	ProjectID: 0,
	QcTestID: 0,
	Title: String,
	Description: String,
	CostCode: 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
	}
}