curl --location --globoff 'https://.daftra.com/api2/invoices/assign_work_order/2415.json' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"type": "object",
"properties": {
"Invoice": {
"type": "object",
"description": "Wrapper object carrying the work order assignment.",
"properties": {
"work_order_id": {
"type": "integer",
"description": "The ID of the work order to assign to the invoice. Send `0` (or an empty value) to clear the current assignment. The value is stored as-is, so it should reference an existing work order in your account.",
"examples": [
17
]
}
},
"required": [
"work_order_id"
],
"x-apidog-orders": [
"work_order_id"
]
}
},
"required": [
"Invoice"
],
"x-apidog-orders": [
"Invoice"
]
}'