question

Gary Weissenbacher avatar image
Gary Weissenbacher asked Phong Vu answered

SCIM API User add/replace Work Phone

curl --request PATCH \
  --url https://platform.devtest.ringcentral.com/scim/v2/Users/283100004 \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"phoneNumbers[type eq \"work\"].value","value":"+4989700755555"}]}'
{  "schemas": [    "urn:ietf:params:scim:api:messages:2.0:Error"  ],  "status": "403",  "detail": "The operation(add) for path(phoneNumbers[type eq \"work\"].value) is not permitted" } 

Okay, hopefully my last question: have created a User using the SCIM API without stating a work phone, so the user only hast a phone number of type "other" and later added "mobile".
Now I want to add the work phone, but the API does not allow it.
Is that possible somehow?

We are thinking about migration scenarios, adding the user first without his real phone number and when the carrier is ready switching to RingCentral by adding the phone number to the user.

rest api
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.

1 Answer

Phong Vu avatar image
Phong Vu answered

You cannot set the "work" number, which is read-only, since RC, as a VoIP provider, provides such a number, The work number is assigned automatically (from a digital line number of an unassigned extension) when you create a SCIM user. You can replace other numbers though.

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.

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