This request is used to upload a picture of the credited person. Supported formats are PNG and JPG.
The upload must be performed as a multipart/form-data post request.
| URL | https://api.telecomx.dk/iptv/epg/credit/NAME | |
|---|---|---|
| Method | POST | |
| Access level | ADMIN. | |
| Params | NAME | Name of person |
| Body | file | Binary image data |
| url | URL to download image from - instead of uploading a binary | |
https://api.telecomx.dk/iptv/epg/credit/Sean%20Connery
| Json object | ||
|---|---|---|
| success | Boolean | True on success. |
{ "success": true, "image": "123456789012345678901234" }
| Error code | Message | Description |
|---|---|---|
| 404 | file | The file was missing or invalid |
| 422 | file | Filetype must be PNG or JPG |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | Failed to scale/crop image |
| 500 | internal_error | <unspecified> |