POST
/api/public/v1/locations/{locationId}/archiveArchive a location
Archive a location, release its phone number, and decommission its associated resources.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | Required | Location ID. |
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/locations/{locationId}/archive" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Location archived successfully!",
"content": {
"phoneNumberReleased": true,
"releasedPhoneNumber": "+15551234567"
}
}