Request
Your project API key: b2co_your_api_key
The unique short code of the link to update
New status for the link. Must be either ACTIVE or PAUSED
Response
Indicates if the request was successful
The updated link information
Success message describing the action performed
Unique identifier of the link
Unique short code of the link
Updated status of the link (ACTIVE or PAUSED)
ISO 8601 timestamp when the link was last updated
curl -X PUT "https://api.bit2connect.com/1.0/links/summer-sale/status" \
-H "X-API-KEY: b2co_your_api_key" \
-H "Content-Type: application/json" \
-d '{"status": "PAUSED"}'
{
"success": true,
"data": {
"message": "Link paused successfully",
"id": "clp123abc456",
"code": "summer-sale",
"status": "PAUSED",
"updatedAt": "2024-01-15T10:35:00Z"
}
}
Error Codes
Invalid status parameter provided
Link with the specified code does not exist or belongs to another project
API key is missing or invalid
Too many requests, please try again later
Link is already in the requested status or operation is not allowed (e.g., activating expired link)