Create an upload entry

POST {{baseUrl}}/.api2/api/v1/communities/:communityKey/attachments

This will create an upload entry in your digital workspace, to which content can be uploaded with the following PATCH call.

The response returns a location value in the headers, which contains the Attachment Key under the Value section (located at the end of the endpoint). The attachment key is a 10 character code which will be used to refer to the entry in subsequent calls.

Request Body

[{"name"=>"ContentLength", "value"=>"{{$randomInt}}{{$randomInt}}", "datatype"=>"string"}, {"name"=>"ContentType", "value"=>"image/{type}", "datatype"=>"string"}, {"name"=>"Name", "value"=>"{{$randomCompanyName}}", "datatype"=>"string"}]

HEADERS

| Key | Datatype | Required | Description | | Accept | string | | The type of response data to request. This endpoint will respond with JSON.

The only option is:

  • application/json |

RESPONSES

status: Created