POST
/v1/dataset-sheet/schedules
Requires sync:write. Creates a schedule, disabled, at revision 1, for one custom dataset of the workspace and a saved query, whose answer becomes the Sheet’s Data tab. The dataset must be readable by the workspace (dataset_unavailable otherwise). The query is the body of POST /v1/datasets/{datasetId}/query, at most 8,192 characters with a limit of at most 2,000 rows, and is validated against the dataset’s columns as that route validates it; a query that route would refuse is invalid_schedule. personalOptIn (default false) is the explicit choice to put a column classified personal into the Sheet; without it a query that names one is invalid_schedule. The destination must be active, must hold its grant and must not be bound to a GA4, a Google Ads or a Search Console Sheet destination. The schedule plans an export only once enabled (nothing is extracted by this route).
Select media type application/json Exactly these fields, personalOptIn being optional; the workspace comes from the current API key. No timezone, token, spreadsheet ID or due time is accepted.
object string
/^[A-Za-z0-9_-]{1,128}$/
string
/^[A-Za-z0-9_-]{1,128}$/
The saved query, in the shape of the body of POST /v1/datasets/{datasetId}/query, with a limit of at most 2,000 rows (the Sheet’s page; 2,000 when omitted). It is at most 8,192 characters in JSON. Columns are named by their stable identifiers. It is validated against the dataset’s columns when the schedule is created or changed and again at every export.
object metrics
Array<object>
<= 10 items
object group_by
Array<object>
<= 3 items
object filters
Array<object>
<= 10 items
object minIntervalMinutes required
personalOptIn
Whether the Sheet may carry a column the workspace classified personal. Off unless a person turns it on.
boolean
Create a disabled custom dataset Sheet schedule.
Select media type application/json object string
/^[A-Za-z0-9_-]{1,128}$/
string
/^[A-Za-z0-9_-]{1,128}$/
string
/^[A-Za-z0-9_-]{1,128}$/
The saved query, in the shape of the body of POST /v1/datasets/{datasetId}/query, with a limit of at most 2,000 rows (the Sheet’s page; 2,000 when omitted). It is at most 8,192 characters in JSON. Columns are named by their stable identifiers. It is validated against the dataset’s columns when the schedule is created or changed and again at every export.
object metrics
Array<object>
<= 10 items
object group_by
Array<object>
<= 3 items
object filters
Array<object>
<= 10 items
object minIntervalMinutes required
invalid_request, invalid_json, invalid_schedule.
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed values: invalid_request invalid_json invalid_schedule
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed value: unauthorized
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
WWW-Authenticate required
string
Allowed value: Bearer
forbidden, destination_permission_required, workspace_paused (the workspace is paused), subscription_lapsed (the paid term has ended).
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed values: forbidden destination_permission_required schedule_inactive workspace_paused subscription_lapsed
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
destination_not_found, dataset_unavailable.
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed values: destination_not_found dataset_unavailable schedule_not_found export_not_found not_found
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed value: method_not_allowed
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
string
Allowed value: POST
destination_conflict, destination_unavailable, schedule_conflict.
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed values: destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed destination_unavailable schedule_conflict redrive_conflict
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed value: request_too_large
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
unsupported_media_type, unsupported_encoding.
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed values: unsupported_media_type unsupported_encoding
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
rate_limited — the key’s or its workspace’s per-plan request allowance for this route’s class is used up.
It is answered after authentication, on every API-key operation in this document and on MCP, and never on /health. A download link is
limited the same way, after its lookup, by the key that issued it and the export’s workspace.
Retry-After is the window in seconds and RateLimit-Limit is the limit of the bucket that refused. No remaining
count is returned. The limits themselves are not published here.
Select media type application/json object error
object code
Allowed value: rate_limited
Select media type application/json object object string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
error
object code
Allowed values: credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable
error
object code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found dataset_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable