Upload media
POST
/uploadmediaUpload media
Request
Header Params
x-api-key
string
required
required parameter to identify the api Getway
Default:
yFxaTyRTiH7YBUYeYiEeCYBMRGZA8wk5fsCJxVy1
Body Params application/json
mediaType
enum<string>
required
It will be type of media and it should be one from the below mentioned media type.
Allowed values:
IMAGEVIDEOGIF
media
string
required
It will be mediaURL
Example
{
"mediaType": "IMAGE",
"media": [
{
"url": "https://awsstage-test.s3.amazonaws.com/100138/a6291714-ad55-4575-8862-ef2110a758ab.jpeg"
}
]
}
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
Returned media ids successfully
Data Schema
message
string
optional
response
object
optional
mediaIds
array[string]
optional
Example
{
"message": "Returned media ids successfully",
"response": {
"mediaIds": [
{
"media": "https://awsstage-test.s3.amazonaws.com/100138/a6291714-ad55-4575-8862-ef2110a758ab.jpeg",
"mediaId": "3a735b35-2ca2-4d2f-9b8d-e79cf8abb34f"
}
]
}
}
Last modified: 18 days ago