Call queue blacklisted numbers

List call queue blacklisted numbers

get
Authorizations
Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/call_queue_blacklisted_numbers' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "items": [
    {
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
      "number": "text",
      "level": "FIRST",
      "longitude": "text",
      "latitude": "text",
      "address": "text",
      "created_at": "2017-07-21T17:32:28Z",
      "updated_at": "2017-07-21T17:32:28Z",
      "expire_at": "2017-07-21T17:32:28Z",
      "trigger_times": 1,
      "enabled": true,
      "description": "text"
    }
  ]
}

Add a call queue blacklisted number

post
Authorizations
Body
numberstring · min: 1 · max: 64required

The blacklisted number, a string value contains a valid telephone number or extension number.

Pattern: [0-9+]{1,64}
levelstring · enumrequired

Blacklisted number's level:

  • FIRST: A first level blacklisted number.
  • SECOND: A second level blacklisted number.
Options: FIRST, SECOND
longitudestringoptional

Blacklisted number's longitude.

latitudestringoptional

Blacklisted number's latitude.

addressstring · max: 128optional

The address.

expire_atall ofoptional

Blacklisted number's expire time.

The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

trigger_timesinteger · int32optional

Blacklisted number have been triggered for this times.

enabledboolean · default: trueoptional

Enable the blacklisted number or not.

descriptionstring · max: 1024optional

Blacklisted number's description.

Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/call_queue_blacklisted_numbers' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "number": "text",
    "level": "FIRST",
    "longitude": "text",
    "latitude": "text",
    "address": "text",
    "expire_at": "2017-07-21T17:32:28Z",
    "trigger_times": 1,
    "enabled": true,
    "description": "text"
  }'
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}

Retrieve a call queue blacklisted number

get
Authorizations
Path parameters
idall ofrequired

The unique ID of blacklisted number.

The unique ID of the resource.

Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/call_queue_blacklisted_numbers/{id}' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "number": "text",
  "level": "FIRST",
  "longitude": "text",
  "latitude": "text",
  "address": "text",
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z",
  "expire_at": "2017-07-21T17:32:28Z",
  "trigger_times": 1,
  "enabled": true,
  "description": "text"
}

Update a call queue blacklisted number

post
Authorizations
Path parameters
idall ofrequired

The unique ID of blacklisted number.

The unique ID of the resource.

Body
numberstring · min: 1 · max: 64optional

The blacklisted number, a string value contains a valid telephone number or extension number.

Pattern: [0-9+]{1,64}
levelstring · enumoptional

Blacklisted number's level:

  • FIRST: A first level blacklisted number.
  • SECOND: A second level blacklisted number.
Options: FIRST, SECOND
longitudestringoptional

Blacklisted number's longitude.

latitudestringoptional

Blacklisted number's latitude.

addressstring · max: 128optional

The address.

expire_atall ofoptional

Blacklisted number's expire time.

The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

trigger_timesinteger · int32optional

Blacklisted number have been triggered for this times.

enabledboolean · default: trueoptional

Enable the blacklisted number or not.

descriptionstring · max: 1024optional

Blacklisted number's description.

Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/call_queue_blacklisted_numbers/{id}' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "number": "text",
    "level": "FIRST",
    "longitude": "text",
    "latitude": "text",
    "address": "text",
    "expire_at": "2017-07-21T17:32:28Z",
    "trigger_times": 1,
    "enabled": true,
    "description": "text"
  }'

No body

Was this helpful?