Skip to main content

Update Carbon Copy

Updates the status or direction of an existing carbon copy rule.

Endpoint

PUT /v2/carboncopies/update

Request Body

FieldTypeRequiredConstraintsDescription
ccIdintegerYesMust be an existing CC ruleUnique identifier of the carbon copy rule to update
statusStatusNoSee ENUMsNew status for the rule (e.g., Active, Suspended)
directionDirectionNoSee ENUMsNew traffic direction for the rule
{
"ccId": 1042,
"status": "Suspended",
"direction": "OutBox"
}

Response

Returns the updated carbon copy rule.

{
"success": true,
"data": {
"ccId": 1042,
"fromMailboxId": 101,
"toMailboxId": 202,
"status": "Suspended",
"direction": "OutBox",
"created": "2025-01-15T10:30:00Z"
}
}

ENUMs

This endpoint uses the Status and Direction ENUMs. See ENUMs Reference for all valid values.

Code Examples

curl -X PUT "https://rest.ecgrid.io/v2/carboncopies/update" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "ccId": 1042, "status": "Suspended", "direction": "OutBox" }'

See Also