Trendsic Platform Service

<back to all web services

ProjectCrewListRequest

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


open class ProjectCrewListRequest
{
    open var ProjectID:Int? = null
    open var ProjectCrew:ArrayList<Crew> = ArrayList<Crew>()
}

open class Crew
{
    open var CrewID:Int? = null
    open var CrewName:String? = null
    open var CrewNumber:String? = null
    open var CrewManagerContactID:Int? = null
    open var CrewManagerContactName:String? = null
    open var CrewColor:String? = null
    open var RecordCreatedDate:Date? = null
    open var Active:Boolean? = null
    open var CreatedByUID:UUID? = null
    open var ProjectID:Int? = null
    open var CrewMemberCount:Int? = null
    open var ProjectCrewID:Int? = null
    open var ProjectName:String? = null
}

open class ProjectCrewListResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var ProjectCrew:ArrayList<Crew> = ArrayList<Crew>()
}

Kotlin ProjectCrewListRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /v1/Project/Crew/{ProjectID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ProjectID":0,"ProjectCrew":[{"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: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectCrew":[{"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"}]}