파일 및 배치
배치 취소
대기 중이거나 실행 중인 배치 작업을 취소합니다.
대기 중이거나 실행 중인 배치의 취소를 요청합니다. 응답은 현재 상태를 반환하며, 취소가 진행 중이거나 이미 완료되었을 수 있습니다. 이미 종료된 배치는 기존 최종 상태를 유지합니다. 반환된 상태가 최종 상태가 아니면 배치를 다시 조회하여 결과를 확인하세요.
요청
curl -X POST "https://api.tokenlab.sh/v1/batches/batch_abc123/cancel" \
-H "Authorization: Bearer sk-your-api-key"응답
{
"id": "batch_abc123",
"object": "batch",
"status": "cancelling",
"input_file_id": "file_abc123"
}idstring
후속 호출과 지원 조사에 사용하는 식별자입니다.
statusstring
배치의 현재 상태입니다. 취소 요청이 성공해도 항상
cancelling이 반환되는 것은 아닙니다.인증
BearerAuth AuthorizationBearer <token>
API 키 인증입니다. Dashboard > API > API Keys에서 API 키를 생성하거나 관리하십시오.
위치: header
경로 매개변수
batch_id*string
응답
application/json
application/json