Create Asset

Overview

Use this API to generate a signed URL for uploading an asset. Use contentUrl in response as it is used for uploading content. Make sure you upload files which have the same content type and size that was provided at the the time of signed url generation.

Scope

Client application must have 'app.conversation.conversationmgr.interaction.manage' assigned to call this API

SecurityoAuthClient
Request
Request Body schema: application/json
required
object
required
object

recipient client application type

name
required
string [ 1 .. 255 ] characters

Name of an asset with an extension.

size
required
integer [ 1 .. 10485760 ]
Responses
200

OK

400

Bad Request

401

Unauthorized

500

Internal server error

post/assets
Request samples
application/json
{
  • "channel": {
    },
  • "sender": {
    },
  • "name": "bird.jpg",
  • "size": 17245
}
Response samples
application/json
{}