{"openapi":"3.1.0","info":{"title":"Grafik API","version":"1"},"paths":{"/healthz":{"get":{"summary":"Liveness and database check","operationId":"getHealth","tags":["public"],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/openapi.json":{"get":{"summary":"The API contract","operationId":"getOpenApiDocument","tags":["public"],"security":[],"responses":{"200":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/register":{"post":{"summary":"Register an owner account","operationId":"registerOwner","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/login":{"post":{"summary":"Sign in with email and password; creates a named device session","operationId":"login","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/register/confirm":{"post":{"summary":"Confirm the email of a new account from the emailed link; the account can sign in afterwards","operationId":"confirmRegistration","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailConfirm"}}}},"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/register/resend":{"post":{"summary":"Email a new confirmation link to an account that has not confirmed yet (always answers 202)","operationId":"resendRegistrationConfirmation","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendConfirmation"}}}},"responses":{"202":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/refresh":{"post":{"summary":"Exchange a refresh token for new tokens (rotating)","operationId":"refreshToken","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/logout":{"post":{"summary":"End this device session","operationId":"logout","tags":["user"],"security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/me":{"get":{"summary":"The signed-in user's profile","operationId":"getProfile","tags":["user"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/language":{"post":{"summary":"Choose the interface and email language (bg or en)","operationId":"setLanguage","tags":["user"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageRequest"}}}},"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/devices":{"get":{"summary":"List this user's device sessions","operationId":"listDevices","tags":["user"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/devices/{id}":{"delete":{"summary":"Revoke one device session","operationId":"revokeDevice","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/confirm-password":{"post":{"summary":"Re-enter the password to allow sensitive actions for a few minutes","operationId":"confirmPassword","tags":["user"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordRequest"}}}},"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/password":{"post":{"summary":"Change the password (needs recent confirmation); signs out other devices","operationId":"changePassword","tags":["user"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPasswordRequest"}}}},"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/email":{"post":{"summary":"Ask to change the email (needs recent confirmation); the new address must confirm it with a link","operationId":"changeEmail","tags":["user"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRequest"}}}},"responses":{"202":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/email/confirm":{"post":{"summary":"Confirm a new email address with the link sent to it; no sign-in needed","operationId":"confirmEmailChange","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailConfirm"}}}},"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/password-reset":{"post":{"summary":"Email a password reset link (always answers 202)","operationId":"requestPasswordReset","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequest"}}}},"responses":{"202":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/password-reset/confirm":{"post":{"summary":"Set a new password from a reset link; signs out everywhere","operationId":"confirmPasswordReset","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetConfirm"}}}},"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/invites/accept":{"post":{"summary":"Accept a worker invite: choose a password, or give the existing password if the email already has an account","operationId":"acceptInvite","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInvite"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places":{"get":{"summary":"List the owner's places","operationId":"listPlaces","tags":["user"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create a place","operationId":"createPlace","tags":["user"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceInput"}}}},"responses":{"201":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/api-keys":{"get":{"summary":"List API keys (never the secret)","operationId":"listApiKeys","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 200 (default 50)","schema":{"type":"integer","format":"int32","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create an API key; the secret is returned once","operationId":"createApiKey","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyInput"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedKeyView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/api-keys/{keyId}":{"delete":{"summary":"Revoke an API key immediately","operationId":"revokeApiKey","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/audit-log":{"get":{"summary":"Who did what (newest first, kept 12 months)","operationId":"getAuditLog","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 200 (default 50)","schema":{"type":"integer","format":"int32","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditPage"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/my-worker":{"post":{"summary":"The owner adds themselves as a worker of their place (no invite)","operationId":"addMyselfAsWorker","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyWorkerInput"}}}},"responses":{"201":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/devices/push":{"put":{"summary":"Register or refresh this app's push token","operationId":"registerPushDevice","tags":["user"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceInput"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushDeviceView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"summary":"List this user's push devices","operationId":"listPushDevices","tags":["user"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushDevicesResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/devices/push/{id}":{"delete":{"summary":"Remove a push device","operationId":"removePushDevice","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/bookers/export":{"get":{"summary":"Export one booker's bookings and message history","operationId":"exportBookerData","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"email","in":"query","required":false,"description":"Give exactly one of email, phone or external_id; a blank value counts as not given","schema":{"type":"string","pattern":"^[^\\u0000]*$"}},{"name":"phone","in":"query","required":false,"description":"Give exactly one of email, phone or external_id; a blank value counts as not given","schema":{"type":"string","pattern":"^[^\\u0000]*$"}},{"name":"external_id","in":"query","required":false,"description":"Give exactly one of email, phone or external_id; a blank value counts as not given","schema":{"type":"string","pattern":"^[^\\u0000]*$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookerExport"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/bookers":{"delete":{"summary":"Erase one booker's personal data now","operationId":"eraseBookerData","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"email","in":"query","required":false,"description":"Give exactly one of email, phone or external_id; a blank value counts as not given","schema":{"type":"string","pattern":"^[^\\u0000]*$"}},{"name":"phone","in":"query","required":false,"description":"Give exactly one of email, phone or external_id; a blank value counts as not given","schema":{"type":"string","pattern":"^[^\\u0000]*$"}},{"name":"external_id","in":"query","required":false,"description":"Give exactly one of email, phone or external_id; a blank value counts as not given","schema":{"type":"string","pattern":"^[^\\u0000]*$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnonymisedResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}":{"delete":{"summary":"Delete a place and everything under it (needs password confirmation)","operationId":"deletePlace","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"summary":"Read place settings","operationId":"getPlace","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Replace place settings","operationId":"replacePlace","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"If-Match","in":"header","required":false,"description":"The version from a read's ETag; a stale one gives 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceInput"}}}},"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"The If-Match version is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/account":{"delete":{"summary":"Delete the owner account with all places (needs password confirmation)","operationId":"deleteAccount","tags":["user"],"security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/place":{"get":{"summary":"Read place settings","operationId":"getPlaceByKey","tags":["key"],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Replace place settings","operationId":"replacePlaceByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"If-Match","in":"header","required":false,"description":"The version from a read's ETag; a stale one gives 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceInput"}}}},"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"The If-Match version is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/slot-types":{"get":{"summary":"List slot types","operationId":"listSlotTypesByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 200 (default 50)","schema":{"type":"integer","format":"int32","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed since this ISO-8601 instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypesPage"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create a slot type","operationId":"createSlotTypeByKey","tags":["key"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeInput"}}}},"responses":{"201":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/slot-types/{slotTypeId}":{"get":{"summary":"Read a slot type","operationId":"getSlotTypeByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"slotTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Replace a slot type","operationId":"replaceSlotTypeByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"slotTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"If-Match","in":"header","required":false,"description":"The version from a read's ETag; a stale one gives 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeInput"}}}},"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"The If-Match version is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Delete a slot type (soft; existing bookings keep their snapshot)","operationId":"deleteSlotTypeByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"slotTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workers":{"get":{"summary":"List workers","operationId":"listWorkersByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 200 (default 50)","schema":{"type":"integer","format":"int32","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed since this ISO-8601 instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkersPage"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create a worker","operationId":"createWorkerByKey","tags":["key"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerInput"}}}},"responses":{"201":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workers/{workerId}":{"get":{"summary":"Read a worker","operationId":"getWorkerByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Replace a worker's name and email","operationId":"replaceWorkerByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"If-Match","in":"header","required":false,"description":"The version from a read's ETag; a stale one gives 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerInput"}}}},"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"The If-Match version is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Delete a worker (soft; removes their login)","operationId":"deleteWorkerByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workers/{workerId}/slot-types":{"put":{"summary":"Replace the slot types a worker accepts","operationId":"replaceWorkerSlotTypesByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedInput"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workers/{workerId}/unlink":{"post":{"summary":"Unlink the worker's account so the record can be handed over","operationId":"unlinkWorkerByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workers/{workerId}/schedule":{"get":{"summary":"Read a worker's weekly template and dated exceptions","operationId":"getWorkerScheduleByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Replace a worker's schedule","operationId":"replaceWorkerScheduleByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workers/{workerId}/invite":{"post":{"summary":"Email the worker an invite link (the owner's own email links directly)","operationId":"inviteWorkerByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"202":{"description":"Success"},"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/slot-types":{"get":{"summary":"List slot types","operationId":"listSlotTypes","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 200 (default 50)","schema":{"type":"integer","format":"int32","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed since this ISO-8601 instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypesPage"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create a slot type","operationId":"createSlotType","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeInput"}}}},"responses":{"201":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/slot-types/{slotTypeId}":{"get":{"summary":"Read a slot type","operationId":"getSlotType","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"slotTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Replace a slot type","operationId":"replaceSlotType","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"slotTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"If-Match","in":"header","required":false,"description":"The version from a read's ETag; a stale one gives 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeInput"}}}},"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotTypeView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"The If-Match version is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Delete a slot type (soft; existing bookings keep their snapshot)","operationId":"deleteSlotType","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"slotTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/workers":{"get":{"summary":"List workers","operationId":"listWorkers","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 200 (default 50)","schema":{"type":"integer","format":"int32","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed since this ISO-8601 instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkersPage"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create a worker","operationId":"createWorker","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerInput"}}}},"responses":{"201":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/workers/{workerId}":{"get":{"summary":"Read a worker","operationId":"getWorker","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Replace a worker's name and email","operationId":"replaceWorker","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"If-Match","in":"header","required":false,"description":"The version from a read's ETag; a stale one gives 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerInput"}}}},"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"The If-Match version is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Delete a worker (soft; removes their login)","operationId":"deleteWorker","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/workers/{workerId}/slot-types":{"put":{"summary":"Replace the slot types a worker accepts","operationId":"replaceWorkerSlotTypes","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedInput"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/workers/{workerId}/unlink":{"post":{"summary":"Unlink the worker's account so the record can be handed over","operationId":"unlinkWorker","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/workers/{workerId}/schedule":{"get":{"summary":"Read a worker's weekly template and dated exceptions","operationId":"getWorkerSchedule","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Replace a worker's schedule","operationId":"replaceWorkerSchedule","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/workers/{workerId}/invite":{"post":{"summary":"Email the worker an invite link (the owner's own email links directly)","operationId":"inviteWorker","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"workerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"202":{"description":"Success"},"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/availability":{"get":{"summary":"Search offered start times for a slot type, for one worker or all","operationId":"searchAvailabilityByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"from","in":"query","required":true,"description":"Start of the range, ISO-8601 UTC instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"to","in":"query","required":true,"description":"End of the range, exclusive; at most 31 days after from","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"slot_type_id","in":"query","required":true,"description":"The slot type to search","schema":{"type":"integer","format":"int64"}},{"name":"worker_id","in":"query","required":false,"description":"Limit to one worker; omit for any worker","schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffersResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/bookings":{"post":{"summary":"Create a booking (Idempotency-Key supported)","operationId":"createBookingByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 200 characters; repeating the same request returns the original result","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingInput"}}}},"responses":{"201":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"summary":"List bookings (filters, cursor paging, updated_since); by external_id for booking keys","operationId":"listBookingsByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"from","in":"query","required":false,"description":"Only bookings starting at or after this instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"to","in":"query","required":false,"description":"Only bookings starting before this instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"status","in":"query","required":false,"description":"Filter by status","schema":{"type":"string","enum":["confirmed","canceled"]}},{"name":"worker_id","in":"query","required":false,"description":"Only this worker","schema":{"type":"integer","format":"int64"}},{"name":"external_id","in":"query","required":false,"description":"The booker's external id","schema":{"type":"string","pattern":"^[^\\u0000]*$"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed since this ISO-8601 instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 200 (default 50)","schema":{"type":"integer","format":"int32","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingsPage"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/bookings/{bookingId}":{"get":{"summary":"Read one booking","operationId":"getBookingByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"summary":"Edit the booker's contact details and metadata (If-Match supported)","operationId":"editBookingByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"If-Match","in":"header","required":false,"description":"The version from a read's ETag; a stale one gives 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingPatch"}}}},"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"The If-Match version is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/bookings/{bookingId}/cancel":{"post":{"summary":"Cancel a booking (terminal; repeating is harmless)","operationId":"cancelBookingByKey","tags":["key"],"security":[{"apiKey":[]}],"parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/availability":{"get":{"summary":"Search offered start times for a slot type, for one worker or all","operationId":"searchAvailability","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":true,"description":"Start of the range, ISO-8601 UTC instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"to","in":"query","required":true,"description":"End of the range, exclusive; at most 31 days after from","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"slot_type_id","in":"query","required":true,"description":"The slot type to search","schema":{"type":"integer","format":"int64"}},{"name":"worker_id","in":"query","required":false,"description":"Limit to one worker; omit for any worker","schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffersResponse"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/bookings":{"post":{"summary":"Create a booking (Idempotency-Key supported)","operationId":"createBooking","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 200 characters; repeating the same request returns the original result","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingInput"}}}},"responses":{"201":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The request conflicts with the current state","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"summary":"List bookings (filters, cursor paging, updated_since); by external_id for booking keys","operationId":"listBookings","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"description":"Only bookings starting at or after this instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"to","in":"query","required":false,"description":"Only bookings starting before this instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"status","in":"query","required":false,"description":"Filter by status","schema":{"type":"string","enum":["confirmed","canceled"]}},{"name":"worker_id","in":"query","required":false,"description":"Only this worker","schema":{"type":"integer","format":"int64"}},{"name":"external_id","in":"query","required":false,"description":"The booker's external id","schema":{"type":"string","pattern":"^[^\\u0000]*$"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed since this ISO-8601 instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 200 (default 50)","schema":{"type":"integer","format":"int32","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingsPage"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/bookings/{bookingId}":{"get":{"summary":"Read one booking","operationId":"getBooking","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"summary":"Edit the booker's contact details and metadata (If-Match supported)","operationId":"editBooking","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"If-Match","in":"header","required":false,"description":"The version from a read's ETag; a stale one gives 412","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingPatch"}}}},"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"The If-Match version is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/places/{placeId}/bookings/{bookingId}/cancel":{"post":{"summary":"Cancel a booking (terminal; repeating is harmless)","operationId":"cancelBooking","tags":["user"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","headers":{"ETag":{"description":"The version, for If-Match on the next edit","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"The credential is missing, expired or wrong","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential is valid but may not do this","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/booker/bookings/{token}":{"get":{"summary":"View a booking by its token","operationId":"getBookerBooking","tags":["booker"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookerBookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/booker/bookings/{token}/reminders/opt-out":{"post":{"summary":"Stop reminder emails for this booking","operationId":"optOutOfReminders","tags":["booker"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/booker/bookings/{token}/cancel":{"post":{"summary":"Cancel by token; the place's cancel cutoff applies","operationId":"cancelBookerBooking","tags":["booker"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookerBookingView"}}}},"400":{"description":"The request is malformed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such resource in the caller's scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field is not acceptable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests; see Retry-After","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"schemas":{"AcceptInvite":{"type":"object","properties":{"token":{"type":"string"},"password":{"type":"string"}},"required":["token","password"]},"AcceptedInput":{"type":"object","properties":{"slot_types":{"type":"array","items":{"$ref":"#/components/schemas/AcceptedView"}}},"required":["slot_types"]},"AcceptedView":{"type":"object","properties":{"slot_type_id":{"type":"integer","format":"int64"},"duration_override_minutes":{"type":["integer","null"],"format":"int32"}},"required":["slot_type_id"]},"AnonymisedResponse":{"type":"object","properties":{"anonymised":{"type":"integer","format":"int32"}},"required":["anonymised"]},"AppPlatform":{"type":"string","enum":["android","ios"]},"AuditEntryView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"actor_kind":{"type":"string"},"actor_id":{"type":["integer","null"],"format":"int64"},"action":{"type":"string"},"resource_type":{"type":"string"},"resource_id":{"type":["integer","null"],"format":"int64"},"details":{"type":"object","additionalProperties":true},"at":{"type":"string","format":"date-time"}},"required":["id","actor_kind","action","resource_type","details","at"]},"AuditPage":{"type":"object","properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/AuditEntryView"}},"next_cursor":{"type":["string","null"]}},"required":["entries"]},"BookerBookingView":{"type":"object","properties":{"status":{"type":"string"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"timezone":{"type":"string"},"place_name":{"type":"string"},"worker_name":{"type":"string"},"slot_type_name":{"type":"string"},"booker_name":{"type":"string"},"can_cancel":{"type":"boolean"}},"required":["status","start","end","timezone","place_name","worker_name","slot_type_name","booker_name","can_cancel"]},"BookerExport":{"type":"object","properties":{"bookings":{"type":"array","items":{"$ref":"#/components/schemas/BookingView"}},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageView"}}},"required":["bookings","messages"]},"BookerInput":{"type":"object","description":"The person who books. An email or a phone is required: give at least one of them.","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\u0000]*[^\\s\\u0000][^\\u0000]*$"},"email":{"type":["string","null"],"maxLength":254,"pattern":"^\\s*[^@\\s\\u0000]+@[^@\\s\\u0000]+\\.[^@\\s\\u0000]+\\s*$","description":"Required when phone is not given."},"phone":{"type":["string","null"],"minLength":3,"maxLength":40,"pattern":"^[^\\u0000]*$","description":"Required when email is not given."},"metadata":{"type":["object","null"],"additionalProperties":true},"external_id":{"type":["string","null"],"minLength":1,"maxLength":200,"pattern":"^[^\\u0000]*$"},"locale":{"anyOf":[{"$ref":"#/components/schemas/Language"},{"type":"null"}]}},"required":["name"]},"BookerView":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"metadata":{"type":"object","additionalProperties":true},"external_id":{"type":["string","null"]},"locale":{"type":["string","null"]}},"required":["name","metadata"]},"BookingInput":{"type":"object","properties":{"slot_type_id":{"type":"integer","format":"int64"},"start":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"},"worker_id":{"type":["integer","null"],"format":"int64"},"booker":{"$ref":"#/components/schemas/BookerInput"}},"required":["slot_type_id","start","booker"]},"BookingPatch":{"type":"object","properties":{"booker":{"$ref":"#/components/schemas/BookerInput"}},"required":["booker"]},"BookingView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"status":{"type":"string"},"worker_id":{"type":"integer","format":"int64"},"slot_type_id":{"type":"integer","format":"int64"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"duration_minutes":{"type":"integer","format":"int64"},"buffer_minutes":{"type":"integer","format":"int64"},"booker":{"$ref":"#/components/schemas/BookerView"},"updated_at":{"type":"string","format":"date-time"},"outside_working_hours":{"type":["boolean","null"]},"booker_token":{"type":["string","null"]}},"required":["id","status","worker_id","slot_type_id","start","end","duration_minutes","buffer_minutes","booker","updated_at"]},"BookingsPage":{"type":"object","properties":{"bookings":{"type":"array","items":{"$ref":"#/components/schemas/BookingView"}},"next_cursor":{"type":["string","null"]}},"required":["bookings"]},"CreatedKeyView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"secret":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string"}},"required":["id","secret","label","kind"]},"DeviceInput":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":4096,"pattern":"^[^\\u0000]*[^\\s\\u0000][^\\u0000]*$"},"platform":{"$ref":"#/components/schemas/AppPlatform"},"app_version":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[^\\u0000]*[^\\s\\u0000][^\\u0000]*$"},"locale":{"anyOf":[{"$ref":"#/components/schemas/Language"},{"type":"null"}]},"enabled":{"type":"boolean"},"opt_out":{"type":"array","items":{"$ref":"#/components/schemas/PushKind"}}},"required":["token","platform","app_version"]},"DeviceView":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"platform":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_used_at":{"type":"string","format":"date-time"}},"required":["id","name","platform","created_at","last_used_at"]},"DevicesResponse":{"type":"object","properties":{"devices":{"type":"array","items":{"$ref":"#/components/schemas/DeviceView"}}},"required":["devices"]},"EmailConfirm":{"type":"object","properties":{"token":{"type":"string","pattern":"\\S"}},"required":["token"]},"EmailRequest":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"pattern":"^\\s*[^@\\s\\u0000]+@[^@\\s\\u0000]+\\.[^@\\s\\u0000]+\\s*$"}},"required":["email"]},"FieldError":{"type":"object","properties":{"field":{"type":"string"},"code":{"type":"string"},"message":{"type":["string","null"]}},"required":["field","code"]},"KeyInput":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[^\\u0000]*[^\\s\\u0000][^\\u0000]*$"},"kind":{"$ref":"#/components/schemas/KeyKind"},"expires_at":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$"}},"required":["label","kind"]},"KeyKind":{"type":"string","enum":["management","booking"]},"KeyView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"label":{"type":"string"},"kind":{"type":"string"},"prefix":{"type":"string"},"last_four":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_used_at":{"type":["string","null"],"format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"},"revoked_at":{"type":["string","null"],"format":"date-time"}},"required":["id","label","kind","prefix","last_four","created_at"]},"KeysResponse":{"type":"object","properties":{"api_keys":{"type":"array","items":{"$ref":"#/components/schemas/KeyView"}},"next_cursor":{"type":["string","null"]}},"required":["api_keys"]},"Language":{"type":"string","enum":["bg","en"]},"LanguageRequest":{"type":"object","properties":{"language":{"$ref":"#/components/schemas/Language"}},"required":["language"]},"LoginRequest":{"type":"object","properties":{"email":{"type":"string","pattern":"^[^\\u0000]*$"},"password":{"type":"string"},"device_name":{"type":"string","pattern":"^[^\\u0000]*$"},"platform":{"$ref":"#/components/schemas/Platform"}},"required":["email","password","device_name"]},"MeResponse":{"type":"object","properties":{"user_id":{"type":"integer","format":"int64"},"role":{"type":"string"},"email":{"type":"string"},"language":{"type":"string"},"worker_ids":{"type":"array","items":{"type":"integer","format":"int64"}}},"required":["user_id","role","email","language","worker_ids"]},"MessageView":{"type":"object","properties":{"kind":{"type":"string"},"channel":{"type":"string"},"recipient":{"type":"string"},"status":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["kind","channel","recipient","status","at"]},"MyWorkerInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[^\\u0000]*[^\\s\\u0000][^\\u0000]*$"}},"required":["name"]},"NewPasswordRequest":{"type":"object","properties":{"new_password":{"type":"string","minLength":10,"pattern":"\\S"}},"required":["new_password"]},"OfferView":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"worker_ids":{"type":"array","items":{"type":"integer","format":"int64"}}},"required":["start","worker_ids"]},"OffersResponse":{"type":"object","properties":{"offers":{"type":"array","items":{"$ref":"#/components/schemas/OfferView"}}},"required":["offers"]},"PasswordRequest":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"]},"PlaceInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[^\\u0000]*[^\\s\\u0000][^\\u0000]*$"},"timezone":{"type":"string"},"default_language":{"$ref":"#/components/schemas/Language"},"min_notice_hours":{"type":"integer","format":"int32","minimum":0,"maximum":8760},"booking_window_days":{"type":"integer","format":"int32","minimum":1,"maximum":730},"cancel_cutoff_hours":{"type":"integer","format":"int32","minimum":0,"maximum":8760},"reminder_offset_hours":{"type":"integer","format":"int32","minimum":1,"maximum":720}},"required":["name","timezone"]},"PlaceView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"timezone":{"type":"string"},"default_language":{"type":"string"},"min_notice_hours":{"type":"integer","format":"int32"},"booking_window_days":{"type":"integer","format":"int32"},"cancel_cutoff_hours":{"type":"integer","format":"int32"},"reminder_offset_hours":{"type":"integer","format":"int32"}},"required":["id","name","timezone","default_language","min_notice_hours","booking_window_days","cancel_cutoff_hours","reminder_offset_hours"]},"PlacesResponse":{"type":"object","properties":{"places":{"type":"array","items":{"$ref":"#/components/schemas/PlaceView"}}},"required":["places"]},"Platform":{"type":"string","enum":["web","android","ios"]},"Problem":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","format":"int32"},"code":{"type":"string"},"detail":{"type":["string","null"]},"errors":{"type":"array","items":{"$ref":"#/components/schemas/FieldError"}},"store_url":{"type":["string","null"]}},"required":["type","title","status","code"]},"PushDeviceView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"platform":{"type":"string"},"token":{"type":"string"},"app_version":{"type":"string"},"locale":{"type":["string","null"]},"enabled":{"type":"boolean"},"opt_out":{"type":"array","items":{"type":"string"}}},"required":["id","platform","token","app_version","enabled","opt_out"]},"PushDevicesResponse":{"type":"object","properties":{"devices":{"type":"array","items":{"$ref":"#/components/schemas/PushDeviceView"}}},"required":["devices"]},"PushKind":{"type":"string","enum":["new_booking","cancellation","outside_hours"]},"RefreshRequest":{"type":"object","properties":{"refresh_token":{"type":"string"}},"required":["refresh_token"]},"RegisterRequest":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"pattern":"^\\s*[^@\\s\\u0000]+@[^@\\s\\u0000]+\\.[^@\\s\\u0000]+\\s*$"},"password":{"type":"string","minLength":10,"pattern":"\\S"}},"required":["email","password"]},"RegisterResponse":{"type":"object","properties":{"user_id":{"type":"integer","format":"int64"}},"required":["user_id"]},"ResendConfirmation":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]},"ResetConfirm":{"type":"object","properties":{"token":{"type":"string"},"new_password":{"type":"string","minLength":10,"pattern":"\\S"}},"required":["token","new_password"]},"ResetRequest":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]},"ScheduleBody":{"type":"object","properties":{"weekly":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TimeRange"}},"description":"Keys: monday to sunday.","propertyNames":{"pattern":"^(monday|tuesday|wednesday|thursday|friday|saturday|sunday)$"}},"exceptions":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TimeRange"}},"description":"Keys: ISO dates such as 2030-01-07; an empty list is time off.","propertyNames":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}}},"SlotTypeInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[^\\u0000]*[^\\s\\u0000][^\\u0000]*$"},"duration_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":1440},"buffer_minutes":{"type":"integer","format":"int32","minimum":0,"maximum":1440},"reminder_offset_hours":{"type":["integer","null"],"format":"int32","minimum":1,"maximum":720},"reminders_disabled":{"type":"boolean"}},"required":["name","duration_minutes"]},"SlotTypeView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"duration_minutes":{"type":"integer","format":"int32"},"buffer_minutes":{"type":"integer","format":"int32"},"reminder_offset_hours":{"type":["integer","null"],"format":"int32"},"reminders_disabled":{"type":"boolean"},"deleted":{"type":["boolean","null"]}},"required":["id","name","duration_minutes","buffer_minutes","reminders_disabled"]},"SlotTypesPage":{"type":"object","properties":{"slot_types":{"type":"array","items":{"$ref":"#/components/schemas/SlotTypeView"}},"next_cursor":{"type":["string","null"]}},"required":["slot_types"]},"StatusResponse":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]},"TimeRange":{"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"Local time, 24-hour HH:mm. Must be before end."},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"Local time, 24-hour HH:mm. Must be after start."}},"required":["start","end"]},"TokenResponse":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"refresh_token":{"type":["string","null"]},"refresh_expires_at":{"type":["string","null"],"format":"date-time"}},"required":["access_token","expires_at"]},"WorkerInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[^\\u0000]*[^\\s\\u0000][^\\u0000]*$"},"email":{"type":["string","null"],"maxLength":254,"pattern":"^\\s*[^@\\s\\u0000]+@[^@\\s\\u0000]+\\.[^@\\s\\u0000]+\\s*$"}},"required":["name"]},"WorkerView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"email":{"type":["string","null"]},"has_login":{"type":"boolean"},"slot_types":{"type":"array","items":{"$ref":"#/components/schemas/AcceptedView"}},"deleted":{"type":["boolean","null"]}},"required":["id","name","has_login","slot_types"]},"WorkersPage":{"type":"object","properties":{"workers":{"type":"array","items":{"$ref":"#/components/schemas/WorkerView"}},"next_cursor":{"type":["string","null"]}},"required":["workers"]}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A user access token from /v1/auth/login (the web UI uses a session cookie instead)"},"apiKey":{"type":"http","scheme":"bearer","description":"A place API key: grf_m_ (management) or grf_b_ (booking), sent as a bearer token"}}}}