조직 토큰 수정 요청

조직 토큰 수정 요청 (updateOrgAccessTokenRequest)

Docker Hub 조직 액세스 토큰을 수정할 때 보내는 요청 스키마예요. 토큰의 라벨·설명·활성 여부와 접근 리소스를 갱신할 수 있어요.

출처: 문서

본문

요청 본문 필드는 다음과 같아요.

  • description: 토큰 설명
  • is_active: 토큰 활성 여부
  • label: 토큰 라벨
  • resources: 토큰이 접근할 리소스 목록 (orgAccessTokenResource 배열)
{
  "examples": [
    {
      "description": "Token for CI/CD pipeline",
      "is_active": true,
      "label": "My organization token",
      "resources": [
        {
          "path": "myorg/myrepo",
          "scopes": [
            "scope-image-pull"
          ],
          "type": "TYPE_REPO"
        }
      ]
    }
  ],
  "properties": {
    "description": {
      "description": "Description of the access token",
      "example": "Token for CI/CD pipeline",
      "type": "string"
    },
    "is_active": {
      "description": "Whether the token is active",
      "example": true,
      "type": "boolean"
    },
    "label": {
      "description": "Label for the access token",
      "example": "My organization token",
      "type": "string"
    },
    "resources": {
      "description": "Resources this token has access to",
      "items": {
        "$ref": "#/components/schemas/orgAccessTokenResource"
      },
      "type": "array"
    }
  },
  "type": "object"
}

더 알아보기