Trendsic Platform Service

<back to all web services

CrewAssignmentsExportCsvRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/CrewAssignments/Export/CSV/{SelectedDate}

export class CrewAssignmentsExportCsvResponse
{
    public ResponseStatus: ResponseStatus;
    public file: string;

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

export class CrewAssignmentCrewMember
{
    public Name: string;
    public Status: string;

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

export class CrewAssignmentEquipment
{
    public Name: string;
    public Status: string;

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

export class CrewAssignmentJob
{
    public JobName: string;
    public CrewMembers: CrewAssignmentCrewMember[] = [];
    public Equipment: CrewAssignmentEquipment[] = [];

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

export class CrewAssignmentProject
{
    public ProjectName: string;
    public Jobs: CrewAssignmentJob[] = [];

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

export class CrewAssignmentsExportCsvRequest
{
    public SelectedDate: string;
    public projects: CrewAssignmentProject[] = [];

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

TypeScript CrewAssignmentsExportCsvRequest 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/CrewAssignments/Export/CSV/{SelectedDate} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	SelectedDate: 0001-01-01,
	projects: 
	[
		{
			ProjectName: String,
			Jobs: 
			[
				{
					JobName: String,
					CrewMembers: 
					[
						{
							Name: String,
							Status: String
						}
					],
					Equipment: 
					[
						{
							Name: String,
							Status: 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
		}
	},
	file: String
}