Trendsic Platform Service

<back to all web services

CadRenderRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/cad/{AttachmentId}/render
CadRenderRequest Parameters:
NameParameterData TypeRequiredDescription
AttachmentIdpathGuidNo
VersionNobodyint?No
CadRenderResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
DerivativeformCadDerivativeNo
CadDerivative Parameters:
NameParameterData TypeRequiredDescription
CadDerivativeIDformintNo
AttachmentIdformGuidNo
VersionNoformintNo
UrnformstringNo
ObjectKeyformstringNo
StatusformstringNo
ProgressformintNo
StageLabelformstringNo
Has2dformboolNo
Has3dformboolNo
HasPdfformboolNo
ThumbKeyformstringNo
ThumbUrlformstringNo
PdfAttachmentIdformGuid?No
ErrorTextformstringNo
RequestedByformstringNo
RequestedAtformDateTime?No
FinishedAtformDateTime?No
AgeSecondsformintNo

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

HTTP + CSV

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

POST /v1/cad/{AttachmentId}/render HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"AttachmentId":"00000000000000000000000000000000","VersionNo":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Derivative":{"CadDerivativeID":0,"AttachmentId":"00000000000000000000000000000000","VersionNo":0,"Urn":"String","ObjectKey":"String","Status":"String","Progress":0,"StageLabel":"String","Has2d":false,"Has3d":false,"HasPdf":false,"ThumbKey":"String","ThumbUrl":"String","PdfAttachmentId":"00000000000000000000000000000000","ErrorText":"String","RequestedBy":"String","RequestedAt":"0001-01-01T00:00:00.0000000","FinishedAt":"0001-01-01T00:00:00.0000000","AgeSeconds":0}}