Draft

Beta: Create a draft slot

post

Create a new draft slot for a specific site. The slot will be created in draft state without a zone or scheduled times.

Draft slots allow you to:

  • Pre-register a booking before scheduling
  • Add notes and references
  • Include custom fields
Authorizations
AuthenticationstringRequired

Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.

Example of authenticated request

$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Path parameters
site-slugstringRequired

The slug identifier of the site

Body
notestring Β· nullableOptional

Optional note for the slot (can be blank or null)

Responses
chevron-right
201

Draft slot created successfully

application/json
uidstringRequired

Unique identifier for the slot

start_timestring Β· date-time Β· nullableOptional

Start time of the slot in ISO 8601 format (null for draft slots until scheduled)

end_timestring Β· date-time Β· nullableOptional

End time of the slot in ISO 8601 format (null for draft slots until scheduled)

statestring Β· enumRequired

State of the slot (always "draft" for draft slots)

Possible values:
notestring Β· nullableOptional

Optional note for the slot

post
/flow/sites/{site-slug}/slots/draft/

Last updated

Was this helpful?