Skip to content

Update a SIP domain

PUT
/v1/Accounts/{auth_id}/Sips/Domains/{domain_id}
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/example/Sips/Domains/1 \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "ip_auth": {}, "name": "Head office PBX", "user_auth": {} }'

Changes the display name, ip_auth or user_auth of one of your SIP domains; fields you leave out keep their current values. Other fields in the body, including status, domain_prefix and application_id, are ignored: the domain name cannot be changed, and the application is changed with PATCH.

auth_id
required
string

Auth ID of your account.

domain_id
required
integer

ID of the SIP domain.

Fields to change.

Media type application/json
object
ip_auth

New source-address list, in the same format as on create.

object
name

New display name of the domain.

string

Example

Head office PBX
user_auth

New user authentication settings.

object

Updated ({“status”: “sip domain 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"
}

The body could not be read; the response body is an empty JSON object.

Media type application/json
object

Example generated

{}

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

Media type application/json
string

Example generated

example

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

Media type application/json
string

Example generated

example

The change could not be saved; the body is the error text.

Media type application/json
string

Example generated

example

No domain 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"
}
}