Skip to content

Convert policy Excel to JSON

POST
/api/v1/policies/convert
curl --request POST \
--url https://localhost:10001/api/v1/policies/convert \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: multipart/form-data' \
--form file=@file

Parses an uploaded Excel workbook and returns structured JSON policy data

file
required
file

Excel file (.xlsx or .xls)

Converted policy data

Media type application/json
object
key
additional properties
any
Example generated
{}

Bad request - Invalid or malformed Excel file

Media type application/json
object
code
string
details
string
message
string
Example
{
"code": "INVALID_REQUEST",
"details": "unexpected end of JSON input",
"message": "Invalid request body"
}

Unauthorized - Authentication required

Media type application/json
object
code
string
details
string
message
string
Example
{
"code": "INVALID_REQUEST",
"details": "unexpected end of JSON input",
"message": "Invalid request body"
}

Forbidden - Insufficient permissions

Media type application/json
object
code
string
details
string
message
string
Example
{
"code": "INVALID_REQUEST",
"details": "unexpected end of JSON input",
"message": "Invalid request body"
}

Internal server error

Media type application/json
object
code
string
details
string
message
string
Example
{
"code": "INVALID_REQUEST",
"details": "unexpected end of JSON input",
"message": "Invalid request body"
}