Assets

Attach an image asset to a post

post

Attaches an image asset to a post. The service determines under the hood whether the asset is attached to a public or private post based on the post type.

Body
postIdstring · uuidOptionalExample: 550e8400-e29b-41d4-a716-446655440000
imageFilestring · binaryOptional

The image file to attach

Responses
200

Image asset successfully attached

application/json
post
/assets/attach-image

Attach a video asset to a post

post

Attaches a video asset to a post. The service determines under the hood whether the asset is attached to a public or private post based on the post type.

Body
postIdstring · uuidOptionalExample: 550e8400-e29b-41d4-a716-446655440000
videoFilestring · binaryOptional

The video file to attach

Responses
200

Video asset successfully attached

application/json
post
/assets/attach-video

Rearrange the order of assets

post

Rearranges the order of assets attached to a post by taking an ordered array of asset IDs and updating the orderIndex property of each asset accordingly.

Body
assetOrderstring · uuid[]Optional

An ordered array of asset IDs

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
200

Assets successfully rearranged

No content

post
/assets/rearrange

No content

Delete an asset by ID

delete

Deletes an asset associated with a post. The service handles the underlying logic to ensure proper deletion based on whether the asset belongs to a public or private post.

Path parameters
assetIdstring · uuidRequiredExample: 550e8400-e29b-41d4-a716-446655440000
Responses
delete
/assets/{assetId}

No content

Last updated