Skip to content

Update an application

PUT
/v1/Accounts/{auth_id}/Applications/{application_sid}
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Applications/3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5b \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "ApplicationType": "ContactCenter", "FaxFallbackMethod": "GET", "FaxFallbackUrl": "https://example.com/fax/fallback", "FaxStatusCallback": "https://example.com/fax/status", "FaxStatusCallbackMethod": "GET", "FriendlyName": "Front desk IVR", "MessageStatusCallback": "https://example.com/sms/status", "Scope": "local", "SmsFallbackMethod": "GET", "SmsFallbackUrl": "https://example.com/sms/fallback", "SmsMethod": "GET", "SmsStatusCallback": "https://example.com/sms/status", "SmsStatusCallbackMethod": "GET", "SmsUrl": "https://example.com/sms/inbound", "Status": "active", "StatusCallback": "https://example.com/voice/status", "StatusCallbackMethod": "GET", "VoiceCallerIdLookup": "false", "VoiceFallbackMethod": "GET", "VoiceFallbackUrl": "https://example.com/voice/fallback", "VoiceMethod": "GET", "VoiceStatusEvent": "initiated ringing answered completed", "VoiceUrl": "https://example.com/voice/answer" }'

Replaces an application of the account, found by SID or numeric ID. Every field is overwritten with the value in the request, so a field you leave out is cleared: send the complete application, including the required FriendlyName and Status (active or inactive). Scope is kept when left empty. Only reseller (vendor) and superuser accounts may update a global application or make one global. Applications a parent account shares with you cannot be updated. Validation failures answer 406 with the validator’s message; every other failure answers 404.

auth_id
required
string

Your account Auth ID, or the Auth ID of a sub-account you own

Example

AC000000000000000000
application_sid
required
string

Application SID (a UUID) or numeric ID

Example

3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5b

The complete application

object
ApplicationType

Application category, free-form: ContactCenter when omitted on create (the platform also uses FrontDesk). On update, an empty value keeps the current one.

string

Example

ContactCenter
FaxFallbackMethod

HTTP method used to request FaxFallbackUrl: GET or POST. Not validated.

string
Allowed values: GET POST

Example

POST
FaxFallbackUrl

Absolute URL requested when the fax handling URL fails.

string

Example

https://example.com/fax/fallback
FaxStatusCallback

Absolute URL SIPRTC sends fax status updates to for faxes on numbers using this application.

string

Example

https://example.com/fax/status
FaxStatusCallbackMethod

HTTP method used for FaxStatusCallback: GET or POST.

string
Allowed values: GET POST

Example

POST
FriendlyName
required

Name of the application, at least 3 characters. Required.

string

Example

Front desk IVR
MessageStatusCallback

Accepted (must be a URL when given) but not stored.

string

Example

https://example.com/sms/status
Scope

local (default): only this account uses the application. global: the application is also offered to the account’s sub-accounts (tenants). Only reseller (vendor) and superuser accounts may create, change or delete global applications.

string
Allowed values: local global

Example

local
SmsFallbackMethod

HTTP method used to request SmsFallbackUrl: GET or POST. Not validated. Stored as sms_fallback_url_method.

string
Allowed values: GET POST

Example

POST
SmsFallbackUrl

Absolute URL requested when SmsUrl fails.

string

Example

https://example.com/sms/fallback
SmsMethod

HTTP method used to request SmsUrl: GET or POST. Stored as sms_url_method.

string
Allowed values: GET POST

Example

POST
SmsStatusCallback

Absolute URL SIPRTC sends delivery status updates to for messages sent from numbers using this application. Stored as sms_status_url.

string

Example

https://example.com/sms/status
SmsStatusCallbackMethod

HTTP method used for SmsStatusCallback: GET or POST. Stored as sms_status_url_method.

string
Allowed values: GET POST

Example

POST
SmsUrl

Absolute URL SIPRTC requests when a message (SMS or another messaging channel) arrives on a number using this application.

string

Example

https://example.com/sms/inbound
Status
required

active or inactive. Ignored on create (a new application is always active); required on update, where any value of three or more characters is accepted, but an application whose status is neither active nor inactive no longer appears in lists or fetches.

string
Allowed values: active inactive

Example

active
StatusCallback

Absolute URL SIPRTC sends call status events to (see VoiceStatusEvent) for calls handled by this application. Stored as voice_status_url.

string

Example

https://example.com/voice/status
StatusCallbackMethod

HTTP method used for StatusCallback: GET or POST. Stored as voice_status_url_method.

string
Allowed values: GET POST

Example

POST
VoiceCallerIdLookup

Accepted for compatibility but not stored: caller name (CNAM) lookup is not performed.

string

Example

false
VoiceFallbackMethod

HTTP method used to request VoiceFallbackUrl: GET or POST.

string
Allowed values: GET POST

Example

POST
VoiceFallbackUrl

Absolute URL requested when VoiceUrl cannot be fetched or returns an invalid document. It must return TinyML.

string

Example

https://example.com/voice/fallback
VoiceMethod

HTTP method used to request VoiceUrl: GET or POST (POST when empty).

string
Allowed values: GET POST

Example

POST
VoiceStatusEvent

Which call progress events are sent to StatusCallback: any of initiated, ringing, answered, completed, separated by spaces. Only completed is sent when empty.

string

Example

initiated ringing answered completed
VoiceUrl

Absolute URL SIPRTC requests when a call reaches a number, SIP domain or SIP endpoint using this application. It must return a TinyML document that tells SIPRTC what to do with the call.

string

Example

https://example.com/voice/answer

Status success, message "Application updated\

Media type application/json
object
message

Application updated, Application deleted, or what went wrong.

string
status

success or failed.

string

Example

{
"message": "Application updated",
"status": "success"
}

Authentication failed: missing or invalid credentials (JSON string from the API gateway)

Media type application/json
string

Example generated

example

No such application in the account, the scope is global on an account that may not use it, or the update failed

Media type application/json
object
message

Application updated, Application deleted, or what went wrong.

string
status

success or failed.

string

Example

{
"message": "Application updated",
"status": "success"
}

A field failed validation

Media type application/json
object
message

Application updated, Application deleted, or what went wrong.

string
status

success or failed.

string

Example

{
"message": "Application updated",
"status": "success"
}