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