イベントの予約フォーム設定を置き換える
const url = 'https://app.goyoka.com/api/v1/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/booking-form-settings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"time_selectable":true,"provider_selectable":true,"allow_auto_assign":true,"reveal_auto_assigned_provider":true,"notice":"example","waitlist_mode":"SEQUENTIAL","waitlist_offer_hours":1}'};
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/booking-form-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "time_selectable": true, "provider_selectable": true, "allow_auto_assign": true, "reveal_auto_assigned_provider": true, "notice": "example", "waitlist_mode": "SEQUENTIAL", "waitlist_offer_hours": 1 }'予約フォームで
falseは
noticeの
必要なevents:write
必要な認証
「必要なパラメータ
「 パラメータ 」のパスのパラメータ
「パスのヘッダーのパラメータ
「ヘッダーの同じ
リクエスト本文必須
「リクエスト本文必須」のobject
nullは
nullは
nullは
nullは
nullは
省略時は
省略時は
レスポンス
「 レスポンス 」の200
「200」のイベントの
object
object
object
object
例
{ "data": { "override": { "waitlist_mode": "SEQUENTIAL" }, "effective": { "waitlist_mode": "SEQUENTIAL" } }}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" }}