Skip to main content
PUT
/
api
/
projects
/
{project_id}
/
composer-prefs
Update Composer Prefs
curl --request PUT \
  --url https://api.example.com/api/projects/{project_id}/composer-prefs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "active_odoo_credential_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "active_odoo_tier_overrides": {},
  "clear_fields": [
    "<string>"
  ],
  "develop": true,
  "model_tier": "<string>",
  "onboard_odoo_enabled": true,
  "plan_first": true
}
'
{
  "develop": true,
  "plan_first": true,
  "active_odoo_credential_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "active_odoo_tier_overrides": {},
  "model_tier": "<string>",
  "onboard_odoo_enabled": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.codecobra.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string<uuid>
required

Body

application/json

Partial update. Every field is independently optional — omitted fields preserve their current row value. The Odoo / model fields accept null explicitly to clear back to "no opinion" (next fresh task falls through to the hard-coded composer default).

active_odoo_credential_ids
string<uuid>[] | null
active_odoo_tier_overrides
Active Odoo Tier Overrides · object
clear_fields
string[] | null
develop
boolean | null
model_tier
string | null
onboard_odoo_enabled
boolean | null
plan_first
boolean | null

Response

Successful Response

Per-user per-project composer "+" menu state — the full set of persisted task-level settings (Plan First, Code Mode, model tier, Odoo env selection + tier downgrades, onboard-Odoo toggle). Wire shape is snake_case; the frontend hook adapts to camelCase.

develop
boolean
required
plan_first
boolean
required
active_odoo_credential_ids
string<uuid>[] | null
active_odoo_tier_overrides
Active Odoo Tier Overrides · object
model_tier
string | null
onboard_odoo_enabled
boolean | null