How to create e-mail tickets via REST API?

Moderator: crythias

Post Reply
cilap
Znuny newbie
Posts: 14
Joined: 08 Feb 2022, 13:58
Znuny Version: see in post
Real Name: Darko

How to create e-mail tickets via REST API?

Post by cilap »

Hi there,

anyone here, who has already created a REST API integration with znuny?
I need an option to create an e-mail ticket via API.
This ticket has to be sent to the target, like an e-mail ticket.
And I also need to be able to provide attachments to this tickets.

Is there any example doc how to setup API and code how to do it?
Last edited by cilap on 11 Feb 2022, 10:15, edited 1 time in total.
root
Administrator
Posts: 3970
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: How to create e-mail tickets via API?

Post by root »

Hi,

Do you talk about Perl API or GenericInterface API?

- root
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
cilap
Znuny newbie
Posts: 14
Joined: 08 Feb 2022, 13:58
Znuny Version: see in post
Real Name: Darko

Re: How to create e-mail tickets via REST API?

Post by cilap »

I have changed my topic

preferably REST API or the older WebService API
callers will be remote as JS, php, ruby and java

Also not clear if I need a specific Znuny version to have all features, like 6.1.x?
root
Administrator
Posts: 3970
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: How to create e-mail tickets via REST API?

Post by root »

Hi,

if it's called REST or Web service API is just a naming discussion I will not open here. Your set for the Generic Interface (Web service in Admin area).

Since version 5 of the Community Edition Znuny provides this free add-on: https://github.com/znuny/Znuny4OTRS-GIArticleSend
Starting with Znuny 6.1 it's included in the framewort.

With the parameter 'ArticleSend => 1' in the article structure it is possible. The forum search should bring proper examples, here's one in PHP for version 6: https://github.com/rkaldung/otrs-gi-rest-php

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply