---
title: "Create a new workflow state for the brand's library (appended as the last column)."
method: POST
path: "/v2/scheduler/library/states"
tags: ["Library Posts State Api Service"]
---

# Create a new workflow state for the brand's library (appended as the last column).

`POST /v2/scheduler/library/states`

## Request

- Base URL: `https://app.metricool.com/api`
- URL: `https://app.metricool.com/api/v2/scheduler/library/states`
- Auth: none declared

## Request body

- SaveLibraryPostStateRequest: Body to create or modify a library workflow state.
  - `name` string, required: Display name of the state (1-20 characters).
  - `color` string, required: Color of the state in #RRGGBB hex format.

## Response `201`

State created.

## Other responses

- `400`: Invalid name or color.
- `403`: User not authorized on the brand.
- `409`: Name already in use, or the brand reached the max number of states.

---

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