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
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class CrewRequest
{
    open var CrewID:Int? = null
    open var Crew: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 CrewResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Crew:ArrayList<Crew> = ArrayList<Crew>()
}

Kotlin CrewRequest DTOs

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/Crew/{CrewID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
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/csv
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"}]}