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

NameTypeRequiredDescription
projectIdstring (uuid)YesThe project to create the resource in.

Headers

NameRequiredDescription
Idempotency-KeyNoSame key + same body replays the original 201; same key + different body is 409 idempotency_conflict.

Request body

NameTypeRequiredDescription
namestringYesResource name.
typestringNoHuman / Virtual. Defaults to Virtual.
costTypestringNoHour / Use / Flat. Defaults to Flat.
costValuenumberNoCost amount, interpreted per costType.
initialsstringNoShort label shown on chips.
colorstringNo#RRGGBB.