Image Hosting Service
You can upload images to external storage and evaluate the image's preview and thumbnail.
Request
Parameters | Name | Required | Details |
---|---|---|---|
Headers | Authorization |
Yes |
Information about authentication access token in format
|
Query | environmentId |
Yes | Environment identifier which builds in URL as https://{environmentId}.reltio.com. |
tenantId |
Yes | Tenant identifier. | |
Body | Content-type. Should be
“multipart/form-data” . |
||
file |
No | Image to upload. Type should be
“application/octet-stream” . |
|
sourceUrl |
No | URL of source image. | |
upload |
No | If true , the image should be uploaded to S3. This
parameter is taken into account only if sourceUrl is
specified. Default value is true . |
Examples
Example 1: Upload image file by specified URL
Example 2: Upload image file
Response
If the image is uploaded successfully, then the response contains JSON of image properties.
Example
Image Hosting Service Errors
Root Cause | Status Code | Error Code |
---|---|---|
Authorization token is not valid. | 401 | 42001 |
File format is not supported. | 415 | 42002 |
File size exceeds the configured maximum file size. | 400 | 42003 |
Illegal request parameters. | 400 | 42004 |
Internal service error. | 500 | 42005 |