Skip to main content
Question

Missing required creator property 'schemas' (index 0)

  • September 13, 2018
  • 1 reply
  • 1229 views

Exception: 400 Bad Request (and additional error happened during JSON parse: Response is not JSON)
SDK HTTP Error at https://platform.devtest.ringcentral.com/scim/v2/Users/244580004  Response text: Missing required creator property 'schemas' (index 0)   at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@16cb921a; line: 1, column: 309]  Previous: Response has unsuccessful status



$response = $platform
->put('https://platform.devtest.ringcentral.com/scim/v2/Users/244580004', array(

"userName" => "nibu.eapen@test.com",
"name" => array(
   "familyName" => "Doe",
   "givenName" => "Jeremy"
),
"active" => 1,
"emails" => array( 0 => array(
"value" => "nibu.eapen@test.com",
"type" => "work")
), 
"addresses" => array( 0 => array(
"streetAddress" => "900 Main St",
"locality" => "Belmont",
"region" => "CA",
"postalCode" => "94002",
"country" => "United States",
"type" => "work")
)

)    
);




1 reply

  • Employee
  • September 13, 2018
For SCIM API call, the schemas needs to be specified in the payload. Please add the following to the API call, it will resolve the 400 error.

"schemas" : [ "urn:ietf:params:scim:schemas:core:2.0:User" ],