application/jsontitle). Set is_active=true to publish immediately, or keep it a draft. Admin role required. Publishing notifies opted-in users and refreshes the content-types cache.title, content_type (required); source_name, content, meaning, explanation, real_world_example, is_premium, is_active (optional)200 - created401 - invalid/expired token | 403 - not an admin | 409 - title already exists | 422 - invalid bodyAuthorization: Bearer ********************{
"content": "<p>King Rantideva was renowned for...</p>",
"content_type": "puranic_story",
"explanation": "The story teaches selfless giving...",
"is_active": false,
"is_premium": false,
"meaning": "True charity expects nothing in return...",
"real_world_example": "Like a volunteer who...",
"source_name": "Bhagavata Purana",
"title": "The Story of King Rantideva"
}curl --location 'https://uat-api.hastaai.in/api/v1/library/panel' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"content": "<p>King Rantideva was renowned for...</p>",
"content_type": "puranic_story",
"explanation": "The story teaches selfless giving...",
"is_active": false,
"is_premium": false,
"meaning": "True charity expects nothing in return...",
"real_world_example": "Like a volunteer who...",
"source_name": "Bhagavata Purana",
"title": "The Story of King Rantideva"
}'{
"success": true,
"message": "Library item created successfully"
}