Delete a Webhook from the database¶
Note
API endpoints:
- DELETE {your_Odoo_server_url}/restapi/1.0/webhooks/{id} (Delete a single webhook by its id)
- DELETE {your_Odoo_server_url}/restapi/1.0/webhooks?ids={comma_separated_ids} (Delete a list of webhooks of particular ids)
Delete a single webhook by its id¶
Give a single webhook id to delete.
-
DELETE
/restapi/1.0/webhooks/{id}
¶ Request:
DELETE /restapi/1.0/webhooks/7 HTTP/1.1 Host: {your_Odoo_server_url}
Response:
HTTP/1.1 200 OK {}
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
Delete a list of webhooks of particular ids¶
Give a list of webhook ids to delete.
-
DELETE
/restapi/1.0/webhooks?ids={comma_separated_ids}
¶ Request:
DELETE /restapi/1.0/webhooks?ids=7,12 HTTP/1.1 Host: {your_Odoo_server_url}
Response:
HTTP/1.1 200 OK {}
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