Update a Wireless Blocklist
PATCH/wireless_blocklists
Update a Wireless Blocklist.
Request
- application/json
Body
required
Array [
]
name string
The name of the Wireless Blocklist.
type string
Possible values: [country
, mcc
, plmn
]
The type of wireless blocklist.
values
object[]
Values to block. The values here depend on the type
of Wireless Blocklist.
oneOf
Responses
202: Successful response
- application/json
422: Unprocessable entity. Check the 'detail' field in response for details.
- application/json
default: Unexpected error
- application/json
Request samples
curl -L -X PATCH 'https://api.telnyx.com/v2/wireless_blocklists' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "My Wireless Blocklist",
"type": "country",
"values": [
"CA",
"US"
]
}'
Response samples
{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "wireless_blocklist",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"name": "My wireless blocklist.",
"type": "country",
"values": [
"CA",
"MX",
"US"
]
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}