스토어프론트 호스팅
배포 뒤 바로 게시
CLI `sayren deploy`·Git 운영 브랜치 push가 만든 버전을 곧바로 게시할지 정한다. null이면 소스의 `sayren.json` `deploy.production`, 그것도 없으면 저장만이다(CLI `--production`은 늘 게시). 상점 플랫폼에서 로그인한 OWNER·ADMIN만 바꾼다
PUT
CLI sayren deploy·Git 운영 브랜치 push가 만든 버전을 곧바로 게시할지 정한다. null이면 소스의 sayren.json deploy.production, 그것도 없으면 저장만이다(CLI --production은 늘 게시). 상점 플랫폼에서 로그인한 OWNER·ADMIN만 바꾼다
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
X-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
application/json- body
autoPublish*boolean|null성공
application/json- response
meta*data*error*|nullcurl -X PUT 'https://api.sayren.io/v1/storefront/site/auto-publish' \
-H 'X-Store-Id: string' \
-H 'Content-Type: application/json' \
-d '{
"autoPublish": true
}'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"siteId": "string",
"versionHistory": true,
"autoPublish": true,
"deployWithoutApproval": true,
"slug": "string",
"hostname": "string",
"url": "string",
"domains": [
{
"hostname": "string",
"kind": "PLATFORM",
"status": "ACTIVE",
"isPrimary": true,
"holdUntil": "string"
}
],
"status": "ACTIVE",
"visibility": "COMING_SOON",
"publishedVersion": {
"versionId": "string",
"number": 1,
"status": "BUILDING",
"published": true,
"publishedAt": "string",
"message": "string",
"source": "TEMPLATE",
"buildId": "string",
"createdByType": "string",
"createdVia": "string",
"gitRef": "string",
"commitSha": "string",
"excludedPaths": [
"string"
],
"mainChanged": true,
"buildCanceled": true,
"createdAt": "string",
"previewable": true
},
"provisioning": {
"status": "SYNCED",
"lastErrorCode": "string",
"syncedAt": "string"
},
"editPreview": {
"hostname": "string"
},
"slugChangesRemaining": 0,
"suspension": {
"reason": "string",
"suspendedAt": "string"
},
"snapshot": {
"url": "string",
"versionId": "string",
"capturedAt": "string"
},
"createdAt": "string",
"updatedAt": "string"
},
"error": null
}