Skip to main content

Update Records

Partial Update

PATCH /api/v1/records/:entityId

Unspecified fields are preserved.

curl -X PATCH https://api.rushdb.com/api/v1/records/movie-123 \
-H "Authorization: Bearer $RUSHDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"data": {"rating": 9.0}}'

Full Replacement

PUT /api/v1/records/:entityId

All previous fields are removed, then replaced with the new data.

curl -X PUT https://api.rushdb.com/api/v1/records/movie-123 \
-H "Authorization: Bearer $RUSHDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label": "MOVIE", "data": {"title": "Inception", "rating": 9.0, "genre": "sci-fi"}}'

Request body

FieldTypeDescription
labelstring(Optional) New label for the record
dataobjectProperties to write

See also