Tickets - Admin

Create ticket (admin)

Create a ticket from the system-admin flow.

Mirrors the user create endpoint but allows admin-only categories (integracoes) and an internal priority, and always validates assigned_to.

The ticket carries the acting admin's HOME company — never the one they may be impersonating. user["idcompany"] is ambient (see auth.home_company): an admin who switched into a tenant and then opened the system-admin panel would otherwise file this internal ticket INSIDE that tenant, where the tenant read path (db.tickets.list_tickets_by_company, which filters on idcompany alone) makes it readable by their users, and the attachment prefix below drops the files into that tenant's MultiDrive.

post/api/admin/tickets

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/admin/tickets
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Headers

x-api-tokenstring nullable

Request body multipart/form-data

subjectstring required

Ticket subject

descriptionstring required

Ticket description

prioritystring

Priority: low, medium, high, urgent

internal_prioritystring nullable

Admin-only priority (never shown to users)

categorystring nullable

Category (admins may also use: integracoes)

assigned_tointeger nullable

Assign to a system_admin

filesstring[]

Attachments (max 5 files, 10MB each)

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 21 revisions of this API.