조직 토큰 수정 요청
조직 토큰 수정 요청 (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"
}
더 알아보기
- 조직 토큰 수정 응답 (updateOrgAccessTokenResponse): 수정 결과 응답 구조를 확인해요.
- 조직 액세스 토큰 수정 작업: 이 요청을 보내는 API를 살펴봐요.