BizKitHub
DocsAPI ReferencePost/bff/post/post-image-active-toggle
getPostAdmin BFF

/bff/post/post-image-active-toggle

Toggles the active/inactive status of a gallery image. Inactive images are hidden on the public site but remain in the gallery for re-activation. If the main image is deactivated, the first remaining active image becomes the new main.

PostgetBffPostPost-image-active-toggle

Parameters

2 query

Query parameters

· 2
idstringRequired

Post external ID.

Examplea1b2c3d4-e5f6-7890
imageIdstringRequired

Blob token of the image to toggle.

Exampleabc123def456

Response schema

1 status code documented

200Success
successbooleanRequired

Whether the toggle was successful.

Response example

application/json
{
  "success": false
}

Request example

GET /bff/post/post-image-active-toggle

get
curl -X GET "https://api.bizkithub.com/bff/post/post-image-active-toggle?id=a1b2c3d4-e5f6-7890&imageId=abc123def456" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key