Update a note
client.note.update(stringid, NoteUpdateParams { fields, relationships } body, RequestOptionsoptions?): NoteUpdateResponse { id, createdAt, fields, 4 more }
POST/v1/notes/{id}
Updates an existing note by ID. Only included fields and relationships are modified.
Both $account and $opportunity relationships can be modified via add or remove operations.
Supports idempotency via the Idempotency-Key header.
Required scope: notes:update
Rate limit category: Write
Parameters
id: string
Unique identifier of the note to update.
Returns
Update a note
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const noteUpdateResponse = await client.note.update('id');
console.log(noteUpdateResponse.id);{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}