TicketUpdate function invalid parameter

Moderator: crythias

Locked
ATD39401
Znuny newbie
Posts: 21
Joined: 28 Jun 2024, 14:38
Znuny Version: 6.0.44
Real Name: Amber Denton
Company: UTK College of Veterinary Medicine

TicketUpdate function invalid parameter

Post by ATD39401 »

Hello all, I'm running into an issue with updating information on a ticket. I have a Python script that's feeding the following parameters into a POST call with Python's requests library. I have data from the ticket that needs to be updated fed into the parameters like this. What might I be missing according to this documentation?https://otrscommunityedition.com/doc/ap ... te.pm.html

Code: Select all

params = {
                'UserLogin': OTRSLogin,
                'Password': OTRSPassword,
                'TicketID': ticketID,
                'TicketNumber': ticketNumber,
                'Ticket': {
                    'Title': snToCheck,
                    'QueueID': 27,
                    'State': 'open',
                    'PriorityID': 3,
                    'StateID': tkey['StateID'],
                    'CustomerUser': 'bdenton4@vols.utk.edu'
                },
                'Article': {
                    'CommunicationChannel': 'Email',
                    'IsVisibleForCustomer': 1,
                    'ArticleSend': 1,
                    'To': toEmail,
                    'From': fromEmail,
                    'Subject': printerSN + ' | ' + printerAddr,
                    'Body': bodyTextToSend,
                    'ContentType': 'text/plain; charset=utf-8'
                }
            }
full error message

Code: Select all

{'Error': {'ErrorCode': 'TicketUpdate.InvalidParameter', 'ErrorMessage': 'TicketUpdate: Ticket parameter is not valid!'}}
You do not have the required permissions to view the files attached to this post.
Locked