Skip to content

Get report templates​

GET
/api/v2/report/templates

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Responses​

Report template list

application/json
JSON
{
  
"count": 10,
  
"totalCount": 25,
  
"limit": 50,
  
"offset": 25,
  
"data": [
  
]
}

Playground​

Authorization

Samples​


Create a report template​

POST
/api/v2/report/templates

Authorizations​

bearerAuth
Type
HTTP (bearer)

Request Body​

application/json
JSON
"string"

Responses​

Report template created

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization
Body

Samples​


List Basic Info field keys and default labels for report templates​

GET
/api/v2/report/templates/ticket-basic-info-fields

Returns the same field list as the admin export manager Basic Info picker. When USAT is enabled for the site, USAT-only fields are included at the end.

Authorizations​

bearerAuth
Type
HTTP (bearer)

Responses​

Field list

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization

Samples​


Get report template by ID​

GET
/api/v2/report/templates/{id}

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

id*
Type
integer
Required
Format
"int64"

Responses​

Report template

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Delete a report template​

DELETE
/api/v2/report/templates/{id}

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

id*
Type
integer
Required
Format
"int64"

Responses​

Report template deleted

Playground​

Authorization
Variables
Key
Value

Samples​


Update a report template​

PATCH
/api/v2/report/templates/{id}

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

id*
Type
integer
Required
Format
"int64"

Request Body​

application/json
JSON
"string"

Responses​

Report template updated

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Duplicate a report template​

POST
/api/v2/report/templates/{id}/duplicate

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

id*
Type
integer
Required
Format
"int64"

Responses​

Duplicated report template

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Bulk delete report templates​

POST
/api/v2/report/templates/bulk-delete

Authorizations​

bearerAuth
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"ids": [
  
  
[
  
  
  
1,
  
  
  
2,
  
  
  
3
  
  
]
  
]
}

Responses​

Report templates deleted

Playground​

Authorization
Body

Samples​


Export data using selected report template(s)​

GET
/api/v2/report/templates/export

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Query Parameters

emailAddress

Optional email address to notify when the export is ready

Type
string
Example"admin@example.com"
Format
"email"

Responses​

Export result

application/json
JSON
"string"

Playground​

Authorization
Variables
Key
Value

Samples​


Powered by VitePress OpenAPI