Missing required creator property 'schemas' (index 0)

  • 1
  • Question
  • Updated 2 months ago
  • (Edited)
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")
)

)
);




Photo of Nibu Eapen

Nibu Eapen

  • 310 Points 250 badge 2x thumb

Posted 2 months ago

  • 1
Photo of Tony Li

Tony Li, Official Rep

  • 90 Points 75 badge 2x thumb
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" ],