darkavenger Posted January 20, 2022 Share Posted January 20, 2022 (edited) Hello. I need help. Can I add https://psa.pulseway.com/MSP/TicketsListing.aspx here to Tickets ? Using https://api.pulseway.com/ ? Edited January 20, 2022 by Paul Corrected formatting Link to comment Share on other sites More sharing options...
Administrators Paul Posted January 20, 2022 Administrators Share Posted January 20, 2022 Hi there, Check out the PSA REST API's here:Â https://api.psa.pulseway.com/. The link you have provided is for the RMM. -Paul Link to comment Share on other sites More sharing options...
darkavenger Posted January 23, 2022 Author Share Posted January 23, 2022 (edited) Thank you . Tell me where else can I look for example ticketId ? . In the admin I see only the name  .  /v2/servicedesk/tickets/{ticketId} Edited January 23, 2022 by Paul Corrected formatting Link to comment Share on other sites More sharing options...
Administrators Paul Posted January 23, 2022 Administrators Share Posted January 23, 2022 You should be able to get the IDs of tickets from another API call used to list tickets:Â /v2/servicedesk/tickets/search -Paul Link to comment Share on other sites More sharing options...
darkavenger Posted January 23, 2022 Author Share Posted January 23, 2022 (edited) Thank you!!! what am I doing wrong here? I want to publish a test ticket. And i get 500 error result [success] => [error] => Array ( [code] => 500 [message] => Internal Server Error [details] => Internal Server Error ) $data = [ 'title' => 'test', 'details' => 'sdfsd', // 'tenantId' => 6636, 'accountId' => 112388, 'locationId' => 127431, 'contactId' => 97966, 'softwareAssetId' => 0, 'hardwareAssetId' => 0, 'queueId' => 30526, 'statusId' => 40482, 'priorityId' => 33223, 'typeId' => 8, 'issueTypeId' => 0, 'subIssueTypeId' => 0, 'contractId' => 0, 'assigneeId' => 0, 'workTypeId' => 0, 'sourceId' => 0, 'slaId' => 0, 'openDate' => "2022-01-23T12:31:13.003Z", 'dueDate' => "2022-01-23T12:31:13.003Z", // 'secondaryAssignees' => json_encode([]), // 'ccs' => json_encode([ // 'emailAddress' => '', // 'entityType' => 0, // 'id' => 0, // ]), // 'tempAttachments' => json_encode([ // 'id' => 0, // 'name' => '', // 'alias' => '' // ]), // 'customFieldsData' => json_encode([ // 'id' => 0, // 'customFieldId' => 0, // 'data' => '', // 'settingsId' => 0, // ]), 'useDefaultContract' => true ]; $data = json_encode($data); $headersTicket = [ "Authorization: Bearer ".$accessToken, "accept: application/json", "Content-Type: application/json" ]; $urlTicket = "https://api.psa.pulseway.com/v2/servicedesk/tickets"; $ch = curl_init($urlTicket); curl_setopt($ch, CURLOPT_HTTPHEADER, $headersTicket); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HEADER, false); $res = curl_exec($ch); curl_close($ch); $res = json_decode($res, JSON_UNESCAPED_UNICODE); print_r($res); Â Edited January 23, 2022 by Paul Corrected formatting Link to comment Share on other sites More sharing options...
Administrators Paul Posted January 23, 2022 Administrators Share Posted January 23, 2022 I'll have to look into it tomorrow. I'll reply back when I have more information. -Paul Link to comment Share on other sites More sharing options...
darkavenger Posted January 25, 2022 Author Share Posted January 25, 2022 Â Hello .Did you manage to reproduce the error? Link to comment Share on other sites More sharing options...
darkavenger Posted January 25, 2022 Author Share Posted January 25, 2022 Decided. Question removed. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now