Trendsic Platform Service

<back to all web services

CrewAssignmentsProjectRequest

Requires Authentication
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/CrewAssignments/Project/{SelectedDate}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class CrewAssignmentsProjectRequest
{
    open var SelectedDate:Date? = null
    open var Project:ArrayList<Project> = ArrayList<Project>()
}

open class Project
{
    open var ProjectID:Int? = null
    open var ProjectUID:UUID? = null
    open var ProjectName:String? = null
    open var ImageURL:String? = null
    open var ImageKey:String? = null
    open var ClientName:String? = null
    open var ClientPhone:String? = null
    open var ClientEmail:String? = null
    open var NotifyCustomerOnVisitCompletion:Boolean? = null
    open var ClientContactID:Int? = null
    open var ProjectManagerID:Int? = null
    open var ProjectManagerName:String? = null
    open var StartDate:Date? = null
    open var EndDate:Date? = null
    open var ActualStartDate:Date? = null
    open var ActualEndDate:Date? = null
    open var JobCount:Int? = null
    open var CrewMemberCount:Int? = null
    open var CrewAvatarsJson:String? = null
    open var CrewNamesSearch:String? = null
    open var EquipmentCount:Int? = null
    open var MaterialCount:Int? = null
    open var ProjectStatusID:Short? = null
    open var ProjectStatusDescription:String? = null
    open var Budget:BigDecimal? = null
    open var CostToDate:BigDecimal? = null
    open var ProjectLocation:String? = null
    open var ProjectType:String? = null
    open var ProjectSponsor:String? = null
    open var CreatedBy:String? = null
    open var CreatedAt:Date? = null
    open var UpdatedAt:Date? = null
    open var ProjectDescription:String? = null
    open var Scope:String? = null
    open var StatusId:Int? = null
    open var BranchId:UUID? = null
    open var BranchName:String? = null
    open var Location:Location? = null
}

open class Location
{
    open var Id:UUID? = null
    open var ClientId:UUID? = null
    open var Name:String? = null
    open var Address1:String? = null
    open var Address2:String? = null
    open var City:String? = null
    open var State:String? = null
    open var Zip:String? = null
    open var Phone:String? = null
    open var Fax:String? = null
    open var URL:String? = null
    open var Email:String? = null
    open var TimeZone:String? = null
    open var Active:Boolean? = null
    open var EntDate:Date? = null
    open var ModDate:Date? = null
    open var LocationImage:String? = null
}

open class CrewAssignmentsProjectResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Project:ArrayList<Project> = ArrayList<Project>()
}

Kotlin CrewAssignmentsProjectRequest 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/Project/{SelectedDate} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	SelectedDate: 0001-01-01,
	Project: 
	[
		{
			ProjectID: 0,
			ProjectUID: 00000000000000000000000000000000,
			ProjectName: String,
			ImageURL: String,
			ImageKey: String,
			ClientName: String,
			ClientPhone: String,
			ClientEmail: String,
			NotifyCustomerOnVisitCompletion: False,
			ClientContactID: 0,
			ProjectManagerID: 0,
			ProjectManagerName: String,
			StartDate: 0001-01-01,
			EndDate: 0001-01-01,
			ActualStartDate: 0001-01-01,
			ActualEndDate: 0001-01-01,
			JobCount: 0,
			CrewMemberCount: 0,
			CrewAvatarsJson: String,
			CrewNamesSearch: String,
			EquipmentCount: 0,
			MaterialCount: 0,
			ProjectStatusID: 0,
			ProjectStatusDescription: String,
			Budget: 0,
			CostToDate: 0,
			ProjectLocation: String,
			ProjectType: String,
			ProjectSponsor: String,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			ProjectDescription: String,
			Scope: String,
			StatusId: 0,
			BranchId: 00000000000000000000000000000000,
			BranchName: String,
			Location: 
			{
				Id: 00000000000000000000000000000000,
				ClientId: 00000000000000000000000000000000,
				Name: String,
				Address1: String,
				Address2: String,
				City: String,
				State: String,
				Zip: String,
				Phone: String,
				Fax: String,
				URL: String,
				Email: String,
				TimeZone: String,
				Active: False,
				EntDate: 0001-01-01,
				ModDate: 0001-01-01,
				LocationImage: 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
		}
	},
	Project: 
	[
		{
			ProjectID: 0,
			ProjectUID: 00000000000000000000000000000000,
			ProjectName: String,
			ImageURL: String,
			ImageKey: String,
			ClientName: String,
			ClientPhone: String,
			ClientEmail: String,
			NotifyCustomerOnVisitCompletion: False,
			ClientContactID: 0,
			ProjectManagerID: 0,
			ProjectManagerName: String,
			StartDate: 0001-01-01,
			EndDate: 0001-01-01,
			ActualStartDate: 0001-01-01,
			ActualEndDate: 0001-01-01,
			JobCount: 0,
			CrewMemberCount: 0,
			CrewAvatarsJson: String,
			CrewNamesSearch: String,
			EquipmentCount: 0,
			MaterialCount: 0,
			ProjectStatusID: 0,
			ProjectStatusDescription: String,
			Budget: 0,
			CostToDate: 0,
			ProjectLocation: String,
			ProjectType: String,
			ProjectSponsor: String,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			ProjectDescription: String,
			Scope: String,
			StatusId: 0,
			BranchId: 00000000000000000000000000000000,
			BranchName: String,
			Location: 
			{
				Id: 00000000000000000000000000000000,
				ClientId: 00000000000000000000000000000000,
				Name: String,
				Address1: String,
				Address2: String,
				City: String,
				State: String,
				Zip: String,
				Phone: String,
				Fax: String,
				URL: String,
				Email: String,
				TimeZone: String,
				Active: False,
				EntDate: 0001-01-01,
				ModDate: 0001-01-01,
				LocationImage: String
			}
		}
	]
}