question

nibu-eapen10876 avatar image
nibu-eapen10876 asked tony-li73 answered

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

)    
);




rest api
1 |3000

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

1 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 |3000

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys