Assignees

Add Assignees

Requires admin privileges

POST/api/customers/notes/{note_id}/assignees
Path parameters
note_id*integer (int64)
Body
assigneesnullable array of integer (int64)
Response

OK

Body
idinteger (int64)
reference_typeNoteReferenceType (enum)
businesscustomermembershipCardorderpoint_earnedsubscriptiontransactionreservationappointmentevent
reference_idinteger (int64)
typenullable string
detailsnullable string
created_onstring (date-time)
statusNoteStatus (enum)
openclosed
remindernullable string
user_idinteger (int64)
company_idinteger (int64)
customer_idinteger (int64)
confidentialboolean
priorityboolean
tagsnullable array of string
subjectnullable string
customerCustomerSummary (object)
userUser (object)
assigneesnullable array of NoteAssignee (object)
messagesnullable array of NoteMessage (object)
Request
const response = await fetch('/api/customers/notes/{note_id}/assignees', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "reference_type": "",
  "type": "text",
  "details": "text",
  "created_on": "2024-10-06T20:25:26.131Z",
  "status": "",
  "reminder": "text",
  "confidential": false,
  "priority": false,
  "tags": [
    "text"
  ],
  "subject": "text",
  "customer": {
    "company_name": "text",
    "company_title": "text",
    "first_name": "text",
    "middle_name": "text",
    "last_name": "text",
    "full_name": "text",
    "locale": "text",
    "is_member": false,
    "was_member": false,
    "has_applied": false,
    "flag": "",
    "email": "name@gmail.com",
    "mobile": {
      "country_code": "text",
      "number": "text",
      "full": "text"
    },
    "phone": {
      "country_code": "text",
      "number": "text",
      "full": "text"
    },
    "profile_photo": "text",
    "vip": false,
    "home_house_id": "text",
    "birthdate": "text",
    "anniversary_date": "text",
    "created_on": "2024-10-06T20:25:26.131Z"
  },
  "user": {
    "status": "active",
    "first_name": "text",
    "last_name": "text",
    "full_name": "text",
    "email": "text",
    "username": "text",
    "profile_photo": "text",
    "employee_id": "text",
    "mobile_number": "text",
    "business_location_id": "text",
    "enable2_fa": "text",
    "modified_on": "text",
    "created_by": "text",
    "role": "text"
  },
  "assignees": [
    {
      "status": "active",
      "created_on": "2024-10-06T20:25:26.131Z",
      "first_name": "text",
      "last_name": "text",
      "full_name": "text",
      "email": "text",
      "username": "text",
      "profile_photo": "text",
      "employee_id": "text",
      "mobile_number": "text",
      "business_location_id": "text",
      "enable2_fa": "text",
      "modified_on": "text",
      "created_by": "text",
      "role": "text"
    }
  ],
  "messages": [
    {
      "message": "text",
      "attachment": "text",
      "posted_by": {
        "status": "active",
        "first_name": "text",
        "last_name": "text",
        "full_name": "text",
        "email": "text",
        "username": "text",
        "profile_photo": "text",
        "employee_id": "text",
        "mobile_number": "text",
        "business_location_id": "text",
        "enable2_fa": "text",
        "modified_on": "text",
        "created_by": "text",
        "role": "text"
      },
      "created_on": "2024-10-06T20:25:26.131Z"
    }
  ]
}

Remove Assignee

Requires admin privileges

DELETE/api/customers/notes/{note_id}/assignees/{user_id}
Path parameters
note_id*integer (int64)
user_id*integer (int64)
Response

OK

Body
idinteger (int64)
reference_typeNoteReferenceType (enum)
businesscustomermembershipCardorderpoint_earnedsubscriptiontransactionreservationappointmentevent
reference_idinteger (int64)
typenullable string
detailsnullable string
created_onstring (date-time)
statusNoteStatus (enum)
openclosed
remindernullable string
user_idinteger (int64)
company_idinteger (int64)
customer_idinteger (int64)
confidentialboolean
priorityboolean
tagsnullable array of string
subjectnullable string
customerCustomerSummary (object)
userUser (object)
assigneesnullable array of NoteAssignee (object)
messagesnullable array of NoteMessage (object)
Request
const response = await fetch('/api/customers/notes/{note_id}/assignees/{user_id}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();
Response
{
  "reference_type": "",
  "type": "text",
  "details": "text",
  "created_on": "2024-10-06T20:25:26.131Z",
  "status": "",
  "reminder": "text",
  "confidential": false,
  "priority": false,
  "tags": [
    "text"
  ],
  "subject": "text",
  "customer": {
    "company_name": "text",
    "company_title": "text",
    "first_name": "text",
    "middle_name": "text",
    "last_name": "text",
    "full_name": "text",
    "locale": "text",
    "is_member": false,
    "was_member": false,
    "has_applied": false,
    "flag": "",
    "email": "name@gmail.com",
    "mobile": {
      "country_code": "text",
      "number": "text",
      "full": "text"
    },
    "phone": {
      "country_code": "text",
      "number": "text",
      "full": "text"
    },
    "profile_photo": "text",
    "vip": false,
    "home_house_id": "text",
    "birthdate": "text",
    "anniversary_date": "text",
    "created_on": "2024-10-06T20:25:26.131Z"
  },
  "user": {
    "status": "active",
    "first_name": "text",
    "last_name": "text",
    "full_name": "text",
    "email": "text",
    "username": "text",
    "profile_photo": "text",
    "employee_id": "text",
    "mobile_number": "text",
    "business_location_id": "text",
    "enable2_fa": "text",
    "modified_on": "text",
    "created_by": "text",
    "role": "text"
  },
  "assignees": [
    {
      "status": "active",
      "created_on": "2024-10-06T20:25:26.131Z",
      "first_name": "text",
      "last_name": "text",
      "full_name": "text",
      "email": "text",
      "username": "text",
      "profile_photo": "text",
      "employee_id": "text",
      "mobile_number": "text",
      "business_location_id": "text",
      "enable2_fa": "text",
      "modified_on": "text",
      "created_by": "text",
      "role": "text"
    }
  ],
  "messages": [
    {
      "message": "text",
      "attachment": "text",
      "posted_by": {
        "status": "active",
        "first_name": "text",
        "last_name": "text",
        "full_name": "text",
        "email": "text",
        "username": "text",
        "profile_photo": "text",
        "employee_id": "text",
        "mobile_number": "text",
        "business_location_id": "text",
        "enable2_fa": "text",
        "modified_on": "text",
        "created_by": "text",
        "role": "text"
      },
      "created_on": "2024-10-06T20:25:26.131Z"
    }
  ]
}