開催回の会場と使う設備を更新する
PATCH
/api/v1/events/{id}/occurrences/{occId}
const url = 'https://app.goyoka.com/api/v1/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/occurrences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"location_name":"example","location_address":"example","online_url":"example","facility_unit_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.goyoka.com/api/v1/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/occurrences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "location_name": "example", "location_address": "example", "online_url": "example", "facility_unit_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'会場3欄と
必要なevents:write
必要な認証
「必要なパラメータ
「 パラメータ 」のパスのパラメータ
「パスのid
必須
string 形式: uuid
occId
必須
string 形式: uuid
ヘッダーのパラメータ
「ヘッダーのIdempotency-Key
string
同じ
リクエスト本文必須
「リクエスト本文必須」のメディアタイプapplication/json
object
location_name
string | null
location_address
string | null
online_url
string | null
facility_unit_ids
Array<string> | null
例自動生成
{ "location_name": "example", "location_address": "example", "online_url": "example", "facility_unit_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}レスポンス
「 レスポンス 」の200
「200」の開催回の
メディアタイプapplication/json
object
data
必須
object
id
必須
string 形式: uuid
event_id
必須
string 形式: uuid
status
必須
string
starts_at
必須
string 形式: date-time
ends_at
必須
string 形式: date-time
capacity
必須
integer | null
taken_count
必須
鍵やトークンに
integer | null
facility_unit_ids
必須
この
Array<string> | null
venue
必須
object
location_name
必須
string | null
location_address
必須
string | null
online_url
必須
string | null
providers
必須
Array<object>
object
id
必須
string 形式: uuid
name
必須
string
starts_at
必須
string 形式: date-time
ends_at
必須
string 形式: date-time
menus
必須
Array<object>
object
id
必須
string 形式: uuid
event_menu_id
必須
string 形式: uuid
name
必須
string
capacity
必須
integer | null
starts_at
必須
string | null 形式: date-time
ends_at
必須
string | null 形式: date-time
opens_at
必須
この
string | null 形式: date-time
closes_at
必須
この
string | null 形式: date-time
cancel_deadline_at
必須
string | null 形式: date-time
reception_overridden
必須
trueは
boolean
effective_opens_at
必須
実際に
string | null 形式: date-time
effective_closes_at
必須
実際に
string | null 形式: date-time
例
{ "data": { "status": "SCHEDULED" }}400
「400」の利用できない
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}401
「401」の鍵が
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}403
「403」の範囲不足
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}404
「404」の見つからない
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}409
「409」の予約・冪等キーの
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}413
「413」の本文が
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}422
「422」の入力の
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}429
「429」の回数の
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}ヘッダー
「ヘッダー」のRateLimit-Limit
integer
固定窓内の
RateLimit-Remaining
integer
固定窓内の
RateLimit-Reset
integer
窓終了までの
Retry-After
integer
再試行までの
500
「500」の内部エラー
メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}