My Oracle Support Banner

FA:SCM:MFG:Create SHIFT Rest API Errors With 400 Bad Request (Doc ID 2683390.1)

Last updated on JULY 18, 2020

Applies to:

Oracle Fusion Supply Chain Management Common Components - Version 11.13.20.04.0 and later
Information in this document applies to any platform.

Symptoms

Error While trying to create a SHIFT using SCM REST API

ERROR
-----------------------

HTTP/1.1 400 Bad Request
Server: Oracle-HTTP-Server
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, must-revalidate
Location:
Content-Length: 53
X-ORACLE-DMS-ECID: 005djwQxDCA3z035RnXBid0004B400028G
Content-Encoding: gzip
REST-Framework-Version: 1
Content-Type: application/json
Content-Language: en
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains
Date: Mon, 01 Jun 2020 05:31:30 GMT
Connection: close
Vary: Accept-Encoding
Set-Cookie: ORA_FND_SESSION_EHSO_DEV2_GSI_F=DEFAULT_PILLAR:TvPOzqZg/rpuA0cT0kVpf1G0dYrKoqY9SJsGAB/BI9ikK3zYwm3mSkNvKM6yMt3g:1590989482758; path=/; HttpOnly; domain=.oraclecloud.com; secure

Unable to parse the provided payload

STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1. REST API URL - https://docs.oracle.com/en/cloud/saas/supply-chain-management/19a/fasrp/op-fscmrestapi-resources-11.13.18.05-shifts-post.html


2. Try to create a SHIFT using SCM REST API, with below format
{
"properties":{
"CategoryCode":"WORK_FROM_OFFICE",
"Code":"RA1",
"Description":"Rest API Testing RA1",
"Duration":1,
"DurationUnit":"DAYS",
"EndTime":"10:00 PM",
"Name":"P3K Rest API Testing Shift",
"PeriodTypeCode":"WORK_PERIOD",
"ShiftDetailTypeCode":"NONE",
"ShiftTypeCode":"TIME",
"StartTime":"08:00 AM"
},
"type":"object"
}


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.