---
title: "Create company attribute"
method: POST
path: "/v2/company_attributes"
tags: ["Company Attributes"]
---

# Create company attribute

`POST /v2/company_attributes`

Creates a new company attribute with specified type, value_type, and attribute_values

## Request body

- object
  - `type` string, required
  - `value_type` 'any' | 'string' | 'number' | 'date' | 'boolean', required
  - `attribute_values` string[], required

## Response `201`

Created

- CompanyAttribute
  - `id` integer
  - `type` string
  - `value_type` 'any' | 'string' | 'number' | 'date' | 'boolean' — Defines the type of value this attribute can store. It can be: `any`, `string`, `number`, `date`, `boolean`
  - `attribute_values` CompanyAttributeValue[]
    - `id` integer
    - `attribute_type_id` integer
    - `value` string
    - `value_type` 'any' | 'string' | 'number' | 'date' | 'boolean' — Defines the type of value this attribute can store. It can be: `any`, `string`, `number`, `date`, `boolean`
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/fountain/apis/hire-public-api.md) · [All operations](https://skmtc.net/fountain/apis/hire-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fountain/hire-public-api/revisions/5f406c0e9462/schema)
