PATCH
/
players
/
orders
/
{workspaceId}
/
{orderId}
curl --request PATCH \
  --url https://api.hyra.io/players/orders/{workspaceId}/{orderId} \
  --header 'Content-Type: application/json' \
  --data '{
  "picked_up_by": "<string>",
  "prepared_by": "<string>",
  "status": "submitted"
}'
{
  "_id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "customer": "<string>",
  "items": [
    "<string>"
  ],
  "order_number": 123,
  "picked_up_by": "<string>",
  "prepared_by": "<string>",
  "status": "submitted",
  "submitted_by": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "workspace": "<string>"
}

Path Parameters

workspaceId
string
required
orderId
string
required

Body

application/json
picked_up_by
string
prepared_by
string
status
enum<string>
Available options:
submitted,
handed_to,
waiting_for_preparation,
finding_new_colleague,
preparing,
completed,
waiting_for_pickup,
cancelled

Response

200 - application/json
_id
string
required
createdAt
string
required
customer
string
required
items
string[]
required
order_number
number
required
picked_up_by
string
prepared_by
string
status
enum<string>
required
Available options:
submitted,
handed_to,
waiting_for_preparation,
finding_new_colleague,
preparing,
completed,
waiting_for_pickup,
cancelled
submitted_by
string
required
updatedAt
string
required
workspace
string
required