Retrieve one work item from a self-hosted Environment.
GET /api/v1/cloud/environments/{environment_id}/work/{work_id}
Retrieves a single work item scoped to a self_hosted Environment.
Path parameters
| Parameter | Type | Description |
|---|---|---|
environment_id | string | Environment ID with the env_ prefix |
work_id | string | Work item ID with the work_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_ACCESS_TOKEN |
Example request
Example response
HTTP 200 OK
Response fields
Returns a Work item object.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | The Environment is not self_hosted |
| 401 | authentication_error | PAT or SAT invalid or expired |
| 403 | permission_error | Not authorized for this operation |
| 404 | not_found_error | Environment or work item not found |