API error Message create Ticket

Infos:

  • Used Zammad version: 3.4 last Update on 09.18.2020
  • Used Zammad installation source: (package)
  • Operating system: Ubunto 18.4
  • Browser + version:

Expected behavior:

Create Ticket via API

Actual behavior:

This error i get:

{

"error": "Not authorized (token)!",

"error_human": "Not authorized (token)!"

}

I can create a User without any problem

Steps to reproduce the behavior:

This is the Curl call.

curl -X POST ‘https://..*/api/v1/tickets’ ^

-H ‘Authorization: Token token=’ ^

-H ‘Content-Type: application/json’ ^

–data-raw '{

"customer": "test@test.de",

"group": "Users",

"title": "Dies ist der Titel",

"article": {

    "subject": "Dies ist der Betreff",

    "body": "Dies ist der Body"

}

}’

Token has following access rights.

admin, report, user_preferences

Yep, well you either need ticket.agent or ticket.customer to create tickets.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.