Trendsic Platform Service

<back to all web services

QcHoldPointCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/hold-points
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class QcHoldPoint:
    qc_hold_point_i_d: int = 0
    qc_hold_point_u_i_d: Optional[str] = None
    project_i_d: int = 0
    description: Optional[str] = None
    responsible_party: Optional[str] = None
    cost_code: Optional[str] = None
    scheduled_date: Optional[datetime.datetime] = None
    status: Optional[str] = None
    released_by: Optional[str] = None
    released_at: Optional[datetime.datetime] = None
    notes: Optional[str] = None
    created_by: Optional[str] = None
    created_at: Optional[datetime.datetime] = None
    updated_at: Optional[datetime.datetime] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class QcHoldPointResponse:
    response_status: Optional[ResponseStatus] = None
    hold_point: Optional[QcHoldPoint] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class QcHoldPointCreateRequest:
    project_i_d: int = 0
    description: Optional[str] = None
    responsible_party: Optional[str] = None
    cost_code: Optional[str] = None
    scheduled_date: Optional[datetime.datetime] = None

Python QcHoldPointCreateRequest 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}/hold-points HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ProjectID: 0,
	Description: String,
	ResponsibleParty: String,
	CostCode: String,
	ScheduledDate: 0001-01-01
}
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
		}
	},
	HoldPoint: 
	{
		QcHoldPointID: 0,
		QcHoldPointUID: 00000000000000000000000000000000,
		ProjectID: 0,
		Description: String,
		ResponsibleParty: String,
		CostCode: String,
		ScheduledDate: 0001-01-01,
		Status: String,
		ReleasedBy: String,
		ReleasedAt: 0001-01-01,
		Notes: String,
		CreatedBy: String,
		CreatedAt: 0001-01-01,
		UpdatedAt: 0001-01-01
	}
}