Skip to main content
PUT
/
user
/
update-rcextension
Update a user's Ring Central extension
curl --request PUT \
  --url http://localhost:2000/user/update-rcextension \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payload": {
    "userId": "64b7f1a2e4b0a5d3f9c12345",
    "rcExtension": "1234"
  }
}
'
{
  "message": "<string>",
  "data": {}
}
Admin-only endpoint to update the Ring Central extension stored in a user’s personal information.

Request

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token
Content-TypestringYesapplication/json

Request Body

{
  "payload": {
    "userId": "64b7f1a2e4b0a5d3f9c12345",
    "rcExtension": "1234"
  }
}

Request Body Schema

FieldTypeRequiredDescription
payloadobjectYesUpdate payload
payload.userIdstringYesUser ID to update
payload.rcExtensionstringYesNew extension number

Response

200 OK - Successfully updated RC extension

{
  "message": "RingCentral extension updated successfully",
  "data": {}
}

400 Bad Request

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid request body"
  }
}

401 Unauthorized

{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing or invalid token or insufficient permissions"
  }
}

404 Not Found

{
  "error": {
    "code": "USER_NOT_FOUND",
    "message": "User not found"
  }
}

500 Internal Server Error

{
  "error": {
    "code": "SERVER_ERROR",
    "message": "Internal server error"
  }
}

Example

curl -X PUT 'http://localhost:2000/user/update-rcextension' \
  -H 'Authorization: Bearer your-jwt-token' \
  -H 'Content-Type: application/json' \
  -d '{
    "payload": {
      "userId": "64b7f1a2e4b0a5d3f9c12345",
      "rcExtension": "1234"
    }
  }'

Notes

  • This is an admin-only endpoint - requires administrative privileges
  • The extension must be unique across the system
  • Extension numbers should be 2-10 digits long
  • The user ID must be a valid MongoDB ObjectId
  • Only administrators can update other users’ extensions

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
payload
object

Response

Successfully updated RC extension

message
string
data
object