Assigning Agents Via REST API Not Working
-
I’ve been trying to assign support agents to tickets when creating a new ticket via the SupportCandy REST API. However, it seems to be ignoring the assigned_agent field and not assigning any agents. My code looks similar to this:
CURLOPT_POSTFIELDS => array( 'name' => $user->first_name.' '.$user->last_name, 'email' => $user->user_email, 'subject' => 'Ticket Subject', 'description' => 'Ticket Description', 'category' => '7', 'assigned_agent' => '1' ),
The name, email, subject, description, and category all get filled in correctly but the assigned agent field gets left blank. Per the SupportCandy docs, the assigned_agent field should get sent as a comma-separated list as a string, but no matter how I’ve formatted it the API does not return any errors and leaves the field blank.
I know that there is a premium plugin for automatic agent assignment, but that is not what I am trying to accomplish here. I’m looking to manually assign users via the REST API per the documentation. Is there anything that I am missing or doing incorrectly?
- The topic ‘Assigning Agents Via REST API Not Working’ is closed to new replies.