Table of Contents

API : SBC Rule Update

Introduction

This request will update an outbound routing rule.

Request

URL https://api.telecomx.dk/sbc/rule/RULE_ID
Method POST
Access level RESELLER_ADMIN with FINANCE feature, or ADMIN.
Param RULE_ID Id of the rule (24-char hex string).
Body condition String [optional] Condition to be met for rule to be applied:
PREFIX - Prefix of full E.164 number, e.g. +462
ANUMBER - Callers number in E.164 format, e.g. +4570305050
CUSTOMER - Id of calling customer, a lowercase 24-character hex string, e.g. 650000000000000000000201
DKCPS - CPS code of destination service operator, e.g. 01011
peer String [optional] Id of the peer to send outbound calls to if the rule is matched.
note String [optional] Note about the rule - an empty string clears it.

Query examples

{
  "condition": "+46222"
}

Response

The response holds only the fields that were sent in the body - not the whole rule.

JSON object
condition String [optional] The condition sent, when it was sent.
peer String [optional] The peer sent, when it was sent.
note String [optional] The note sent, when it was sent.

Response example

{
  "condition": "+46222"
}

Errors

Error code Message Description
422 <property> Invalid input for the named property - the request body, query or URL parameter failed validation
400 bad_request Id not found in request URI
404 id Rule not found
422 condition Prefix is invalid
422 condition Customer not found
422 condition CPS not found
404 peer Peer not found
409 rule Rule already exists
403 access_denied Insufficient access level
500 internal_error <Unspecified>