Updates an existing pending CNAM record. Please see Create a New CNAM Record to review the CNAM Storage Rules.
Endpoint
PATCH /cnams/:idPath Parameter
-
id
integer requiredThe record id of the pending CNAM record to update.
Body Parameters
data
requiredData object composed of the following:
type
requiredThis will always be cnam.
attributes
requiredObject composed of the following CNAM attributes:
value
Unique CNAM value.
Response Fields
On success, the HTTP status code in the response header is 200 OK and the response body contains a 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
objectCNAM object composed of the following:
-
attributes
objectObject composed of attributes described above.
-
id
integerID of the CNAM object.
-
links
objectLinks object pointing to the CNAM's URI. For example, https://api.flowroute.com/v2/cnams/98396.
-
type
stringThis will always be cnam.
-
links
objectLinks object pointing to your newly created CNAM. For example, https://api.flowroute.com/v2/cnams/98396.