Update one calendar

patch

/fscmRestApi/resources/11.13.18.05/workCenters/{WorkCenterId}/child/productionCalendars/{ProductionCalendarId}

Request

Path Parameters
Header Parameters
  • 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".
  • 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
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Resource Shifts
Type: array
Title: Resource Shifts
The Resource Shifts for work center resources are applicable when the override schedule indicator is set to Yes for a work center. The application automatically creates each shift when you assign a production resource to a work center.
Show Source
Nested Schema : Shifts
Type: array
Title: Shifts
The Shifts for production calendars are the shift definitions for date effective override calendars.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : workCenters-productionCalendars-shifts-item-patch-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : workCenters-productionCalendars-item-response
Type: object
Show Source
Nested Schema : Resource Shifts
Type: array
Title: Resource Shifts
The Resource Shifts for work center resources are applicable when the override schedule indicator is set to Yes for a work center. The application automatically creates each shift when you assign a production resource to a work center.
Show Source
Nested Schema : Shifts
Type: array
Title: Shifts
The Shifts for production calendars are the shift definitions for date effective override calendars.
Show Source
Nested Schema : workCenters-productionCalendars-resourceShifts-item-response
Type: object
Show Source
Nested Schema : workCenters-productionCalendars-shifts-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to update one production calendar.

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/workCenters/WorkCenterId/child/productionCalendars/ProductionCalendarId"
For example:
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/workCenters/300100575056645/child/productionCalendars/300100575056647

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": "Different Calendar Name",
    "AssociationStartDate": "2024-01-01"
}

Example Response Body

The following example includes the contents of the response body in JSON format:
{
            "ProductionCalendarId": 300100575056647,
            "MfgCalendarId": 3001005752545458,
            "AssociationStartDate": "2024-01-01",
            "AssociationEndDate": null,
            "WorkCenterId": 300100575056645,
            "WorkCenterCode": "SPRAY_WC",
            "WorkCenterName": "Spray Paint Shop",
            "Name": "Different Calendar Name",
            "Description": "Mon to thur, 8 hr shift",
            "EffectiveFromDate": "2018-01-07",
            "EffectiveToDate": "2035-12-31",
            "OrganizationId": 207,
            "OrganizationCode": "M1",
            "OrganizationName": "Seattle Manufacturing",
            "CreatedBy": "MFG_QA",
            "CreationDate": "2023-06-21T05:13:04.094+00:00",
            "LastUpdateDate": "2023-06-21T05:13:04.726+00:00",
            "LastUpdatedBy": "MFG_QA",
            "LastUpdateLogin": "FE9A191BF5CB2F41E053E1886C649A53",
            "links": [
                {
                    "rel": "self",
                    "href": http://servername/fscmRestApi/resources/version/workCenters/300100575056645/child/productionCalendars/300100575056647,
                    "name": "productionCalendars",
                    "kind": "item",
                    . . .
                }
            ]
}
Back to Top