Trasy REST API¶
Interfejs REST API jest wersjonowany pod api.pl/v1 i używa tokenów Bearer z zakresami uprawnień.
Trasy podstawowe¶
GET /v1/ping– sprawdzić dostępnośćGET /v1/openapi.json– pobrać opis OpenAPIGET /v1/me– pobrać informacje o używanym tokenieGET /v1/tickets– wyświetlić listę zgłoszeńPOST /v1/tickets– utworzyć zgłoszenieGET /v1/tickets/{ticket_id}– odczytać zgłoszeniePATCH /v1/tickets/{ticket_id}– zmienić właściwości zgłoszeniaGET /v1/tickets/{ticket_id}/articles– wyświetlić listę artykułówPOST /v1/tickets/{ticket_id}/articles– utworzyć artykułGET /v1/attachments/{attachment_id}– pobrać załącznikGET /v1/master-data/{type}– odczytać kolejki, stany, priorytety, usługi, SLA lub pola dynamiczneGET /v1/customersiPOST /v1/customers– odczytać lub utworzyć klientówPATCH /v1/customers/{customer_id}– zmienić klientówGET /v1/customer-usersiPOST /v1/customer-users– odczytać lub utworzyć użytkowników klientówPATCH /v1/customer-users/{customer_user_id}– zmienić użytkowników klientów
Zakresy uprawnień¶
Wersja źródłowa używa między innymi tickets.read, tickets.create, tickets.articles,
tickets.attachments, tickets.status, tickets.properties, tickets.internal_notes,
master_data.read, customers.read i customers.write. Moduły dodatkowe mogą rejestrować
własne zakresy i trasy w swojej przestrzeni nazw.