イベントの参加者を追加する
const url = 'https://app.goyoka.com/api/v1/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/occurrences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/participants';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"occurrence_menu_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"name":"example","email":"example","phone":"example","customer_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","provider_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","starts_at":"2026-04-15T12:00:00Z","starts_at_by_menu":{"additionalProperty":"2026-04-15T12:00:00Z"},"notify":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.goyoka.com/api/v1/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/occurrences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/participants \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "occurrence_menu_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "name": "example", "email": "example", "phone": "example", "customer_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "provider_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "starts_at": "2026-04-15T12:00:00Z", "starts_at_by_menu": { "additionalProperty": "2026-04-15T12:00:00Z" }, "notify": true }'公開済みの
customerは
アーカイブ済み・他店・
個別コードの
受付停止は
必要なevents:write
customers:contact が
必要な認証
「必要なパラメータ
「 パラメータ 」のパスのパラメータ
「パスのヘッダーのパラメータ
「ヘッダーの同じ
リクエスト本文必須
「リクエスト本文必須」のobject
object
例自動生成
{ "occurrence_menu_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "name": "example", "email": "example", "phone": "example", "customer_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "provider_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "starts_at": "2026-04-15T12:00:00Z", "starts_at_by_menu": { "additionalProperty": "2026-04-15T12:00:00Z" }, "notify": true}レスポンス
「 レスポンス 」の201
「201」のイベントの
object
object
object
object
object
object
生きた
例
{ "data": { "status": "PENDING", "attendance": "UNSET", "items": [ { "status": "HELD" } ] }}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" }}