Unassign a CNAM Record From Phone Number

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/cnam

Path Parameters

  • number_id
    integer REQUIRED

    The 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.


Example Request

DELETE /v2/numbers/12064205780/relationships/cnam 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/cnam -u accessKey:secretKey

                        

Example Response

204 NO CONTENT

401 Unauthorized

{
  "errors": [
    {
      "detail": "Authentication failed.",
      "id": "7fc8c70a-ca58-430c-b383-b89df84f8083",
      "status": 401,
      "title": "Unauthorized"
    }
  ]
}

                

403 Forbidden

{  "errors": 
  [
    {
      "status": 403, 
      "detail": "", 
      "title": "ActionNotAuthorizedError"
    }
  ]
}