Create Provider Break Series

This endpoint creates a recurring series of breaks for one provider.

Important Notes

  • Responds 202. The series id is returned at once; its breaks are written in the background and appear within seconds. Until then, GET /v3/provider_break_repeats/{id} responds 404.
  • start_date and end_date bound the first break; its duration is reused for every break of the series.
  • frequency is xdaily, xweekly or xmonthly; interval repeats every N days, weeks or months. week_days (1 = Monday … 7 = Sunday) is required for xweekly and not allowed otherwise.
  • Send exactly one of occurrences (up to 366, 53 or 12 by frequency) or until (at most one year away).
  • A series cannot be updated: delete it and create it again.
  • Dates follow the local-time convention described in Dates and times.
  • Errors from platform-services use legacy single-key codes (e.g. provider_not_found, google_event_break), without detail; errors from Connect itself (auth, scope, rate limit) keep {error, detail}.

Errors Dictionary

StatusErrorDetailDescription
400missing_provider_idprovider_id is missing.
400missing_intervalinterval is missing.
400invalid_start_datestart_date is not a valid date-time.
400invalid_end_dateend_date is not a valid date-time.
401unauthorizedinvalid_api_keyMissing or invalid Bearer token.
401unauthorizedapi_config_inactiveAPI access is inactive for this company.
403forbiddenscope_deniedAPI key lacks provider_breaks:write scope.
404provider_not_foundThe provider does not exist or belongs to another company.
422invalid_frequencyfrequency is missing or not one of xdaily, xweekly, xmonthly.
422missing_week_daysweek_days is missing for an xweekly series.
422invalid_week_daysweek_days was sent for a frequency other than xweekly.
422missing_occurrencesNeither occurrences nor until was sent.
422invalid_untilBoth occurrences and until were sent, or until is more than a year away.
422invalid_occurrencesoccurrences is not positive, or exceeds the cap for the frequency.
422invalid_end_dateend_date is not at least one minute after start_date.
429rate_limitedburst_limit_exceededPer-minute request limit exceeded.
429rate_limiteddaily_quota_exceededDaily request quota exceeded.
502upstream_unavailableThe upstream service is unavailable.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
int64
required
string
date-time
required

Start of the first break. Local time of the location written with Z (see Dates and times).

date-time
required

End of the first break. Local time of the location written with Z (see Dates and times).

string
enum
required
Allowed:
integer
required
≥ 1

Repeat every N days, weeks or months.

week_days
array of integers

Required for xweekly, not allowed otherwise. 1 = Monday … 7 = Sunday.

week_days
integer
≥ 1

Number of breaks (max 366, 53 or 12 by frequency). Send this or until.

date-time

Last day of the series (at most one year away). Send this or occurrences.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json