Jump to content

OpenTicket external API creates ticket as client not Admin


Recommended Posts

I have an separate web app that lets users create tickets on WHMCS using the OpenTicket API (external).

This works, but the owner is set to the client name for whom the ticket is created.

$postfields = [
            'action' => 'OpenTicket',          
            'clientid' => $client_id, 
            'admin' => true,
            'name' => 'Admin User',
            'deptid' => '1',  
            'priority' => 'Medium',         
            'subject'  => 'subject',
            'message' => 'Example Message',
            'responsetype' => 'json',
        ];

I want for the ticket to be created as an admin User. Am I missing something?

PS: if i send same request using the Local API, it works perfectly.

Link to comment
Share on other sites

On 08/03/2021 at 07:27, Trescpress said:

Looks like 8.1.0 has a bug.

I think it's a known bug that was fixed in v8.1.1

Quote

CORE-16125 - Correct inspection of 'admin' parameter for OpenTicket API

upgrading to v8.1.1 (or preferably v8.1.3) should be the way to go to fix this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated