---
title: "Create a project type"
method: POST
path: "/project-types"
tags: ["Project Types"]
---

# Create a project type

`POST /project-types`

## Request

- Base URL: `https://www.ruddr.io/api/workspace`
- URL: `https://www.ruddr.io/api/workspace/project-types`
- Auth: HTTP bearer

## Request body

- object
  - `name` string, required: The name of the project type. Max 255 characters.
  - `isActive` boolean: Whether the project type is active. Defaults to `true` if not provided.
  - `invoiceItemId` string, required: The unique identifier of the invoice item associated with this project type.

## Response `200`

200

- ProjectType
  - `id` string: The unique identifier for the object.
  - `name` string: The name of the project type.
  - `isActive` boolean: Whether the project type is active.
  - `createdAt` string, date-time: The timestamp when the object was created.
  - `invoiceItem` object: The invoice item associated with this project type.
    - `id` string: The unique identifier for the object.
    - `name` string: The name of the invoice item.

## Other responses

- `400`: 400
- `409`: 409

---

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