Skip to content

Update a note for a customer

Request

Only the member who wrote the note can update it, and only notes written in Hook or synced from Salesforce. Fields left out are unchanged. A null title clears it. userIds and contactIds replace the people linked to the note.

Security
bearerAuth
Path
organizationIdstringrequired

Organization ID of the member accessing the resource

Example:my-organization-id
customerIdinteger, ( 0 .. 9007199254740991 ]required
noteIdinteger, ( 0 .. 9007199254740991 ]required
Bodyapplication/jsonrequired
categoryIdinteger, ( 0 .. 9007199254740991 ]
Example:3
titlestring or null, non-empty
Example:"Kick off call"
bodystring, non-empty
Example:"Discussed onboarding plan."
userIdsArray of integers
Example:
[ 7, 11 ]
contactIdsArray of integers
Example:
[ 21, 34 ]
curl -i -X PATCH \
  'https://docs.api.hook.co/_mock/v1/openapi/organizations/my-organization-id/customers/{customerId}/notes/{noteId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "categoryId": 3,
    "title": "Kick off call",
    "body": "Discussed onboarding plan.",
    "userIds": [
      7,
      11
    ],
    "contactIds": [
      21,
      34
    ]
  }'

Responses

Default Response

Bodyapplication/json
idinteger, ( 0 .. 9007199254740991 ]required
Example:64
customerIdinteger, ( 0 .. 9007199254740991 ]required
Example:12
titlestring or nullrequired
Example:"Kick off call"
bodystring or nullrequired
Example:"Discussed onboarding plan."
categoryobject(NoteCategory)required
usersArray of objects(NotePerson)required
contactsArray of objects(NotePerson)required
sourcesArray of stringsrequired
Example:
[ "hook" ]
createdDatestring, (date-time)required
updatedDatestring, (date-time)required
Response
{ "id": 64, "customerId": 12, "title": "Kick off call", "body": "Discussed onboarding plan.", "category": { "id": 3, "name": "Meeting" }, "users": [ { … } ], "contacts": [ { … } ], "sources": [ "hook" ], "createdDate": "2019-08-24T14:15:22Z", "updatedDate": "2019-08-24T14:15:22Z" }