Download survey question attachment (draft or submitted)
GET /task/v1/feeds/{feed_key}/survey/attachment
Operation id: getFeedSurveyAttachment
Description
Streams binary content for a survey question attachment. Storage keys are resolved server-side from feed + survey_type + question_id + stage. Auth via X-reflexis-csrf-token-X only (no token in URL).
Tags: MyWorkFeeds
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
feed_key | integer | Yes | Unique numeric feed identifier |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
cluster_child_id | string | No | |
cluster_id | string | No | |
question_id | string | Yes | Survey question id (fld_id / qId) |
requested_unit_id | string | No | |
stage | string | Yes | |
survey_type | string | No |
Security
- AuthTokenHeader (apiKey)
- Session authentication token validated server-side against the user session store.
Responses
200 — Binary attachment stream
Content type: application/octet-stream
400 — Missing/invalid question_id or stage (E113 / E341)
401 — Invalid or expired X-reflexis-csrf-token-X token (HTTP 401)
Content type: application/json
404 — Attachment not found (E404)
500 — Unexpected server-side error
Content type: application/json
Response models
200 — Binary attachment stream
Content type: application/octet-stream
Schema
{
"type": "string",
"format": "binary"
}
401 — Invalid or expired X-reflexis-csrf-token-X token (HTTP 401)
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Always "ER" for error responses |
errorCode | string | Yes | Application-level error code (e.g. E204, E112, E302) |
response | string | Yes | Human-readable error message |
{
"type": "object",
"example": {
"status": "ER",
"errorCode": "E204",
"response": "Invalid or expired token"
},
"required": [
"status",
"errorCode",
"response"
],
"properties": {
"status": {
"type": "string",
"description": "Always \"ER\" for error responses",
"enum": [
"ER"
]
},
"errorCode": {
"type": "string",
"description": "Application-level error code (e.g. E204, E112, E302)"
},
"response": {
"type": "string",
"description": "Human-readable error message"
}
}
}
Example:
{
"status": "ER",
"errorCode": "E204",
"response": "Invalid or expired token"
}
500 — Unexpected server-side error
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Always "ER" for error responses |
errorCode | string | Yes | Application-level error code (e.g. E204, E112, E302) |
response | string | Yes | Human-readable error message |
{
"type": "object",
"example": {
"status": "ER",
"errorCode": "E204",
"response": "Invalid or expired token"
},
"required": [
"status",
"errorCode",
"response"
],
"properties": {
"status": {
"type": "string",
"description": "Always \"ER\" for error responses",
"enum": [
"ER"
]
},
"errorCode": {
"type": "string",
"description": "Application-level error code (e.g. E204, E112, E302)"
},
"response": {
"type": "string",
"description": "Human-readable error message"
}
}
}
Example:
{
"status": "ER",
"errorCode": "E302",
"response": "Internal server error"
}