Installer.com Docs
API ReferenceWorkflows
PUT
/api/clients/{token}/workflow-steps/{workflowStepId}/bookings

Path Parameters

token*string
workflowStepId*string
Formatuuid

Request Body

application/json

Set booking payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "http://localhost:8000/api/clients/string/workflow-steps/497f6eca-6276-4993-bfeb-53cbbbba6f08/bookings" \  -H "Content-Type: application/json" \  -d '{    "startAt": "2019-08-24T14:15:22Z",    "endAt": "2019-08-24T14:15:22Z"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "workflowStepDataId": "d438a2ee-31c6-404f-9274-4fb2344234af",
  "contractorId": "8e641c22-41f4-4818-ae43-d2cb9b53e3d7",
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d",
  "performingRouterId": "bace478d-0ef2-4a4a-ba64-9e64e2b28cf1",
  "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
  "updatedAt": "2019-08-24",
  "createdAt": "2019-08-24",
  "deletedAt": "2019-08-24",
  "startAt": "2019-08-24T14:15:22Z",
  "endAt": "2019-08-24T14:15:22Z",
  "type": "inspection",
  "allDay": true,
  "durationMinutes": -2147483648,
  "status": "todo",
  "performingOrg": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string"
  },
  "order": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "displayId": "string",
    "address": "string",
    "city": "string",
    "postalCode": "string",
    "contactPersonName": "string",
    "operator": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "firstName": "string",
      "lastName": "string"
    },
    "coordinates": {
      "x": 0,
      "y": 0
    }
  }
}