ProductOSDocs

Entity reference · v1

themes

THM-NNNNNNtable themessoft delete

Patterns clustered from feedback. Trend chip + AI summary.

Endpoints

GET/api/v1/themes
POST/api/v1/themes
GET/api/v1/themes/{id}
PATCH/api/v1/themes/{id}
DELETE/api/v1/themes/{id}
POST/api/v1/themes/{id}/restore
GET/api/v1/themes/{id}/links/feedback
POST/api/v1/themes/{id}/links/feedback
DELETE/api/v1/themes/{id}/links/feedback/{targetId}
GET/api/v1/themes/{id}/links/features
POST/api/v1/themes/{id}/links/features
DELETE/api/v1/themes/{id}/links/features/{targetId}
GET/api/v1/themes/{id}/links/personas
POST/api/v1/themes/{id}/links/personas
DELETE/api/v1/themes/{id}/links/personas/{targetId}

Writable fields

* required on create. PATCH treats every field as optional.

FieldTypeConstraintsNotes
title*string
descriptiontext
statusstringnew | under-review | planned | in-progress | emerging | active | mature | archived
categorystring
trendstringup | growing | stable | declining | down
weekly_growthfloat
linked_initiativestring
ai_summarytext
module_iduuid
is_draftboolean
metadatajson

Listing & filtering

  • Pagination: ?limit=50&offset=0 · max limit 200
  • Default sort: ?sort=created_at&order=desc
  • Sortable fields: created_at · updated_at · title · weekly_growth · id_number
  • Search (?q=): title, description, ai_summary
  • Filters: ?status= ?trend= ?category= ?module_id= ?is_draft= , repeat any filter to OR multiple values
  • Trash: hidden by default; pass ?include_deleted=true
  • Expand: ?expand=feedback,features

Examples

curlbash
curl 'https://productos.ca/api/v1/themes?limit=10' \
  -H "Authorization: Bearer $TOKEN"

Try it out

Paste a token and hit a real endpoint. The request goes from your browser straight to /api/v1/themes. The token is held in this page only for the request and is never stored.

Try it out

Issue tokens in Settings → API tokens. Token never leaves this page.

GET/api/v1/themes?limit=3

Generated from the API's entity configuration. This page is rebuilt on every deploy, so it always matches the live API.