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
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class Ncr
            Public Overridable Property NcrID As Integer
            Public Overridable Property NcrUID As Guid
            Public Overridable Property ProjectID As Integer
            Public Overridable Property QcTestID As Integer?
            Public Overridable Property NcrNo As String
            Public Overridable Property Title As String
            Public Overridable Property Description As String
            Public Overridable Property CostCode As String
            Public Overridable Property Disposition As String
            Public Overridable Property DispositionType As String
            Public Overridable Property CorrectiveAction As String
            Public Overridable Property DispositionedBy As String
            Public Overridable Property DispositionedAt As Date?
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
            Public Overridable Property TestNo As String
        End Class

        Public Partial Class NcrCreateRequest
            Public Overridable Property ProjectID As Integer
            Public Overridable Property QcTestID As Integer?
            Public Overridable Property Title As String
            Public Overridable Property Description As String
            Public Overridable Property CostCode As String
        End Class

        Public Partial Class NcrResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Ncr As Ncr
        End Class
    End Namespace
End Namespace

VB.NET NcrCreateRequest 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 HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

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