PUT and DELETE requests
Overview
Some Mambo API endpoints require using PUT and DELETE HTTP methods for updating and deleting resources. These methods follow RESTful API design principles and are used in specific contexts:
- PUT: Used to update existing resources (users, behaviours, rewards, etc.)
- DELETE: Used to remove resources from the system
Headers for compatibility
Not all platforms, languages, or frameworks support these HTTP methods natively. If you're working with a system that only supports GET and POST methods, you can use the following HTTP headers with a POST request to simulate PUT and DELETE operations.
PUT header override
DELETE header override
When to use method overrides
Use these method overrides only when your development environment doesn't support PUT and DELETE methods directly. Modern frameworks and libraries typically support all HTTP methods natively, so you should first check if direct PUT/DELETE requests are possible in your environment.
For more information about HTTP methods, see the HTTP/1.1 Method Definitions.