application/jsonis_active=true) / unpublish a library item by slug. Send only what changes. Admin role required. Unpublishing drops the item from every user's favourites; edits refresh the content-types cache.title, content, meaning, explanation, real_world_example, content_type, source_name, is_premium, is_active200 - updated401 - invalid/expired token | 403 - not an admin | 404 - not found | 422 - nothing to updateAuthorization: Bearer ********************{
"content": "<p>Updated content...</p>",
"content_type": "puranic_story",
"explanation": "Updated explanation...",
"is_active": true,
"is_premium": false,
"meaning": "Updated meaning...",
"real_world_example": "Updated example...",
"source_name": "Vishnu Purana",
"title": "Samudra Manthan: The Churning of the Cosmic Ocean"
}curl --location --request PATCH 'https://uat-api.hastaai.in/api/v1/library/panel/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"content": "<p>Updated content...</p>",
"content_type": "puranic_story",
"explanation": "Updated explanation...",
"is_active": true,
"is_premium": false,
"meaning": "Updated meaning...",
"real_world_example": "Updated example...",
"source_name": "Vishnu Purana",
"title": "Samudra Manthan: The Churning of the Cosmic Ocean"
}'{
"success": true,
"message": "Library item updated successfully"
}