Unassign a CNAM Record From Phone Number

Flowroute's delete CNAM-phone number association endpoint lets you unassign a CNAM record associated with a specified long code number on your account without deleting the CNAM record itself.

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

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/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"
    }
  ]
}