Export report data in a xlsx file format

POST /api/v1/policy-statistics/{policyId}/import/file

Imports a new statistic definition from the provided zip file and associates it with the specified policy.

Authentication: Bearer token required (Authorization: Bearer <token>)

Permission: Permissions.STATISTICS_STATISTIC_CREATE


Request

Path Parameters

Parameter
Type
Required
Description

policyId

string

Yes

Policy identifier to associate with the imported definition

Request Body

The request body must be a binary zip file previously exported via GET /policy-statistics/{definitionId}/export/file.

Content-Type: application/zip

Response

Success Response

Status: 201 Created

Error Responses

Status
Description

401 Unauthorized

Missing or invalid token

403 Forbidden

Insufficient permissions

422 Unprocessable Entity

Invalid or missing policyId

500 Internal Server Error

Unexpected server failure

Last updated

Was this helpful?