Get a count of Webhooks¶
Get the number of all webhooks by default and by passing domain filter optionally, retrieve only the number of webhooks matching the query.
-
GET
/restapi/1.0/webhooks/count
¶ Request:
GET /restapi/1.0/webhooks/count?domain=[('model','=','product.product')] HTTP/1.1 Host: {your_Odoo_server_url}
Response:
HTTP/1.1 200 OK { 'count': 3 }
Query Parameters: - domain – A search domain. Use an empty list to match all webhooks.
Request Headers: - Accept – the response content type depends on Accept header
- Authorization – The OAuth protocol parameters to authenticate.
Response Headers: - Content-Type – this depends on Accept header of request
Status Codes: - 200 OK – no error
- 404 Not Found – there’s no resource
- 401 Unauthorized – authentication failed
- 403 Forbidden – if any error raise