---
title: "Save Mask Info"
method: POST
path: "/mask/"
tags: ["MASK"]
---

# Save Mask Info

`POST /mask/`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/mask/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Saves Mask Data info for a particular tenant in the database.
:param db: The database session for accessing the database.
:param auth: The authorization token for the request.
:param mask_data_request: mask data request.
:return: ok status and optional message.

## Request body

- MaskDataRequest
  - `mask_data` MaskData[], required
    - `label` string, required
    - `masking_type` 'allow' | 'mask' | 'block', required
    - `regex` string, nullable
    - `default` string, nullable

## Response `200`

Successful Response

- MaskDataResponse
  - `ok` boolean, required
  - `message` string, nullable

## Other responses

- `400`: Not supported for public user
- `403`: Not supported for public user
- `422`: Validation Error

---

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