티켓 담당자 상태 변경

처리 혹은 결재를 할당받은 티켓에 대해 현재 작업 상태를 변경합니다.

HTTP 요청

PUT /api/sonar/tickets/:guid/assignee-status
cURL 예시
curl -H "Authorization: Bearer <API_KEY>" \
     -d type=ASSIGNEE \
     -d status=IN_PROGRESS \
     -X PUT \
     https://HOSTNAME/api/sonar/tickets/6206eb0e-fb44-4f13-82ca-d92454cfd35e/assignee-status
요청 매개변수
필수타입설명비고
guidO문자열티켓 GUID36자
typeO문자열할당 유형ASSIGNEE, APPROVER 중 하나
statusO문자열작업 상태담당자는 ASSIGNED, IN_PROGRESS, CLOSED. 결재자는 APPROVED, REJECTED 중 하나.

정상 응답

{}

오류 응답

식별자가 GUID 형식이 아닌 경우

HTTP 상태 코드 400 응답

{
    "error_code": "invalid-param-type",
    "error_msg": "guid should be guid type."
}
유효하지 않은 담당자 상태의 경우

HTTP 상태 코드 400 응답

{
    "error_code": "invalid-argument",
    "error_msg": "assignee status should be one of ASSIGNED, IN_PROGRESS, CLOSED."
}
유효하지 않은 결재자 상태의 경우

HTTP 상태 코드 400 응답

{
    "error_code": "invalid-argument",
    "error_msg": "approver status should be one of APPROVED, REJECTED."
}
티켓이 존재하지 않는 경우

HTTP 상태 코드 500 응답

{
    "error_code": "illegal-state",
    "error_msg": "ticket not found: 201dc306-5ef7-4d4f-b872-1fa0f4d7dc57"
}
티켓을 할당받지 않은 경우
{
    "error_code": "illegal-state",
    "error_msg": "not assigned"
}
결재 요청되지 않은 티켓을 승인, 반려한 경우
{
    "error_code": "illegal-state",
    "error_msg": "cannot approve or reject unsubmitted ticket: 511ce7fe-36bd-45d8-a868-99a5349c3575"
}