Draft
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
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/"
The slug identifier of the site
Optional note for the slot (can be blank or null)
Draft slot created successfully
Unique identifier for the slot
Start time of the slot in ISO 8601 format (null for draft slots until scheduled)
End time of the slot in ISO 8601 format (null for draft slots until scheduled)
State of the slot (always "draft" for draft slots)
Optional note for the slot
Bad request - invalid input. Structural validation errors are returned as a single non_field_errors umbrella with code: ["invalid_input"] and one detail entry per offending field, formatted as "<dotted-loc>: <message>" (e.g. "company: Field required"). The company_requires_remote_id_or_pk semantic error keeps its own named code.
Site not found
Last updated
Was this helpful?