v1

latestOpenAPI 3.0.12026-07-13130168404.3 KB
Content - attachments

Update attachment properties

Updates the attachment properties, i.e. the non-binary data of an attachment like the filename, media-type, comment, and parent container.

Permissions required: Permission to update the content.

put/wiki/rest/api/content/{id}/child/attachment/{attachmentId}

Path parameters

idstring required

The ID of the content that the attachment is attached to.

attachmentIdstring required

The ID of the attachment to update.

Request body

idstring required
typestring required

Set this to "attachment"

statusstring
titlestring
containerContainer nullable

Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment)

extensionsobject

Response

Returned if the attachment is updated.

idstring
typestring required

Can be "page", "blogpost", "attachment" or "content"

statusstring required
titlestring
containerContainer nullable

Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment)

macroRenderedOutputobject
extensionsobject
_linksGenericLinks