| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TenantsId | query | long | No | |
| Entity | query | string | No | |
| EntityId | query | long | No | |
| MediaType | query | string | No | |
| MediaPath | query | string | No | |
| QuestionnairsId | query | long? | No | |
| Name | query | string | No | |
| Free | query | bool | No | |
| ResponseStatus | query | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | Yes | |
| TenantsId | form | long | Yes | |
| Entity | form | string | Yes | |
| EntityId | form | long | Yes | |
| MediaType | form | string | Yes | |
| MediaPath | form | string | No | |
| QuestionnairsId | form | long? | No | |
| Name | form | string | No | |
| Free | form | bool | No | |
| PublicAccessGuid | form | Guid | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/MediaAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"tenantsId":0,"entity":"String","entityId":0,"mediaType":"String","mediaPath":"String","questionnairsId":0,"name":"String","free":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"id":0,"tenantsId":0,"entity":"String","entityId":0,"mediaType":"String","mediaPath":"String","questionnairsId":0,"name":"String","free":false,"publicAccessGuid":"00000000000000000000000000000000"}