Update a note
$ lightfield note update
POST/v1/notes/{id}
Updates an existing note by ID. Only included fields and relationships are modified.
$account, $opportunity, and $contact relationships can be modified via add and/or remove operations (combined in one call or separately).
Supports idempotency via the Idempotency-Key header.
Required scope: notes:update
Rate limit category: Write
Parameters
--fields: optional object { "$content", "$title" }
Field values to update — only provided fields are modified; omitted fields are left unchanged. See Fields and relationships for value type details.
--relationships: optional object { "$account", "$contact", "$opportunity" }
Relationship operations to apply. System relationships use a $ prefix (e.g. $account, $opportunity, $contact); custom relationships use their bare slug. Each value is an operation object with add and/or remove. replace is not supported since note relationships are HAS_MANY.
Update a note
lightfield note update \
--api-key 'My API Key' \
--id 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"
}