Quantcast
Channel: Znuny Open Source Ticketsystem
Viewing all articles
Browse latest Browse all 323

TicketUpdate function invalid parameter

$
0
0
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:

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:

{'Error': {'ErrorCode': 'TicketUpdate.InvalidParameter', 'ErrorMessage': 'TicketUpdate: Ticket parameter is not valid!'}}

Statistics: Posted by ATD39401 — 12 Aug 2024, 17:06 — Replies 0 — Views 13



Viewing all articles
Browse latest Browse all 323

Trending Articles