Skip to main content
DELETE
/
v1
/
posts
/
{id}
/
carousel
Delete carousel from a post
curl --request DELETE \
  --url https://api.yalg.ai/v1/posts/{id}/carousel \
  --header 'x-api-key: <api-key>'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "content": "Post content...",
  "imageUrl": "/uploads/images/1640123456789-example.jpg",
  "videoUrl": null,
  "carouselUrl": null,
  "carouselTitle": null,
  "authorId": "987fcdeb-51a2-43d7-8f9e-123456789abc",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:35:00Z"
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Path Parameters

id
string
required

UUID of the post

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Carousel deleted successfully