---
title: "Create a new static array with the provided values."
method: POST
path: "/api/v1/Arrays"
tags: ["Arrays"]
---

# Create a new static array with the provided values.

`POST /api/v1/Arrays`

## Request

- Base URL: `https://api.slopesoftware.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.slopesoftware.com/api/v1/Arrays`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/slopesoftware/apis/akur8-life-api/docs/api/v1/Arrays/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint creates a new array on the specified model.
            
Only the "Static" array source is supported at this time. Providing any other array source returns an error.
            
The array name must be unique within the model and can be up to 128 characters.
All values must be unique and non-empty. Each value can be up to 200 characters.
The values are saved in the order they are provided.
            
This endpoint cannot be used with production or library models.

## Request body

- CreateStaticArrayRequestV1
  - `modelId` integer: The ID of the model to create the array on.
  - `name` string, required: The name of the array. Maximum 128 characters. Must be unique within the model.
  - `arraySource` string, required: The array source. Only "Static" is supported at this time.
  - `values` ArrayValueItemV1[], required: The list of values for the static array, in the order they should be saved.
    - `value` string, required: The value for the array item. Maximum 200 characters.

## Response `200`

OK

- CreateStaticArrayResponseV1
  - `arrayId` integer: The ID of the newly created array
  - `name` string, nullable: The name of the newly created array
  - `values` string[], nullable: The list of array values in order

## Other responses

- `201`: Created
- `400`: Invalid request parameters or the model does not exist
- `401`: Unauthorized
- `403`: The user cannot edit the model, or the model is a library model
- `404`: Not Found
- `409`: An array already exists on the model with the provided name
- `429`: Too Many Requests

---

[API](https://skmtc.dev/slopesoftware/apis/akur8-life-api.md) - [All operations](https://skmtc.dev/slopesoftware/apis/akur8-life-api/llms.txt) - [OpenAPI document](https://skmtc.dev/slopesoftware/apis/akur8-life-api/revisions/9771b2c79880?raw)
