POST

Ticket.AssigneeAdd

Add a team member to tickets.assign_member_id (customer-tickets assignee picker). Both ticket_id and member_id are required. Idempotent if already assigned.

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Runs the Ticket.AssigneeAdd function and returns JSON.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • ticket_id and member_id are both required.
  • member_id aliases: team_member_id, user_id, assign_member_id.
  • ticket_id aliases: id, data_id, t_id.
  • Updates assign_member_id JSON list; does not replace the whole team — use AssigneeRemove to unassign.
  • When a member is newly added: status becomes 3 (Assigned), and last_assign_time + last_status_time reset (ticket automation timers).
  • Idempotent if already assigned — timers/status unchanged.
  • Emits realtime ticket.assignee.updated.

Required Parameters

NameTypeSampleExplanation
ticket_id
post
int900Ticket id. Aliases: id, data_id, t_id.
member_id
post
int47Team member to assign. Aliases: team_member_id, user_id, assign_member_id.

Optional Parameters

No optional body parameters are defined for this function.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Ticket.AssigneeAdd",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "ticket_id": "900",
        "member_id": "47"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Ticket.AssigneeAdd",
    "url_domain": "https:\/\/{domain}\/app\/Ticket.AssigneeAdd"
}

Endpoint

POST /app/Ticket.AssigneeAdd
POST https://{user}.bull36.com/app/Ticket.AssigneeAdd
POST https://{domain}/app/Ticket.AssigneeAdd

Sample Output

{
    "success": 1,
    "message": "Success",
    "ticket_id": 900,
    "assign_member_id": [
        "47"
    ]
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ ticket_id: '900', member_id: '47' });
const res = await fetch('/app/Ticket.AssigneeAdd', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());

Error Example

{
    "success": 0,
    "message": "Missing required parameter: member_id"
}