Skip to main content
The First Step
September 13, 2018
Question

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