コンテンツにスキップ

ご案内ページの下書き・公開版・画像を読む

GET
/api/v1/guide-page
curl --request GET \
--url https://app.goyoka.com/api/v1/guide-page \
--header 'Authorization: Bearer <token>'

保存済みの下書きと公開版、検索設定、自店の画像を返します。欠落・型破損した欄だけ補い、旧リンク・色・7枚以上のギャラリー・未知の順序は正規化しません。data.draft⁠はそのまま下書きPUT⁠のdraft⁠へ戻せます。行が無い場合は既定の下書きを返し、searchable⁠はお店の公開範囲がMEMBERS_ONLY⁠ならfalse、それ以外はtrue⁠です。ページの作成・画像の掃除・メール文面の補充はしません。メールは送りません。

画像の追加は管理画面で行ってください。

必要な範囲: guide-page:read

ご案内ページの下書き・公開版・画像を読む

メディアタイプapplication/json
object
data
必須
object
draft
必須
object
hero_image_id
必須
string | null
headline
必須
string
intro
必須
string
about
必須
string
profile
必須
object
image_id
必須
string | null
name
必須
string
title
必須
string
bio
必須
string
links
必須
Array<object>
50件以下
object
id
必須
string
label
必須
string
url
必須
string
visible
必須
boolean
gallery_image_ids
必須
Array<string>
colors
必須
object
source

shop: 設定 › お店のデザインのアクセント色から作る(既定)。own: ご案内ページだけ primary・secondary・accent の3色にする。省略すると、3色が既定の配色のままなら shop、変えていれば own。

string
取りうる値: shop own
preset_id
必須
string | null
32文字以下
primary
必須
string
32文字以下
secondary
必須
string
32文字以下
accent
必須
string
32文字以下
sections
必須
object
about
必須
boolean
profile
必須
boolean
links
必須
boolean
gallery
必須
boolean
testimonials
必須
boolean
menu
必須
boolean
events
必須
boolean
news
必須
boolean
access
必須
boolean
contact
必須
boolean
section_order
必須
Array<string>
seo
必須
object
title
必須
string | null
description
必須
string | null
published
必須
object
hero_image_id
必須
string | null
headline
必須
string
intro
必須
string
about
必須
string
profile
必須
object
image_id
必須
string | null
name
必須
string
title
必須
string
bio
必須
string
links
必須
Array<object>
50件以下
object
id
必須
string
label
必須
string
url
必須
string
visible
必須
boolean
gallery_image_ids
必須
Array<string>
colors
必須
object
source

shop: 設定 › お店のデザインのアクセント色から作る(既定)。own: ご案内ページだけ primary・secondary・accent の3色にする。省略すると、3色が既定の配色のままなら shop、変えていれば own。

string
取りうる値: shop own
preset_id
必須
string | null
32文字以下
primary
必須
string
32文字以下
secondary
必須
string
32文字以下
accent
必須
string
32文字以下
sections
必須
object
about
必須
boolean
profile
必須
boolean
links
必須
boolean
gallery
必須
boolean
testimonials
必須
boolean
menu
必須
boolean
events
必須
boolean
news
必須
boolean
access
必須
boolean
contact
必須
boolean
section_order
必須
Array<string>
seo
必須
object
title
必須
string | null
description
必須
string | null
published_at
必須
string | null 形式: date-time
searchable
必須
boolean
images
必須
Array<object>
object
id
必須
string 形式: uuid
slot
必須
string
url
必須
string
例
{
"data": {
"draft": {
"colors": {
"source": "shop"
}
},
"published": {
"colors": {
"source": "shop"
}
}
}
}

利用できないヘッダ

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