Update
patch
/fscmRestApi/resources/11.13.18.05/schedules/{ScheduleId}
Request
Path Parameters
-
ScheduleId(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-
CategoryCode: string
Title:
CategoryMaximum Length:30 -
DeletedFlag: boolean
Title:
ActiveMaximum Length:1Default Value:false -
Description: string
Title:
DescriptionMaximum Length:2000 -
EffectiveFromDate: string
(date)
Title:
Effective from Date -
EffectiveToDate: string
(date)
Title:
Effective to Date -
FirstDayOfWorkWeekCode: string
Title:
First Day of WeekMaximum Length:30Default Value:MONDAY -
HCMScheduleGenerationProfileCode: string
Maximum Length:
255 -
HCMScheduleGenerationProfileId: integer
(int64)
-
HCMScheduleGenerationProfileName: string
Maximum Length:
255 -
HCMScheduleMappedFlag: boolean
Maximum Length:
1 -
Name: string
Title:
NameMaximum Length:240 -
QuarterlyTypeCode: string
Title:
Quarterly TypeMaximum Length:30 -
scheduleExceptionAssociations: array
scheduleExceptionAssociations
-
ScheduleTypeCode: string
Title:
TypeMaximum Length:30 -
scheduleWorkdayPatterns: array
scheduleWorkdayPatterns
Nested Schema : schedules-scheduleWorkdayPatterns-item-patch-request
Type:
Show Source
object-
PatternId: integer
(int64)
Title:
Workday Pattern -
PatternName: string
-
PatternSequenceNumber: integer
(int64)
Title:
Sequence
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 : schedules-item-response
Type:
Show Source
object-
CategoryCode: string
Title:
CategoryMaximum Length:30 -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64 -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:true -
DeletedFlag: boolean
Title:
ActiveMaximum Length:1Default Value:false -
Description: string
Title:
DescriptionMaximum Length:2000 -
EffectiveFromDate: string
(date)
Title:
Effective from Date -
EffectiveToDate: string
(date)
Title:
Effective to Date -
FirstDayOfWorkWeek: string
Read Only:
true -
FirstDayOfWorkWeekCode: string
Title:
First Day of WeekMaximum Length:30Default Value:MONDAY -
HCMScheduleGenerationProfileCode: string
Maximum Length:
255 -
HCMScheduleGenerationProfileId: integer
(int64)
-
HCMScheduleGenerationProfileName: string
Maximum Length:
255 -
HCMScheduleMappedFlag: boolean
Maximum Length:
1 -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:true -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Name: string
Title:
NameMaximum Length:240 -
NumberOfAssignments: integer
Default Value:
0 -
QuarterlyTypeCode: string
Title:
Quarterly TypeMaximum Length:30 -
scheduleExceptionAssociations: array
scheduleExceptionAssociations
-
ScheduleId: integer
(int64)
Read Only:
true -
ScheduleTypeCode: string
Title:
TypeMaximum Length:30 -
scheduleWorkdayPatterns: array
scheduleWorkdayPatterns
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.
Nested Schema : schedules-scheduleExceptionAssociations-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64 -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:true -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:true -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ScheduleExceptionAssociationId: integer
(int64)
Read Only:
true -
ScheduleExceptionId: integer
(int64)
Title:
Exception Name -
ScheduleExceptionName: string
-
ScheduleId: integer
(int64)
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : schedules-scheduleWorkdayPatterns-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64 -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:true -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:true -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PatternId: integer
(int64)
Title:
Workday Pattern -
PatternName: string
-
PatternSequenceNumber: integer
(int64)
Title:
Sequence -
SchedulePatternId: integer
(int64)
Read Only:
true
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- scheduleExceptionAssociations
-
Operation: /fscmRestApi/resources/11.13.18.05/schedules/{ScheduleId}/child/scheduleExceptionAssociationsParameters:
- ScheduleId:
$request.path.ScheduleId
- ScheduleId:
- scheduleWorkdayPatterns
-
Parameters:
- ScheduleId:
$request.path.ScheduleId
- ScheduleId:
Examples
This example describes how to update one schedule.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/schedules/ScheduleId"
Example Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it updates.
{
"Name" : "Schedule-Example",
"EffectiveToDate" : "2022-12-31",
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"ScheduleId" : 300100126667088,
"ScheduleTypeCode" : "TIME",
"Name" : "Schedule-Example",
"Description" : "Schedule Example of Post",
"EffectiveFromDate" : "2018-01-01",
"EffectiveToDate" : "2021-12-31",
"CategoryCode" : "WORK",
"DeletedFlag" : false,
"QuarterlyTypeCode" : "13_PERIODS",
"NumberOfAssignments" : 0,
"scheduleWorkdayPatterns" : [ {
"SchedulePatternId" : 300100126667089,
"PatternSequenceNumber" : 1,
"PatternId" : 999990012726001,
"PatternName" : "6 day working 9-5 Time",
"links" : [ {
...
}]
}]
...
}