curl
curl -sS -X POST "https://gateway.orbit/api/v1/task-questions/1/close" \
--cacert /path/to/orbit-root-ca.pem \
-H 'Accept: application/json' \
-H 'X-Orbit-Request-Id: 9d6b1e5c-4a3f-4a1b-9f0e-6d2c3f5a7b81' \
-H 'Content-Type: application/json' \
-d '{"status": "success", "reason": "example"}'{
"data": {
"id": 123,
"task_id": 123,
"subtask_id": 123,
"attempt": 123,
"asked_by": "implementer",
"question": "<string>",
"status": "open",
"answered_by": "implementer",
"answer": "<string>",
"cause": "brief_unclear",
"asked_at": "<string>",
"escalated_at": "<string>",
"answered_at": "<string>"
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Tasks
Close a task question
Closes an open or escalated question as answered or superseded, with the operator’s reason (1 to 2,000 characters) as its answer and answered_by operator. Orbit posts one question_closed comment on the subtask. Closing delivers no resolution, changes no assistance flag, and counts no consult. Repeating the same status and reason returns the question unchanged. Requires Gateway access. Returns extension.disabled while the extension is off, tasks.question_closed (409) when the question is already answered or superseded, and 422 for another status or an empty reason.
POST
/
api
/
v1
/
task-questions
/
{question}
/
close
curl
curl -sS -X POST "https://gateway.orbit/api/v1/task-questions/1/close" \
--cacert /path/to/orbit-root-ca.pem \
-H 'Accept: application/json' \
-H 'X-Orbit-Request-Id: 9d6b1e5c-4a3f-4a1b-9f0e-6d2c3f5a7b81' \
-H 'Content-Type: application/json' \
-d '{"status": "success", "reason": "example"}'{
"data": {
"id": 123,
"task_id": 123,
"subtask_id": 123,
"attempt": 123,
"asked_by": "implementer",
"question": "<string>",
"status": "open",
"answered_by": "implementer",
"answer": "<string>",
"cause": "brief_unclear",
"asked_at": "<string>",
"escalated_at": "<string>",
"answered_at": "<string>"
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Path Parameters
Numeric task question ID.
Required range:
x >= 1Body
application/json