---
title: "POST /api/marts"
method: POST
path: "/api/marts"
tags: ["Mart"]
---

# POST /api/marts

`POST /api/marts`

## Request

- Base URL: `https://data.deluxe.com` (the document declares no server; this is the origin it was published from)
- URL: `https://data.deluxe.com/api/marts`
- Auth: API key in header `X-Deluxe-Auth`
- TypeScript: <https://skmtc.dev/deluxe/apis/append-api/docs/api/marts/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- Mart
  - `alias` string, nullable
  - `server` string, nullable
  - `database` string, nullable
  - `username` string, nullable
  - `password` string, nullable
  - `searchTypeId` integer
  - `audit` boolean
  - `martAttributes` MartAttribute[], nullable
    - `mart` Mart (recursive)
    - `attribute` Attribute
      - `alias` string, nullable
      - `type` 1
      - `id` integer
    - `columnName` string, nullable
    - `dataDictionaryItemId` integer
    - `id` integer
  - `martSuppliers` MartSupplier[], nullable
    - `mart` Mart (recursive)
    - `supplier` Supplier
      - `alias` string, nullable
      - `name` string, nullable
      - `id` integer
    - `tableName` string, nullable
    - `id` integer
  - `attributes` string[], nullable
  - `suppliers` string[], nullable
  - `id` integer

## Response `200`

Success

- Mart
  - `alias` string, nullable
  - `server` string, nullable
  - `database` string, nullable
  - `username` string, nullable
  - `password` string, nullable
  - `searchTypeId` integer
  - `audit` boolean
  - `martAttributes` MartAttribute[], nullable
    - `mart` Mart (recursive)
    - `attribute` Attribute
      - `alias` string, nullable
      - `type` 1
      - `id` integer
    - `columnName` string, nullable
    - `dataDictionaryItemId` integer
    - `id` integer
  - `martSuppliers` MartSupplier[], nullable
    - `mart` Mart (recursive)
    - `supplier` Supplier
      - `alias` string, nullable
      - `name` string, nullable
      - `id` integer
    - `tableName` string, nullable
    - `id` integer
  - `attributes` string[], nullable
  - `suppliers` string[], nullable
  - `id` integer

---

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