question

nibu-eapen10876 avatar image
nibu-eapen10876 asked ·

Missing required creator property 'schemas' (index 0)

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")
)

)
);




General Topic
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
tony-li73 avatar image
tony-li73 answered ·
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" ],

1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.