credential.update()
Learn: Credentials |
---|
Update a credential.
Description
Updates a credential, represented
as a Credential
document, with
fields from a provided data object.
During the update, fields from the data object are copied to the document, creating new fields or updating existing fields. The operation is similar to a merge.
Nested fields
Fields with nested objects in the data object are merged with the identically named nested object in the document.
Metadata fields
You can’t use this method to insert or edit the following metadata fields:
-
id
-
coll
-
ts
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
data |
true |
Document fields for the
For supported document fields, see
The object can’t include the following metadata fields: * |
Return value
Type | Description |
---|---|
The updated |