コンテンツにスキップ

確認した個人情報の取扱いの本文を公開する

PUT
/api/v1/settings/legal/privacy
curl --request PUT \
--url https://app.goyoka.com/api/v1/settings/legal/privacy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "body": "example" }'

確認済みの本文をbody⁠に渡すと公開版と保存本文・更新日時を一つの取引で更新します。機微scope⁠のlegal:publish単独で呼べます。salon-settings:read/write⁠を暗黙に含まず、GET⁠で本文を読むにはsalon-settings:read⁠が要ります。鍵やトークンの持ち主が現在のお店のメンバーであることを確認します。

予約確認メールの版固定URL⁠は変えません。409 SETTINGS_OPERATION_BLOCKED⁠のdetails.blocks⁠はcode⁠とmessage⁠の1要素配列です。保存本文との完全一致は、null・古い上限超過値・空白を含む値も検査前にchanged:false/published:false⁠で返し、初版作成や公開版との不整合の修復はしません。実変更はtrim後1〜20000字で、null⁠への消去は422⁠です。正規化後の同値も保存しません。公開版と同じ本文で旧列だけ違う場合はchanged:true/published:false⁠で旧列を更新します。管理画面は同値でも旧列を二重書きしますが、このAPI⁠の完全一致では日時も再描画も変えません。任意の冪等キーを使えます。保存競合は409 SETTINGS_OPERATION_BLOCKED⁠で、details.blocks[].code⁠はCONCURRENT_UPDATE⁠です。GET⁠で読み直してから同じ要求をやり直してかまいません。公開直後の次の描画で公開本文と管理画面の状態を読み直します。開いた画面の自動更新はありません。この操作のメール0通、再同意の依頼も送りません。過去の予約・同意記録と過去版は残ります。実更新でprivacyPolicyUpdatedAt⁠が変わると、新しい通常予約・イベント予約・待機・問い合わせの同意版文字列consentVersion⁠も変わります。過去の同意版文字列は変えません。公開済み文書の取り下げはできません。

必要な範囲: legal:publish

ヘッダーのパラメータ

「ヘッダーのパラメータ」の節へ
Idempotency-Key
string

同じ内容の再送に同じ値を使います。異なる内容との再利用や処理中の再送は409 IDEMPOTENCY_KEY_REUSED⁠です。

メディアタイプapplication/json
object
body
必須
string | null
例自動生成
{
"body": "example"
}

確認した個人情報の取扱いの本文を公開する

メディアタイプapplication/json
object
data
必須
object
kind
必須
string
取りうる値: SALON_PRIVACY BOOKING_TERMS TOKUSHO
changed
必須
boolean
published
必須
boolean
revision_id
必須
string | null 形式: uuid
published_version
必須
integer | null
> 0
published_at
必須
string | null 形式: date-time
例
{
"data": {
"kind": "SALON_PRIVACY"
}
}

利用できないヘッダ

メディアタイプ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"
}
}

鍵が無い・無効

メディアタイプ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"
}
}

範囲不足

メディアタイプ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"
}
}

見つからない

メディアタイプ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"
}
}

予約・冪等キーの競合

メディアタイプ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"
}
}

本文が1 MiB⁠を超えている

メディアタイプ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"
}
}

入力の検証失敗

メディアタイプ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"
}
}

回数の上限

メディアタイプ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
>= 1

固定窓内の回数上限

RateLimit-Remaining
integer

固定窓内の残り回数

RateLimit-Reset
integer

窓終了までの秒数

Retry-After
integer
>= 1

再試行までの待機秒数

内部エラー

メディアタイプ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"
}
}