---
title: "Create Element"
method: POST
path: "/companies/{company_id}/elements"
tags: ["elements"]
---

# Create Element

`POST /companies/{company_id}/elements`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/companies/{company_id}/elements`
- Auth: none declared

A new library element, its first version the definition given.

## Path parameters

- `company_id` string, uuid, required: Company id

## Request body

- LibraryElementCreate: A new element of the company's library (decision 168): its first version.
  - `definition` object, required
  - `notes` string, nullable

## Response `201`

Successful Response

- LibraryElementOut: A library element with its newest version's definition, for the editor to draw and insert.
  - `id` string, uuid, required
  - `name` string, required
  - `version` integer, required
  - `definition` object, required
  - `updated_at` string, date-time, required
  - `updated_by_name` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
