Assets

Insert new assets in a space

The example below only shows a query on the primary revision of a space, but the same route can be applied on a specific revision or draft. Please check this section for more information

put
Insert Asset

https://$HOSTNAME/v1/spaces/:spaceID/content/assets
Request
Response
Request
Path Parameters
spaceID
required
string
ID of a space
Body Parameters
name
required
string
Name of the asset (ex: image.png")
content
required
string
The encoded file content
encoding
required
string
The encoding type (utf8 or base64)
Response
200: OK
Returns the ID of the updated revision.
{
"revision": "-M-JqqF_QtTUPZA8uhKK"
}