PUT
/
orders
/
{id}
Update a specific order
curl --request PUT \
  --url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/orders/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dish_ids": [
    "692a4a34a46ecf001f35ac6f",
    "6a4a857c022eb7001f9b8972",
    "6b7c2441a0db43001f9bf377"
  ],
  "priority": 3,
  "status": "Received"
}'
{
  "results": [
    {
      "id": "674d0bf5c28b69001f8e03a1",
      "created_at": "2024-04-22T10:00:00Z",
      "updated_at": "2024-04-22T10:00:00Z",
      "name": "John",
      "table_number": 8,
      "dish_ids": [
        "692a4a34a46ecf001f35ac6f",
        "6a4a857c022eb7001f9b8972",
        "6b7c2441a0db43001f9bf377"
      ],
      "special_requests": "<string>",
      "priority": 3,
      "scheduled_at": null,
      "status": "Received"
    }
  ],
  "total_results": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique order identifier, generated when the order was created.

Body

application/json

The request body to update an order requires only the properties to be updated.

Order properties that can be updated: dish_ids, priority, and status.

The body is of type object.

Response

200
application/json

Order updated successfully

The response is of type object.