Skip to content

Request service update

Request

Update the selected service. When updating a service, only the required changes can be submitted.

Security
HTTP_BASIC
Path
service_numberstringrequired

valid service number (E164 format)

Bodyapplication/json
namestring

desired service friendly name

Example:"Tracking Service 1"
service_numberstring

configured service number (E164 format)

Example:"61290081596"
serviceobject

Service configuration details

call_uristring

if defined sets the url for the Call-URI functionality, each call is reported to this url if configured.

Example:"http://path/to/call_reporting_uri"
sms_forward_uristring

If defined, each inbound SMS is sent to this URL using HTTP POST, with the parameters in the request body.

Example:"http://path/to/sms_forward_uri"
curl -i -X POST \
  -u '<username>:<password>' \
  'https://tapi.avanser.com/v1/services/{service_number}/' \
  -H 'Content-Type: application/json' \
  -d '{
    "call_reporting": {
      "report": "none"
    }
  }'

Responses

Successful response

Bodyapplication/json
@transactionobject
responseobject
Response
{ "@transaction": { "id": "c9220015e2f48bc7cf4b38186a7b2025", "account-id": "5995", "request": { … } }, "response": { "message": "Success", "code": 200, "request_id": "c9220015e2f48bc7cf4b38186a7b2025" } }