Lets you unassign a CNAM record associated with a specified long code number on your account without deleting the CNAM record itself.
Endpoint
DELETE /numbers/:number_id/relationships/cnamsPath Parameters
-
number_id
integer REQUIREDThe unique identifier for your Flowroute longcode phone number to be disassociated with its related CNAM record.
Response Fields
On success, the HTTP status code in the response header is 202 Accepted and the response body contains information on the disassociated CNAM object in JSON format. On error, the header status code is an error code and the response body contains an array of error objects.
-
data
objectObject composed of updated attributes of the cnam object.
-
attributes
objectAttributes of the disassociated cnam object.
date_created datetime- Date and time, to the second, on which the CNAM record was associated with the phone number. This field displays the abbreviated day, followed by the date and time in GMT format.
-
id
integerDisplays null after the disassociation request.
-
type
stringThis will always be cnam.
Example Request
DELETE /v2/numbers/12064205780/relationships/cnams HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Example Request
curl -X DELETE https://api.flowroute.com/v2/numbers/12064205780/relationships/cnams -u accessKey:secretKey
Example Response
202 Accepted
{
"data": {
"id": null,
"type": "cnam",
"attributes": {
"date_created": "Mon, 22 Aug 2022 07:23:53 GMT",
},
},
}
401 Unauthorized
{
"errors": [
{
"detail": "Authentication failed.",
"id": "7fc8c70a-ca58-430c-b383-b89df84f8083",
"status": 401,
"title": "Unauthorized"
}
]
}
403 Forbidden
{
"errors": [
{
"status": 403,
"detail": "",
"title": "ActionNotAuthorizedError"
}
]
}