Users and API Keys

Set an org API key's role on a project

Changed on

Creates or updates the key's explicit role grant on the project.

put/orgs/{orgID}/api-keys/{keyID}/projects/{projectID}

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf

Path parameters

orgID, string required

Organization ID (org_...).

keyID, string required

Org API key ID (oak_...).

projectID, string required

Project ID (proj_...).

Request body

SetProjectMembershipRequest required
role, string required

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

Response

Project role grant set.

ProjectMembershipGrant required
project_id, string required

Project ID (proj_...).

project_name, string required

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

role, string required

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

created_at, string date-time required

Changes

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    156 more changes in this revision