Skip to content

Create a note for a customer

Request

Security
bearerAuth
Path
organizationIdstringrequired

Organization ID of the member accessing the resource

Example:my-organization-id
customerIdinteger, ( 0 .. 9007199254740991 ]required
Bodyapplication/jsonrequired
categoryIdinteger, ( 0 .. 9007199254740991 ]required
Example:3
titlestring, non-empty
Example:"Kick off call"
bodystring, non-emptyrequired
Example:"Discussed onboarding plan."
userIdsArray of integers
Example:
[ 7, 11 ]
contactIdsArray of integers
Example:
[ 21, 34 ]
curl -i -X POST \
  'https://docs.api.hook.co/_mock/v1/openapi/organizations/my-organization-id/customers/{customerId}/notes' \
  -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" }