初期設定の選択を変える
PATCH
/api/v1/onboarding/selections
const url = 'https://app.goyoka.com/api/v1/onboarding/selections';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"booking_kinds":"PERSONAL","meeting_place":"IN_PERSON","website":"HAS_SITE","location_disclosure":"PUBLIC_PAGE","calendar_choice":"GOOGLE"}'};
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/onboarding/selections \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "booking_kinds": "PERSONAL", "meeting_place": "IN_PERSON", "website": "HAS_SITE", "location_disclosure": "PUBLIC_PAGE", "calendar_choice": "GOOGLE" }'お店の
必要なonboarding:write
必要な認証
「必要なパラメータ
「 パラメータ 」のヘッダーのパラメータ
「ヘッダーのIdempotency-Key
string
同じ
リクエスト本文必須
「リクエスト本文必須」のメディアタイプapplication/json
object
booking_kinds
string
meeting_place
string
website
string
location_disclosure
string
calendar_choice
string
レスポンス
「 レスポンス 」の200
「200」の初期設定の
メディアタイプapplication/json
object
setup_mode
必須
string | null
selections
必須
object
booking_kinds
必須
string | null
meeting_place
必須
string | null
website
必須
string | null
location_disclosure
必須
string | null
calendar_choice
必須
string | null
steps
必須
Array<object>
object
key
必須
string
group
必須
string
title
必須
string
applicable
必須
boolean
completed
必須
boolean
manual
必須
boolean
later
必須
Array<object>
object
key
必須
string
title
必須
string
url
必須
string
completed
必須
boolean
published_at
必須
string | null 形式: date-time
public_url
必須
string 形式: uri
next_step
必須
object
key
必須
string
title
必須
string
ask
必須
Array<string>
tools
必須
Array<string>
done_when
必須
string
note
必須
string | null
can_publish
必須
boolean
cannot_publish_reason
必須
string | null
human_tasks
必須
Array<object>
object
key
必須
string
label
必須
string
url
必須
string
例
{ "setup_mode": "SELF", "selections": { "booking_kinds": "PERSONAL", "meeting_place": "IN_PERSON", "website": "HAS_SITE", "location_disclosure": "PUBLIC_PAGE", "calendar_choice": "GOOGLE" }, "steps": [ { "key": "SALON_PROFILE", "group": "A" } ], "later": [ { "key": "calendar" } ], "next_step": { "key": "SHAPE" }}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" }}