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

PUT
/v1/vaults/:vaultID/:tableName/:ID
PUT
/v1/vaults/:vaultID/:tableName/:ID
1import requests
2
3url = "https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4"
4
5payload = {
6 "record": { "fields": {
7 "drivers_license_number": "89867453",
8 "name": "Steve Smith",
9 "phone_number": "8794523160",
10 "ssn": "143-89-2306"
11 } },
12 "tokenization": True
13}
14headers = {
15 "Authorization": "Bearer <token>",
16 "Content-Type": "application/json"
17}
18
19response = requests.put(url, json=payload, headers=headers)
20
21print(response.json())
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.

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.

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

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

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.
A successful response.

skyflow_id of the record.