question

nibu-eapen10876 avatar image
nibu-eapen10876 asked

php sample code for SCIM edit extensions

is anyone can help me with php sample code to edit extension. I'm using PHP SDK.


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


"schemas" => "urn:ietf:params:scim:schemas:core:2.0:User",

"userName" => "first.last@mysite.com",

"active" => true




)

);


But it throws following error


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: Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token   at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@5871346f; line: 1, column: 12] (through reference chain: com.ringcentral.cim.model.User["schemas"])  Previous: Response has unsuccessful status

Thanks


extension
1 |1500 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.

0 Answers

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