Trendsic Platform Service

<back to all web services

CrewRequest

Requires Authentication
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/Crew/{CrewID}
GET,POST,PUT,DELETE,OPTIONS/v1/Crew

export class Crew
{
    public CrewID: number;
    public CrewName: string;
    public CrewNumber: string;
    public CrewManagerContactID: number;
    public CrewManagerContactName: string;
    public CrewColor: string;
    public RecordCreatedDate: string;
    public Active: boolean;
    public CreatedByUID: string;
    public ProjectID: number;
    public CrewMemberCount: number;
    public ProjectCrewID: number;
    public ProjectName: string;

    public constructor(init?: Partial<Crew>) { (Object as any).assign(this, init); }
}

export class CrewResponse
{
    public ResponseStatus: ResponseStatus;
    public Crew: Crew[] = [];

    public constructor(init?: Partial<CrewResponse>) { (Object as any).assign(this, init); }
}

export class CrewRequest
{
    public CrewID: number;
    public Crew: Crew[] = [];

    public constructor(init?: Partial<CrewRequest>) { (Object as any).assign(this, init); }
}

TypeScript CrewRequest 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/Crew/{CrewID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"CrewID":0,"Crew":[{"CrewID":0,"CrewName":"String","CrewNumber":"String","CrewManagerContactID":0,"CrewManagerContactName":"String","CrewColor":"String","RecordCreatedDate":"0001-01-01T00:00:00.0000000","Active":false,"CreatedByUID":"00000000000000000000000000000000","ProjectID":0,"CrewMemberCount":0,"ProjectCrewID":0,"ProjectName":"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"}},"Crew":[{"CrewID":0,"CrewName":"String","CrewNumber":"String","CrewManagerContactID":0,"CrewManagerContactName":"String","CrewColor":"String","RecordCreatedDate":"0001-01-01T00:00:00.0000000","Active":false,"CreatedByUID":"00000000000000000000000000000000","ProjectID":0,"CrewMemberCount":0,"ProjectCrewID":0,"ProjectName":"String"}]}