Namespaces
Content
ovok.content manages the project's CMS content entries. Each entry is addressed by its content
- Stable unknown
- Release candidate since 0.1.0-rc.3
- Development since 0.1.0-dev.21+c43ebba
ovok.content manages the project's CMS content entries. Each entry is addressed by its content
type, language and key. Use it from admin tools; apps that only read published content use
ovok.cms.
Read entries
from ovok_sdk import Ovok
ovok = Ovok("https://api.sandbox.ovok.com", "your-tenant")
results = ovok.content.search("faq", "en", {"search": "billing"})
entry = ovok.content.retrieve("faq", "en", "billing-cycle")
by_key = ovok.content.map("faq", "en")Create, update and delete entries
ovok.content.create("faq", "en", {"key": "refunds", "title": "Refunds"})
ovok.content.update("faq", "en", "refunds", {"key": "refunds", "title": "Refund policy"})
ovok.content.delete("faq", "en", "refunds")Copy entries from the parent project
A child project can copy one entry, or every entry of a content type and language, from its parent project.
ovok.content.copy_from_parent("faq", "en", "billing-cycle")
ovok.content.copy_all_from_parent("faq", "en")API reference
See ovok_sdk.resources.content for every method, parameter and error.
Last updated on