Entity reference · v1
competitors
CMP-NNNNNNtable competitorssoft deleteCompetitors with strengths, weaknesses, differentiators.
Endpoints
GET
/api/v1/competitorsPOST
/api/v1/competitorsGET
/api/v1/competitors/{id}PATCH
/api/v1/competitors/{id}DELETE
/api/v1/competitors/{id}POST
/api/v1/competitors/{id}/restoreWritable fields
* required on create. PATCH treats every field as optional.
| Field | Type | Constraints | Notes |
|---|---|---|---|
| name* | string | ||
| website | string | ||
| description | text | ||
| strengths | json | ||
| weaknesses | json | ||
| differentiators | json | ||
| notes | text | ||
| status | string | active | emerging | declining | archived | |
| is_draft | boolean | ||
| metadata | json |
Listing & filtering
- Pagination:
?limit=50&offset=0· max limit 200 - Default sort:
?sort=name&order=asc - Sortable fields: created_at · updated_at · name · id_number
- Search (?q=): name, description, notes
- Filters: ?status= , repeat any filter to OR multiple values
- Trash: hidden by default; pass
?include_deleted=true
Examples
curlbash
curl 'https://productos.ca/api/v1/competitors?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/competitors. 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/competitors?limit=3