Trendsic Platform Service

<back to all web services

JobCrewMemberRequest

The following routes are available for this service:
PUT,OPTIONS/v1/Job/crewMember
JobCrewMemberRequest Parameters:
NameParameterData TypeRequiredDescription
ProjectIDbodyintNo
JobIDbodyintNo
CrewMemberIDbodyintNo
AddRemovebodyintNo
JobResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
JobformList<Job>No
RequiresConfirmformboolNo
Job Parameters:
NameParameterData TypeRequiredDescription
JobIDformintNo
JobNameformstringNo
JobTypeIDformintNo
ExpectedStartDateformDateTimeNo
ActualStartDateformDateTimeNo
ExpectedCompletionDateformDateTimeNo
ActualEndDateformDateTimeNo
ActiveformboolNo
CreatedByUIDformGuidNo
ProjectIDformintNo
StatusIdformintNo
AdvancedSchedulingformboolNo
ShowTimesformboolNo
ScheduleformList<CalendarEvent>No
CalendarEvent Parameters:
NameParameterData TypeRequiredDescription
CalendarEventIdformintNo
CalendarIdformGuidNo
EventStartformDateTimeNo
EventEndformDateTimeNo
LocationformstringNo
SummaryformstringNo
DescriptionformstringNo
EventTypeIdformintNo
RecurrenceformboolNo
RecurrenceFrequencyformstringNo
RecurrenceByformstringNo
RecurrenceByValueformstringNo
RecurrenceUntilformDateTimeNo
CreatedByformstringNo
CreatedByNameformstringNo
DateCreatedformDateTimeNo
ModifiedByformstringNo
DateModifiedformDateTimeNo
DeletedformboolNo
TimeZoneformstringNo
OffsetformintNo
TextReminderSentDateformDateTimeNo
ConfirmedformboolNo
ConfirmationTextIdformstringNo
FirstTextReminderIdformstringNo
SecondTextReminderIdformstringNo
LocationUIDformGuid?No
AgentReminderSentDateformDateTimeNo
ContactIdformintNo
IsPrivateformboolNo
ProjectIDformintNo
JobIDformintNo
ProjectStartDateformDateTimeNo
ProjectEndDateformDateTimeNo
MaxCrewEndDateformDateTimeNo
MaxEquipmentEndDateformDateTimeNo
CheckInIdformGuidNo
AllDayformboolNo
JobNameformstringNo
JobStatusNameformstringNo
JobStatusIdformintNo
ProjectNameformstringNo
ResourceIdformintNo
ResourceNameformstringNo
Original_EventStartformDateTimeNo
Original_RecurrenceformboolNo
Original_RecurrenceFrequencyformstringNo
Original_RecurrenceByformstringNo
Original_RecurrenceByValueformstringNo
Original_RecurrenceUntilformDateTimeNo
ChecksumformstringNo

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

HTTP + XML

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

PUT /v1/Job/crewMember HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<JobCrewMemberRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AddRemove>0</AddRemove>
  <CrewMemberID>0</CrewMemberID>
  <JobID>0</JobID>
  <ProjectID>0</ProjectID>
</JobCrewMemberRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<JobResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Job>
    <Job>
      <Active>false</Active>
      <ActualEndDate>0001-01-01T00:00:00</ActualEndDate>
      <ActualStartDate>0001-01-01T00:00:00</ActualStartDate>
      <AdvancedScheduling>false</AdvancedScheduling>
      <CreatedByUID>00000000-0000-0000-0000-000000000000</CreatedByUID>
      <ExpectedCompletionDate>0001-01-01T00:00:00</ExpectedCompletionDate>
      <ExpectedStartDate>0001-01-01T00:00:00</ExpectedStartDate>
      <JobID>0</JobID>
      <JobName>String</JobName>
      <JobTypeID>0</JobTypeID>
      <ProjectID>0</ProjectID>
      <Schedule>
        <CalendarEvent>
          <AgentReminderSentDate>0001-01-01T00:00:00</AgentReminderSentDate>
          <AllDay>false</AllDay>
          <CalendarEventId>0</CalendarEventId>
          <CalendarId>00000000-0000-0000-0000-000000000000</CalendarId>
          <CheckInId>00000000-0000-0000-0000-000000000000</CheckInId>
          <Checksum>String</Checksum>
          <ConfirmationTextId>String</ConfirmationTextId>
          <Confirmed>false</Confirmed>
          <ContactId>0</ContactId>
          <CreatedBy>String</CreatedBy>
          <CreatedByName>String</CreatedByName>
          <DateCreated>0001-01-01T00:00:00</DateCreated>
          <DateModified>0001-01-01T00:00:00</DateModified>
          <Deleted>false</Deleted>
          <Description>String</Description>
          <EventEnd>0001-01-01T00:00:00</EventEnd>
          <EventStart>0001-01-01T00:00:00</EventStart>
          <EventTypeId>0</EventTypeId>
          <FirstTextReminderId>String</FirstTextReminderId>
          <IsPrivate>false</IsPrivate>
          <JobID>0</JobID>
          <JobName>String</JobName>
          <JobStatusId>0</JobStatusId>
          <JobStatusName>String</JobStatusName>
          <Location>String</Location>
          <LocationUID>00000000-0000-0000-0000-000000000000</LocationUID>
          <MaxCrewEndDate>0001-01-01T00:00:00</MaxCrewEndDate>
          <MaxEquipmentEndDate>0001-01-01T00:00:00</MaxEquipmentEndDate>
          <ModifiedBy>String</ModifiedBy>
          <Offset>0</Offset>
          <Original_EventStart>0001-01-01T00:00:00</Original_EventStart>
          <Original_Recurrence>false</Original_Recurrence>
          <Original_RecurrenceBy>String</Original_RecurrenceBy>
          <Original_RecurrenceByValue>String</Original_RecurrenceByValue>
          <Original_RecurrenceFrequency>String</Original_RecurrenceFrequency>
          <Original_RecurrenceUntil>0001-01-01T00:00:00</Original_RecurrenceUntil>
          <ProjectEndDate>0001-01-01T00:00:00</ProjectEndDate>
          <ProjectID>0</ProjectID>
          <ProjectName>String</ProjectName>
          <ProjectStartDate>0001-01-01T00:00:00</ProjectStartDate>
          <Recurrence>false</Recurrence>
          <RecurrenceBy>String</RecurrenceBy>
          <RecurrenceByValue>String</RecurrenceByValue>
          <RecurrenceFrequency>String</RecurrenceFrequency>
          <RecurrenceUntil>0001-01-01T00:00:00</RecurrenceUntil>
          <ResourceId>0</ResourceId>
          <ResourceName>String</ResourceName>
          <SecondTextReminderId>String</SecondTextReminderId>
          <Summary>String</Summary>
          <TextReminderSentDate>0001-01-01T00:00:00</TextReminderSentDate>
          <TimeZone>String</TimeZone>
        </CalendarEvent>
      </Schedule>
      <ShowTimes>false</ShowTimes>
      <StatusId>0</StatusId>
    </Job>
  </Job>
  <RequiresConfirm>false</RequiresConfirm>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</JobResponse>