Records

The records route provides a flexible and powerful way to create, retrieve, update, and delete records within your app. The route is designed to be resource-oriented and follows standard HTTP verbs.

Create a new record

post

Create a new record in a collection

Authorizations
x-collection-access-tokenstringRequired

Access token required for private collections (available on the specific collection's page)

Body
collectionIdstring · uuidRequired

ID of the collection to create the record in

dataobjectRequired

JSON object data to store in the record

Example: {"users":[{"id":1,"email":"[email protected]"}]}
metadatabooleanOptional

Whether to include metadata in the response

Default: true
Responses
200

Record created successfully

application/json
post
/records

Get a record

get

Retrieve a record by its ID

Authorizations
x-collection-access-tokenstringRequired

Access token required for private collections (available on the specific collection's page)

Path parameters
recordIdstring · uuidRequired

Unique identifier of the record

Query parameters
metadatabooleanOptional

Whether to include metadata in the response

Default: true
versionintegerOptional

Specific version of the record to retrieve

Responses
200

Record retrieved successfully

application/json
get
/records/{recordId}

Update a record

put

Update an existing record

Authorizations
x-collection-access-tokenstringRequired

Access token required for private collections (available on the specific collection's page)

Path parameters
recordIdstring · uuidRequired

Unique identifier of the record

Body
dataobjectRequired

JSON object data to store in the record

Example: {"users":[{"id":2,"email":"[email protected]"}]}
metadatabooleanOptional

Whether to include metadata in the response

Responses
200

Record created/updated successfully

application/json
put
/records/{recordId}

Delete a record

delete

Remove a record permanently

Authorizations
x-collection-access-tokenstringRequired

Access token required for private collections (available on the specific collection's page)

Path parameters
recordIdstring · uuidRequired

Unique identifier of the record

Responses
200

Record deleted successfully

No content

delete
/records/{recordId}

No content

Partially update a record

patch

Update specific fields of an existing record

Authorizations
x-collection-access-tokenstringRequired

Access token required for private collections (available on the specific collection's page)

Path parameters
recordIdstring · uuidRequired

Unique identifier of the record

Body
dataobjectRequired

JSON object data to update in the record

Example: {"users":[{"id":1,"email":"[email protected]","firstName":"Charles"}]}
metadatabooleanOptional

Whether to include metadata in the response

Responses
200

Record updated successfully

application/json
patch
/records/{recordId}

Last updated

Was this helpful?