Update an application
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Applications/3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5b';const options = { method: 'PUT', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"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"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your account Auth ID, or the Auth ID of a sub-account you own
Example
AC000000000000000000Application SID (a UUID) or numeric ID
Example
3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5bRequest Bodyrequired
Section titled “ Request Bodyrequired ”The complete application
object
Application category, free-form: ContactCenter when omitted on create (the platform also uses FrontDesk). On update, an empty value keeps the current one.
Example
ContactCenterHTTP method used to request FaxFallbackUrl: GET or POST. Not validated.
Example
POSTAbsolute URL requested when the fax handling URL fails.
Example
https://example.com/fax/fallbackAbsolute URL SIPRTC sends fax status updates to for faxes on numbers using this application.
Example
https://example.com/fax/statusHTTP method used for FaxStatusCallback: GET or POST.
Example
POSTName of the application, at least 3 characters. Required.
Example
Front desk IVRAccepted (must be a URL when given) but not stored.
Example
https://example.com/sms/statuslocal (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.
Example
localHTTP method used to request SmsFallbackUrl: GET or POST. Not validated. Stored as sms_fallback_url_method.
Example
POSTAbsolute URL requested when SmsUrl fails.
Example
https://example.com/sms/fallbackHTTP method used to request SmsUrl: GET or POST. Stored as sms_url_method.
Example
POSTAbsolute URL SIPRTC sends delivery status updates to for messages sent from numbers using this application. Stored as sms_status_url.
Example
https://example.com/sms/statusHTTP method used for SmsStatusCallback: GET or POST. Stored as sms_status_url_method.
Example
POSTAbsolute URL SIPRTC requests when a message (SMS or another messaging channel) arrives on a number using this application.
Example
https://example.com/sms/inboundactive 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.
Example
activeAbsolute URL SIPRTC sends call status events to (see VoiceStatusEvent) for calls handled by this application. Stored as voice_status_url.
Example
https://example.com/voice/statusHTTP method used for StatusCallback: GET or POST. Stored as voice_status_url_method.
Example
POSTAccepted for compatibility but not stored: caller name (CNAM) lookup is not performed.
Example
falseHTTP method used to request VoiceFallbackUrl: GET or POST.
Example
POSTAbsolute URL requested when VoiceUrl cannot be fetched or returns an invalid document. It must return TinyML.
Example
https://example.com/voice/fallbackHTTP method used to request VoiceUrl: GET or POST (POST when empty).
Example
POSTWhich call progress events are sent to StatusCallback: any of initiated, ringing, answered, completed, separated by spaces. Only completed is sent when empty.
Example
initiated ringing answered completedAbsolute 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.
Example
https://example.com/voice/answerobject
Application category, free-form: ContactCenter when omitted on create (the platform also uses FrontDesk). On update, an empty value keeps the current one.
Example
ContactCenterHTTP method used to request FaxFallbackUrl: GET or POST. Not validated.
Example
POSTAbsolute URL requested when the fax handling URL fails.
Example
https://example.com/fax/fallbackAbsolute URL SIPRTC sends fax status updates to for faxes on numbers using this application.
Example
https://example.com/fax/statusHTTP method used for FaxStatusCallback: GET or POST.
Example
POSTName of the application, at least 3 characters. Required.
Example
Front desk IVRAccepted (must be a URL when given) but not stored.
Example
https://example.com/sms/statuslocal (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.
Example
localHTTP method used to request SmsFallbackUrl: GET or POST. Not validated. Stored as sms_fallback_url_method.
Example
POSTAbsolute URL requested when SmsUrl fails.
Example
https://example.com/sms/fallbackHTTP method used to request SmsUrl: GET or POST. Stored as sms_url_method.
Example
POSTAbsolute URL SIPRTC sends delivery status updates to for messages sent from numbers using this application. Stored as sms_status_url.
Example
https://example.com/sms/statusHTTP method used for SmsStatusCallback: GET or POST. Stored as sms_status_url_method.
Example
POSTAbsolute URL SIPRTC requests when a message (SMS or another messaging channel) arrives on a number using this application.
Example
https://example.com/sms/inboundactive 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.
Example
activeAbsolute URL SIPRTC sends call status events to (see VoiceStatusEvent) for calls handled by this application. Stored as voice_status_url.
Example
https://example.com/voice/statusHTTP method used for StatusCallback: GET or POST. Stored as voice_status_url_method.
Example
POSTAccepted for compatibility but not stored: caller name (CNAM) lookup is not performed.
Example
falseHTTP method used to request VoiceFallbackUrl: GET or POST.
Example
POSTAbsolute URL requested when VoiceUrl cannot be fetched or returns an invalid document. It must return TinyML.
Example
https://example.com/voice/fallbackHTTP method used to request VoiceUrl: GET or POST (POST when empty).
Example
POSTWhich call progress events are sent to StatusCallback: any of initiated, ringing, answered, completed, separated by spaces. Only completed is sent when empty.
Example
initiated ringing answered completedAbsolute 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.
Example
https://example.com/voice/answerResponses
Section titled “ Responses ”Status success, message "Application updated\
object
Application updated, Application deleted, or what went wrong.
success or failed.
Example
{ "message": "Application updated", "status": "success"}Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Example generated
exampleNo such application in the account, the scope is global on an account that may not use it, or the update failed
object
Application updated, Application deleted, or what went wrong.
success or failed.
Example
{ "message": "Application updated", "status": "success"}A field failed validation
object
Application updated, Application deleted, or what went wrong.
success or failed.
Example
{ "message": "Application updated", "status": "success"}