-
Notifications
You must be signed in to change notification settings - Fork 0
[PUT] 버킷 상태 변경
Gyunny edited this page Jun 7, 2021
·
1 revision
메소드 | 경로 | 설명 |
---|---|---|
PUT | /api/v2/buckets/{bucketId}/state/{bucketStateId} | 버킷 상태 변경 |
- bucketStateId: 2(예정), 3(진행 중), 4(완료), 5(실패)
{
"accessToken": "[토큰]"
}
{
"status": 200,
"message": "버킷 상태 변경 성공입니다",
"data": null
}
- 버킷 수정 권한 없는 경우
{
"message": "User is not Authentication",
"status": 401,
"errors": [],
"code": "M005"
}
- 버킷이 존재하지 않는 경우
{
"message": " Entity Not Found",
"status": 400,
"errors": [],
"code": "C003"
}
- state에 잘못된 value 입력한 경우
{
"message": " Invalid Type Value",
"status": 400,
"errors": [
{
"field": "state",
"value": "test",
"reason": "typeMismatch"
}
],
"code": "C005"
}
- 서버 에러
{
"message": "Server Error",
"status": 500,
"errors": [],
"code": "C004"
}