Create a technician's access off day
post
/crmRestApi/resources/11.13.18.05/serviceTechnicianAccessOffDays
Request
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode: string
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
AccScheduleId: integer
(int64)
Title:
Access Schedule IDThe unique identifier of the access schedule. -
ActiveFlag: boolean
Title:
ActiveMaximum Length:1Default Value:trueIndicates whether this technician access off days is active. -
Comments: string
Title:
CommentsMaximum Length:60Comments for the access off day. -
DayOfWeekCd: string
Title:
Day of Week CodeMaximum Length:30The code that identifies the day of the week for the access off day. -
DayOfWeekOccurrenceCd: string
Title:
Monthly Occurrence CodeMaximum Length:30The code that identifies the occurrence to calculate date by in a month for the access off day. -
Label: string
Title:
NameMaximum Length:60The label for the off day. -
OffDay: integer
(int32)
Title:
DayThe day of the month on which the field service resource isn't allowed to be on the customer site. -
OffMonthCd: string
Title:
Month CodeMaximum Length:30The digits representing month of the year the field service resource isn't allowed to be on the customer site. -
OffYear: integer
(int32)
Title:
YearThe four digit year the field service resource isn't allowed to be on the customer site. -
OverrideCd: string
Title:
Override CodeMaximum Length:30The code that identifies the type of override applied to the technician's access off day. -
OverrideServiceProfileId: integer
(int64)
Title:
Service Profile IDThe unique identifier for the service profile that overrides the technician's access off day. -
OverrideWoId: integer
(int64)
Title:
Work Order IDThe unique identifier for the work order that overrides the technician's access off day. -
SchedOffdaysId: integer
(int64)
Title:
Schedule off Day IDThe unique identifier of the technician's access off day.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : serviceTechnicianAccessOffDays-item-response
Type:
Show Source
object-
AccScheduleId: integer
(int64)
Title:
Access Schedule IDThe unique identifier of the access schedule. -
AccScheduleName: string
Title:
Schedule NameRead Only:trueMaximum Length:50The name of the access schedule. -
AccScheduleNumber: string
Title:
Schedule NumberRead Only:trueMaximum Length:30The alternate unique identifier of the access schedule. -
ActiveFlag: boolean
Title:
ActiveMaximum Length:1Default Value:trueIndicates whether this technician access off days is active. -
Comments: string
Title:
CommentsMaximum Length:60Comments for the access off day. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the technician's access off day. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date and time when the technician's access off day was created. -
DayOfWeekCd: string
Title:
Day of Week CodeMaximum Length:30The code that identifies the day of the week for the access off day. -
DayOfWeekCdMeaning: string
Title:
Day of WeekRead Only:trueMaximum Length:255The day of the week for the technician's access off day. -
DayOfWeekOccurrenceCd: string
Title:
Monthly Occurrence CodeMaximum Length:30The code that identifies the occurrence to calculate date by in a month for the access off day. -
DayOfWeekOccurrenceCdMeaning: string
Title:
Monthly OccurrenceRead Only:trueMaximum Length:255The occurrence to calculate date of a month for the access off day. -
Label: string
Title:
NameMaximum Length:60The label for the off day. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date and time when the technician's access off day was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the technician's access off day. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OffDate: string
(date)
Title:
DateRead Only:trueThe calculated off date. -
OffDay: integer
(int32)
Title:
DayThe day of the month on which the field service resource isn't allowed to be on the customer site. -
OffMonthCd: string
Title:
Month CodeMaximum Length:30The digits representing month of the year the field service resource isn't allowed to be on the customer site. -
OffMonthCdMeaning: string
Title:
MonthRead Only:trueMaximum Length:255The name of the month the field service resource isn't allowed to be on the customer site. -
OffYear: integer
(int32)
Title:
YearThe four digit year the field service resource isn't allowed to be on the customer site. -
OverrideCd: string
Title:
Override CodeMaximum Length:30The code that identifies the type of override applied to the technician's access off day. -
OverrideCdMeaning: string
Title:
OverrideRead Only:trueMaximum Length:255The type of override applied to the technician's access off day. -
OverrideServiceProfileId: integer
(int64)
Title:
Service Profile IDThe unique identifier for the service profile that overrides the technician's access off day. -
OverrideServiceProfileName: string
Title:
Service ProfileRead Only:trueMaximum Length:400The name of the service profile that overrides the technician's access off day. -
OverrideServiceProfileNumber: string
Title:
Service Profile NumberRead Only:trueMaximum Length:30The public unique identifier of the service profile that overrides the technician's access off day. -
OverrideWoId: integer
(int64)
Title:
Work Order IDThe unique identifier for the work order that overrides the technician's access off day. -
OverrideWoNumber: string
Title:
Work Order NumberRead Only:trueMaximum Length:30The public unique identifier of the work order that overrides the technician's access off day. -
SchedOffdaysId: integer
(int64)
Title:
Schedule off Day IDThe unique identifier of the technician's access off day.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.