DocsAPI Reference
  • Data API
    • POSTGet BIN
LogoLogo
Login
Login
Data APIRecords

Update Record

PUT
/v1/vaults/:vaultID/:tableName/:ID
PUT
/v1/vaults/:vaultID/:tableName/:ID
1curl -X PUT https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4 \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "record": {
6 "fields": {
7 "drivers_license_number": "89867453",
8 "name": "Steve Smith",
9 "phone_number": "8794523160",
10 "ssn": "143-89-2306"
11 }
12 },
13 "tokenization": true
14}'
Try it
1{
2 "skyflow_id": "4423ccdf-75eb-4e2e-abfc-acb43b1440cd",
3 "tokens": {
4 "drivers_license_number": "2fd8e729-228a-43cf-8274-d0d0efe47f6c",
5 "name": "f5c268b7-5dd4-4d37-a12d-05d148a8a440",
6 "phone_number": "4639c565-85c8-4120-94a6-e0e91ffaeca4",
7 "ssn": "736-96-1306"
8 }
9}
Updates the specified record in a table.<br /><br />When you update a field, include the entire contents you want the field to store. For JSON fields, include all nested fields and values. If a nested field isn't included, it's removed.<br /><br />The time-to-live (TTL) for a transient field resets when the field value is updated.
Was this page helpful?
Previous

Delete Record

Next
Built with
Delete Record

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Path parameters

vaultIDstringRequired
ID of the vault.
tableNamestringRequired
Name of the table.
IDstringRequired
`skyflow_id` of the record.
ID of the vault.
Name of the table.

Bearer authentication of the form Bearer <token>, where token is your auth token.

skyflow_id of the record.

Request

This endpoint expects an object.
recordobjectOptional
Record values and tokens.
tokenizationbooleanOptional
If `true`, this operation returns tokens for fields with tokenization enabled.
byotenumOptionalDefaults to DISABLE
Token insertion behavior. - DISABLE: Tokens aren't allowed for any fields. If tokens are specified, the request fails. - ENABLE: Tokens are allowed—but not required—for all fields. If tokens are specified, they're inserted. - ENABLE_STRICT: Tokens are required for all fields. If tokens are specified, they're inserted. If not, the request fails.
Allowed values:

Response

A successful response.
skyflow_idstring or null
ID of the updated record.
tokensmap from strings to any or null
Tokens for the record.

Errors

If true, this operation returns tokens for fields with tokenization enabled.

Updates the specified record in a table.

When you update a field, include the entire contents you want the field to store. For JSON fields, include all nested fields and values. If a nested field isn’t included, it’s removed.

The time-to-live (TTL) for a transient field resets when the field value is updated.

Token insertion behavior.

  • DISABLE: Tokens aren’t allowed for any fields. If tokens are specified, the request fails.
  • ENABLE: Tokens are allowed—but not required—for all fields. If tokens are specified, they’re inserted.
  • ENABLE_STRICT: Tokens are required for all fields. If tokens are specified, they’re inserted. If not, the request fails.