開催回を丸ごと置き換え(送らなかった行は削除)
const url = 'https://app.goyoka.com/api/v1/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/occurrences';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"occurrences":[{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","starts_at":"2026-04-15T12:00:00Z","ends_at":"2026-04-15T12:00:00Z","capacity":1,"opens_at":"2026-04-15T12:00:00Z","closes_at":"2026-04-15T12:00:00Z","cancel_deadline_at":"2026-04-15T12:00:00Z","reception_overridden":true,"facility_unit_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"effective_opens_at":"2026-04-15T12:00:00Z","effective_closes_at":"2026-04-15T12:00:00Z"}],"dry_run":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://app.goyoka.com/api/v1/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/occurrences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "occurrences": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "starts_at": "2026-04-15T12:00:00Z", "ends_at": "2026-04-15T12:00:00Z", "capacity": 1, "opens_at": "2026-04-15T12:00:00Z", "closes_at": "2026-04-15T12:00:00Z", "cancel_deadline_at": "2026-04-15T12:00:00Z", "reception_overridden": true, "facility_unit_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "effective_opens_at": "2026-04-15T12:00:00Z", "effective_closes_at": "2026-04-15T12:00:00Z" } ], "dry_run": true }'開催回を
保存状態で
アーカイブ済みイベントは
BOOKING_INPUT_INVALIDは、
ハンドラ内で
先に
重なりの
成功時と
必要なevents:write
必要な認証
「必要なパラメータ
「 パラメータ 」のパスのパラメータ
「パスのヘッダーのパラメータ
「ヘッダーの同じ
リクエスト本文必須
「リクエスト本文必須」のobject
object
trueで
読み取りの
読み取りの
読み取りの
trueで
例自動生成
{ "occurrences": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "starts_at": "2026-04-15T12:00:00Z", "ends_at": "2026-04-15T12:00:00Z", "capacity": 1, "opens_at": "2026-04-15T12:00:00Z", "closes_at": "2026-04-15T12:00:00Z", "cancel_deadline_at": "2026-04-15T12:00:00Z", "reception_overridden": true, "facility_unit_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "effective_opens_at": "2026-04-15T12:00:00Z", "effective_closes_at": "2026-04-15T12:00:00Z" } ], "dry_run": true}レスポンス
「 レスポンス 」の200
「200」の開催回を
object
object
object
鍵やトークンに
この
互換の
dry_run:true の
object
object
object
object
例
{ "data": { "occurrences": [ { "status": "SCHEDULED" } ] }, "preview": { "saved": false }}400
「400」の利用できない
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}401
「401」の鍵が
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}403
「403」の範囲不足
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}404
「404」の見つからない
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}409
「409」の予約・冪等キーの
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}413
「413」の本文が
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}422
「422」の入力の
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}429
「429」の回数の
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}ヘッダー
「ヘッダー」の固定窓内の
固定窓内の
窓終了までの
再試行までの
500
「500」の内部エラー
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}