curl --request PUT \
--url https://api.example.com/api/projects/{project_id}/composer-prefs \
--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
}
'import requests
url = "https://api.example.com/api/projects/{project_id}/composer-prefs"
payload = {
"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
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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
})
};
fetch('https://api.example.com/api/projects/{project_id}/composer-prefs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/projects/{project_id}/composer-prefs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/projects/{project_id}/composer-prefs"
payload := strings.NewReader("{\n \"active_odoo_credential_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"active_odoo_tier_overrides\": {},\n \"clear_fields\": [\n \"<string>\"\n ],\n \"develop\": true,\n \"model_tier\": \"<string>\",\n \"onboard_odoo_enabled\": true,\n \"plan_first\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.example.com/api/projects/{project_id}/composer-prefs")
.header("Content-Type", "application/json")
.body("{\n \"active_odoo_credential_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"active_odoo_tier_overrides\": {},\n \"clear_fields\": [\n \"<string>\"\n ],\n \"develop\": true,\n \"model_tier\": \"<string>\",\n \"onboard_odoo_enabled\": true,\n \"plan_first\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/projects/{project_id}/composer-prefs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"active_odoo_credential_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"active_odoo_tier_overrides\": {},\n \"clear_fields\": [\n \"<string>\"\n ],\n \"develop\": true,\n \"model_tier\": \"<string>\",\n \"onboard_odoo_enabled\": true,\n \"plan_first\": true\n}"
response = http.request(request)
puts response.read_body{
"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
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Update Composer Prefs
Upsert the current user’s composer prefs for this project.
Every field is independently optional — omitted fields preserve
their current value. clear_fields lets the caller explicitly
blank a column back to NULL (otherwise the missing-vs-null ambiguity
on JSON decode would prevent that).
curl --request PUT \
--url https://api.example.com/api/projects/{project_id}/composer-prefs \
--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
}
'import requests
url = "https://api.example.com/api/projects/{project_id}/composer-prefs"
payload = {
"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
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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
})
};
fetch('https://api.example.com/api/projects/{project_id}/composer-prefs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/projects/{project_id}/composer-prefs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/projects/{project_id}/composer-prefs"
payload := strings.NewReader("{\n \"active_odoo_credential_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"active_odoo_tier_overrides\": {},\n \"clear_fields\": [\n \"<string>\"\n ],\n \"develop\": true,\n \"model_tier\": \"<string>\",\n \"onboard_odoo_enabled\": true,\n \"plan_first\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.example.com/api/projects/{project_id}/composer-prefs")
.header("Content-Type", "application/json")
.body("{\n \"active_odoo_credential_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"active_odoo_tier_overrides\": {},\n \"clear_fields\": [\n \"<string>\"\n ],\n \"develop\": true,\n \"model_tier\": \"<string>\",\n \"onboard_odoo_enabled\": true,\n \"plan_first\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/projects/{project_id}/composer-prefs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"active_odoo_credential_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"active_odoo_tier_overrides\": {},\n \"clear_fields\": [\n \"<string>\"\n ],\n \"develop\": true,\n \"model_tier\": \"<string>\",\n \"onboard_odoo_enabled\": true,\n \"plan_first\": true\n}"
response = http.request(request)
puts response.read_body{
"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
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Path Parameters
Body
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).
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.