Skip to Content

Execute Methods in Odoo using JsonAPI 

Configure JsonAPI

Configure API With JsonAPI Protocol, and Publish it.

Method Execution using JsonAPI


For Executing Methods, we have to provide "/execute" after particular model record. you can see below url example and request body

Request URL:

192.168.1.15:8018/user-jsonapi-apikey/sale.order/45/execute

Request Body:

{
  "data": {
      "method": "action_confirm",
      "kwargs":{}
  }
}

In Request Body, we have provide method-name in "method" and Parameters of method in "kwargs"