Data API Actions
Like most REST API's with the Data API you send requests to various resources, using different HTTP methods to indicate what action you are wanting executed.
Different actions supported by the Data API include:
- Read a record using
GET
, providing a primary key value to a record. - List all records in a resource using a
GET
request to the resource itself. - Search a resource with a
GET
request to a resource, specifying search parameters. - Create a new record with a
POST
request to a resource - Update an existing record with either a
PUT
(strict) orPOST
(non-strict) request to a resource. - Delete a record with a
DELETE
to a resource.
Faking the HTTP method
If the programming language objects you are using to submit http requests don't support the PUT
and DELETE
request methods, then you can optionally just POST
to the resource url and pass the special argument _method=PUT
or _method=DELETE
in a querystring.