Exclusive numbers
Get a collection of exclusive numbers
Authorizations
Responses
200
OK
application/json
4XX
Error
get
GET /api/exclusive_numbers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 100,
"items": [
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"number": "text",
"created_at": "2017-07-21T17:32:28Z",
"enabled": true,
"description": "text"
}
]
}
Add a new exclusive number
Authorizations
Body
numberstring · min: 1 · max: 64Optional
The telephone number.
enabledbooleanOptionalDefault:
Enable the exclusive number or not.
true
descriptionstring · max: 1024Optional
Exclusive number's description.
Responses
200
OK
application/json
4XX
Error
post
POST /api/exclusive_numbers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"number": "text",
"enabled": true,
"description": "text"
}
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}
Get details of a exclusive number
Authorizations
Path parameters
idall ofRequired
The unique ID of exclusive number.
stringOptionalExample:
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200
OK
application/json
4XX
Error
get
GET /api/exclusive_numbers/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"number": "text",
"created_at": "2017-07-21T17:32:28Z",
"enabled": true,
"description": "text"
}
Update properties of a exclusive number.
Authorizations
Path parameters
idall ofRequired
The unique ID of exclusive number.
stringOptionalExample:
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
Body
numberstring · min: 1 · max: 64Optional
The telephone number.
enabledbooleanOptionalDefault:
Enable the exclusive number or not.
true
descriptionstring · max: 1024Optional
Exclusive number's description.
Responses
200
OK
4XX
Error
post
POST /api/exclusive_numbers/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"number": "text",
"enabled": true,
"description": "text"
}
No content