Skip to Content
Sayren 유저가이드
스토어프론트 호스팅

셀러 GitHub 저장소 연결 해제

셀러 저장소 연결을 닫고 발행 소스를 sayren 작업 트리로 되돌린다. 운영 배포와 작업 트리는 그대로이고 셀러 저장소에만 있는 커밋은 가져오지 않는다. 연결돼 있지 않으면 409 `GIT_NOT_CONNECTED`

POST
/v1/storefront/site/git/disconnect

셀러 저장소 연결을 닫고 발행 소스를 sayren 작업 트리로 되돌린다. 운영 배포와 작업 트리는 그대로이고 셀러 저장소에만 있는 커밋은 가져오지 않는다. 연결돼 있지 않으면 409 GIT_NOT_CONNECTED

Authorization

accessToken
headerAuthorizationBearer <JWT>

Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)

Header Parameters

X-Store-Id*string

대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -X POST 'https://api.sayren.io/v1/storefront/site/git/disconnect' \
  -H 'X-Store-Id: string'
Example Response
{
  "meta": {
    "status": 200,
    "code": "OK",
    "message": "OK",
    "isSuccess": true
  },
  "data": {
    "provider": "GITHUB",
    "repository": "string",
    "productionBranch": "string",
    "rootDirectory": "string",
    "includePaths": [
      "string"
    ],
    "excludePaths": [
      "string"
    ],
    "connectedAt": "string",
    "headCommitSha": "string",
    "mainChanged": true,
    "autoPromotePaused": true,
    "publishPending": true,
    "publishErrorCode": "string",
    "archivedWorkRef": "string",
    "lastDisconnect": {
      "reason": "string",
      "repository": "string",
      "at": "string"
    }
  },
  "error": null
}