Update a technician's access hour
patch
/crmRestApi/resources/11.13.18.05/serviceTechnicianAccessHours/{SchedHoursId}
Request
Path Parameters
-
SchedHoursId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
ActiveFlag: boolean
Title:
ActiveMaximum Length:1Default Value:trueIndicates whether the technician's access hour is active. -
Comments: string
Title:
CommentsMaximum Length:250The comments for the access hour. -
EndHourFirstSlot: string
Title:
End Hour Slot 1Maximum Length:10The end hour for the primary access hours. -
EndHourSecondSlot: string
Title:
End Hour Slot 2Maximum Length:10The end hour for the additional access hours. -
StartHourFirstSlot: string
Title:
Start Hour Slot 1Maximum Length:10The start hour of the primary access hours. -
StartHourSecondSlot: string
Title:
Start Hour Slot 2Maximum Length:10The start hour of the additional access hours.
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 : serviceTechnicianAccessHours-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 the technician's access hour is active. -
Comments: string
Title:
CommentsMaximum Length:250The comments for the access hour. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the access hour. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date and time when the access hour was created. -
DayOfWeekCd: string
Title:
Day or Week CodeMaximum Length:30The code that identifies the day of the week for the access hours. -
DayOfWeekCdMeaning: string
Title:
Day of WeekRead Only:trueMaximum Length:255The day of the week for the access hours. -
DisplaySequence: string
Title:
Display SequenceRead Only:trueMaximum Length:80The display sequence for sorting by day. -
EndHourFirstSlot: string
Title:
End Hour Slot 1Maximum Length:10The end hour for the primary access hours. -
EndHourSecondSlot: string
Title:
End Hour Slot 2Maximum Length:10The end hour for the additional access hours. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date and time when the access hours were last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the access hours. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OverrideCd: string
Title:
Override CodeMaximum Length:30The code that identifies the type of override applied to the access hours. -
OverrideCdMeaning: string
Title:
OverrideRead Only:trueMaximum Length:255The type of override applied to the access hours. -
OverrideServiceProfileId: integer
(int64)
Title:
Override Service Profile IDThe unique identifier for the service profile that overrides the access hours. -
OverrideServiceProfileName: string
Title:
Service ProfileRead Only:trueMaximum Length:400The name of the service profile that overrides the access hours. -
OverrideServiceProfileNumber: string
Title:
Service Profile NumberRead Only:trueMaximum Length:30The public unique identifier of the service profile that overrides the access hours. -
OverrideWoId: integer
(int64)
Title:
Override Work Order IDThe unique identifier for the work order that overrides the access hours. -
OverrideWoNumber: string
Title:
Work Order NumberRead Only:trueMaximum Length:30The public unique identifier of the work order that overrides the access hours. -
SchedHoursId: integer
(int64)
Title:
Schedule Hours IDThe unique identifier of the access hours. -
StartHourFirstSlot: string
Title:
Start Hour Slot 1Maximum Length:10The start hour of the primary access hours. -
StartHourSecondSlot: string
Title:
Start Hour Slot 2Maximum Length:10The start hour of the additional access hours.
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.
Examples
You can update a technician's access hour by submitting a PATCH request on the REST resource using the following cURL
cURL Command
curl -u <username:password> \ -X PATCH -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/serviceTechnicianAccessHours/300100284045602
Example of Request Body
The following shows the contents of the Request Body in JSON format.
{"Comments": "Updated new hour"}
Example of Response Body
The following shows the contents of the Response Body in JSON format.
{
"SchedHoursId": 300100284045602,
"AccScheduleId": 300100283975427,
"AccScheduleName": "FSACCOUNT Schedule",
"AccScheduleNumber": "CDRM_1",
"DayOfWeekCd": "MONDAY",
"DayOfWeekCdMeaning": "Monday",
"StartHourFirstSlot": "T08:00",
"EndHourFirstSlot": "T11:00",
"StartHourSecondSlot": "T12:00",
"EndHourSecondSlot": "T17:00",
"OverrideCd": null,
"OverrideCdMeaning": null,
"OverrideServiceProfileId": null,
"OverrideServiceProfileName": null,
"OverrideServiceProfileNumber": null,
"OverrideWoId": null,
"OverrideWoNumber": null,
"ActiveFlag": true,
"Comments": "Updated new hour",
"CreatedBy": "MHoope",
"CreationDate": "2024-03-26T05:39:10+00:00",
"LastUpdateDate": "2024-03-26T06:04:28+00:00",
"LastUpdatedBy": "MHoope",
"DisplaySequence": "2",
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/serviceTechnicianAccessHours/300100284045602",
"name": "serviceTechnicianAccessHours",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
}
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/serviceTechnicianAccessHours/300100284045602",
"name": "serviceTechnicianAccessHours",
"kind": "item"
}
]
}