POST
/api/public/v1/locations/{locationId}/archive

Archive a location

Archive a location, release its phone number, and decommission its associated resources.

Path Parameters

NameTypeRequiredDescription
locationIdstring
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"
  }
}