Create resource
Creates a resource in the project.
On success the API returns 201 Created with the resource body and a Location header.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string (uuid) | Yes | The project to create the resource in. |
Headers
| Name | Required | Description |
|---|---|---|
Idempotency-Key | No | Same key + same body replays the original 201; same key + different body is 409 idempotency_conflict. |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Resource name. |
type | string | No | Human / Virtual. Defaults to Virtual. |
costType | string | No | Hour / Use / Flat. Defaults to Flat. |
costValue | number | No | Cost amount, interpreted per costType. |
initials | string | No | Short label shown on chips. |
color | string | No | #RRGGBB. |