お店の基本情報を変更する
const url = 'https://app.goyoka.com/api/v1/settings/salon';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"public_theme":"example","accent_color":"example","design":{"background":"example","surface":"example","text":"example","muted_text":"example","border":"example","radius":"none","button_shape":"square","font":"same_as_heading","heading_font":"gothic","shop_name_font":"gothic","spacing":"normal","menu_style":"panel","logo_shape":"circle","shop_name_display":"show","goyoka_credit":"show"},"dark_accent_color":"example","dark_colors":{"background":"example","surface":"example","text":"example","muted_text":"example","border":"example"},"name":"example","tagline":"example","base_location_name":"example","base_location_address":"example","online_meeting_url":"example","payment_note_in_person":"example","payment_note_online":"example","payment_note_remote":"example"}'};
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/settings/salon \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "public_theme": "example", "accent_color": "example", "design": { "background": "example", "surface": "example", "text": "example", "muted_text": "example", "border": "example", "radius": "none", "button_shape": "square", "font": "same_as_heading", "heading_font": "gothic", "shop_name_font": "gothic", "spacing": "normal", "menu_style": "panel", "logo_shape": "circle", "shop_name_display": "show", "goyoka_credit": "show" }, "dark_accent_color": "example", "dark_colors": { "background": "example", "surface": "example", "text": "example", "muted_text": "example", "border": "example" }, "name": "example", "tagline": "example", "base_location_name": "example", "base_location_address": "example", "online_meeting_url": "example", "payment_note_in_person": "example", "payment_note_online": "example", "payment_note_remote": "example" }'省略した欄は
409 SETTINGS_OPERATION_BLOCKEDの
ロゴの
必要なsalon-settings:write
必要な認証
「必要なパラメータ
「 パラメータ 」のヘッダーのパラメータ
「ヘッダーの同じ
リクエスト本文必須
「リクエスト本文必須」のobject
お店の
お店の
object
transparent
お店の
お店の
object
transparent
レスポンス
「 レスポンス 」の200
「200」のお店の
object
object
お店の
お店の
object
フォームの
カード・
本文の
説明・注記の
カードの
角の
ボタンの
本文の
見出しの
お店の
余白。
予約・イベントの
お店の
お店の
お客様の
お店の
お店の
object
フォームの
カード・
本文の
説明・注記の
カードの
例
{ "data": { "design": { "radius": "none", "button_shape": "square", "font": "same_as_heading", "heading_font": "gothic", "shop_name_font": "gothic", "spacing": "normal", "menu_style": "panel", "logo_shape": "circle", "shop_name_display": "show", "goyoka_credit": "show" } }}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" }}