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

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}
Was this page helpful?
Previous

Delete Record

Next
Built with
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.
Update Record

Authentication

AuthorizationBearer
Access token, prefixed by Bearer: Bearer &lt;token&gt;. Retrieved using <a href='https://readme.skyflow.com/reference/Authentication/OAuth2'>OAuth2</a> security scheme.

Path Parameters

vaultIDstringRequired
ID of the vault.
tableNamestringRequired
Name of the table.
IDstringRequired
`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

A successful response.

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.

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

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.

Access token, prefixed by Bearer: Bearer <token>. Retrieved using OAuth2 security scheme.

skyflow_id of the record.