Skip to main content
PUT
Set an org API key's role on a project

Authorizations

__Host-omnara_session
string
cookie
required

Browser session cookie. HTTPS deployments use __Host-omnara_session; local HTTP development uses omnara_session.

X-Omnara-Csrf
string
header
required

CSRF token header required for browser-session mutations. The value must match the session's CSRF cookie.

Path Parameters

orgID
string
required
Pattern: ^org_[a-z2-7]{26}$
keyID
string
required
Pattern: ^oak_[a-z2-7]{26}$
projectID
string
required
Pattern: ^proj_[a-z2-7]{26}$

Body

application/json
role
string
required

The member's project role (admin, developer, operator, or viewer).

Response

Project role grant set.

project_id
string
required
Pattern: ^proj_[a-z2-7]{26}$
project_name
string
required

Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.

Required string length: 1 - 64
role
string
required

The member's role on the project (admin, developer, operator, or viewer).

created_at
string<date-time>
required