---
title: "Upload an Approval Matrix"
method: POST
path: "/approvalMatrix/csv"
tags: ["Approvals"]
---

# Upload an Approval Matrix

`POST /approvalMatrix/csv`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/approvalMatrix/csv`
- Auth: API key in header `X-API-Key`

Upload a csv containing the order approval matrix to be used on order execution. The csv should have the following format: 
Segment, ApprovalRoleName1, ApprovalRoleName2 ...
SegmentName1, UserEmailOrGroupName1, UserEmailOrGroupName2 ...
Roles, userEmails, userGroups are expected to be added before putting them in this csv. Any new segment names defined here will add a new segment. If a segment isn't added, it shall be deleted.

## Request body `multipart/form-data`

- object
  - `file` string, binary

## Response `200`

successful operation

- ApprovalMatrixImportDataJson
  - `id` string
  - `fileName` string
  - `uploadedBy` string
  - `status` string
  - `createdOn` integer
  - `updatedOn` integer

---

[API](https://skmtc.dev/dealhub/apis/subskribe-api.md) - [All operations](https://skmtc.dev/dealhub/apis/subskribe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dealhub/apis/subskribe-api/revisions/c1ee531b82ce?raw)
