POST /v1/locations/{id}/unarchive

Unarchive Location

Path parameters

  • id string Required

    Location id

Responses

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 404 application/json

    Not found

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id string Required

      id

    • companyId string Required

      Company ID

    • name string Required

      Name

    • archivedAt string(date-time) | null

      Archived at date

    • createdAt string(date-time)

      Created at date

    • updatedAt string(date-time)

      Updated at date

POST /v1/locations/{id}/unarchive
curl \
 --request POST 'https://localhost/v1/locations/loc_xxxxxxxx/unarchive'
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (404)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (200)
{
  "id": "loc_xxxxxxxxxxx",
  "companyId": "co_123123123123",
  "name": "Main Studio",
  "archivedAt": "2023-12-05 14:30:41",
  "createdAt": "2023-12-05 14:30:41",
  "updatedAt": "2023-12-05 14:30:41"
}