Skip to content

Update a SIP user

PUT
/v1/Accounts/{auth_id}/Sip/endpoint/{endpoint_id}
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/example/Sip/endpoint/1 \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "codec_list": "PCMU,PCMA,OPUS", "name": "Reception", "password": "S3cretPassw0rd!", "presence": false, "status": true }'

Changes the display name, password or status of one of your SIP users. Fields you leave out keep their current values; codec_list and presence are accepted but not saved. A new password is also written to the SIP registrar, so registered devices must re-register with it.

auth_id
required
string

Auth ID of your account.

endpoint_id
required
integer

ID of the SIP user.

Fields to change.

Media type application/json
object
codec_list

Accepted but not saved: the codec list cannot be changed after creation.

string

Example

PCMU,PCMA,OPUS
name
required

New display name: letters and digits only. Leave out to keep the current name.

string

Example

Reception
password
required

New SIP digest password, at least 6 characters. Leave out to keep the current password.

string

Example

S3cretPassw0rd!
presence

Accepted but not saved: presence cannot be changed after creation.

boolean

Example

false
status

Whether the SIP user may register and place calls. Leave out to keep the current value.

boolean

Example

true

Updated ({“status”: “endpoint updated”}).

Media type application/json
object
status

Short description of what happened, for example “endpoint updated”, “endpoint deleted”, “sip domain updated” or “domain deleted”.

string

Example

{
"status": "endpoint updated"
}

Missing or wrong Basic-auth credentials (returned by the API gateway).

Media type application/json
string

Example generated

example

Endpoint_id is not a positive number (body “Invalid Request”).

Media type application/json
string

Example generated

example

A field failed validation or the change could not be saved; the body is the error text.

Media type application/json
string

Example generated

example

No SIP user with this ID on your account (errors.body “record not found”).

Media type application/json
object
errors

The error detail.

object
body

Error text as reported by the data store, for example “record not found”.

string

Example

{
"errors": {
"body": "record not found"
}
}