Update booth

PUT /api/booths/{id}

Allows you to update an existing booth under your account, given its ID, and the fields to edit.

Path parameters

  • id string Required

    the ID of the booth to update

Body

The parameters to update a booth

Responses

  • OK

    Hide response attributes Show response attributes object
  • Bad Request

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

  • Unauthorized

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

  • Not Found

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

PUT /api/booths/{id}
curl \
 -X PUT http://localhost:4000/api/booths/{id} \
 -d '{"name":"Custom booth name","width":"13.5","height":"10.83","length":"20","status":"decommissioned","bay_count":"two","account_id":"f260f115-f2e6-4dde-bcab-98b10fdb8cf5","brand_name":"chinook","motor_size":"7.5","burner_size":".997","facility_id":"f260f115-f2e6-4dde-bcab-98b10fdb8cf6","model_number":"10580"}'
Request examples
{
  "name": "Custom booth name",
  "width": "13.5",
  "height": "10.83",
  "length": "20",
  "status": "decommissioned",
  "bay_count": "two",
  "account_id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf5",
  "brand_name": "chinook",
  "motor_size": "7.5",
  "burner_size": ".997",
  "facility_id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
  "model_number": "10580"
}
Response examples (200)
{
  "id": "3317efbd-0049-48d4-bb7f-4fd45315323b",
  "name": "Test Booth",
  "width": "13.5",
  "height": "10.83",
  "length": "20",
  "status": "active",
  "bay_count": "two",
  "brand_name": "chinook",
  "created_at": "2023-08-06T00:00:00Z",
  "motor_size": "7.5",
  "burner_size": ".997",
  "external_id": "ABCDEFGH",
  "facility_id": "eea97bc4-9f09-4f56-b9f6-18563055d195",
  "model_number": "10580",
  "facility_name": "Warehouse",
  "serial_number": "ABCD-123-123",
  "last_updated_at": "2023-09-06T08:00:00Z"
}
Response examples (200)
{
  "id": "3317efbd-0049-48d4-bb7f-4fd45315323b",
  "name": "Test Booth",
  "width": "13.5",
  "height": "10.83",
  "length": "20",
  "status": "active",
  "bay_count": "two",
  "brand_name": "chinook",
  "created_at": "2023-08-06T00:00:00Z",
  "motor_size": "7.5",
  "burner_size": ".997",
  "external_id": "ABCDEFGH",
  "facility_id": "eea97bc4-9f09-4f56-b9f6-18563055d195",
  "model_number": "10580",
  "facility_name": "Warehouse",
  "serial_number": "ABCD-123-123",
  "last_updated_at": "2023-09-06T08:00:00Z"
}
Response examples (400)
{
  "error": "Error Reason"
}
Response examples (400)
{
  "error": "Error Reason"
}
Response examples (401)
{
  "error": "Error Reason"
}
Response examples (401)
{
  "error": "Error Reason"
}
Response examples (404)
{
  "error": "Error Reason"
}
Response examples (404)
{
  "error": "Error Reason"
}