Invoke JSON-2 model method
documentedCall a method on a specific Odoo model via the JSON-2 API. The model and method are in the URL; the request body contains method arguments, with authentication via an API key.
POST /json/2/{model}/{method}External JSON-2 APIno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://odoo.com/json/2/{{$model}}/{{$method}}" \
-X POST \
-H "Authorization: bearer {{ODOO_API_KEY}}" \
-H "Content-Type: application/json; charset=utf-8" \
-H "Accept: application/json" \
-H "X-Odoo-Database: {{$database}}" \
-H "User-Agent: {{$user_agent}}" \
-d '{"ids": {{$ids}}, "context": {{$context}}, "fields": {{$fields}}, "load": {{$load}} }'