POST api/surveys/{survey}/image
Adds an image to a given survey
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| survey |
Survey ID |
integer |
Required |
Body Parameters
New survey image data
SurveyImageDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Survey |
ID of parent Survey |
integer |
Required |
| MIME |
Survey Image MIME-type |
string |
Required String length: inclusive between 0 and 50 |
| Data |
Survey Image data |
Collection of byte |
Required |
Request Formats
application/json, text/json
Sample:
{
"Survey": 1,
"MIME": "sample string 2",
"Data": "QEA="
}
Response Information
Resource Description
Survey image data
SurveyImageDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Survey |
ID of parent Survey |
integer |
Required |
| MIME |
Survey Image MIME-type |
string |
Required String length: inclusive between 0 and 50 |
| Data |
Survey Image data |
Collection of byte |
Required |
Response Formats
application/json, text/json
Sample:
{
"Survey": 1,
"MIME": "sample string 2",
"Data": "QEA="
}