Skip to content

Assign Resource to Unit

POST
/resources/{resourceId}/units/{unitId}

Assigns a Resource to a Unit, making it subject to all the Unit’s Action obligations whose targetResourceType matches the Resource’s type. Both must belong to the same Space (same-space constraint). The Space must be active.

resourceId
required
string
unitId
required
string
X-Space-Id
required
string format: uuid

UUID of the target Space (tenant boundary). Validated against user access.

Unauthorized — missing or invalid JWT

Forbidden — insufficient permissions

Resource not found

Conflict — resource already exists or constraint violated