Machines

Create project machine grant

Changed on

Lets a project's agent configs use one BYO machine by name and returns the grant with the machine's record. Pooled machines can't be granted this way and return 404. Idempotency keys are retained only while the grant exists. Retrying creation after the grant is revoked or deleted can recreate it and restore access, including through automatic SDK retries. A replay compares the request with the current grant.

post/orgs/{orgID}/projects/{projectID}/machine-grants

Request

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

Path parameters

orgID, string required

Organization ID (org_...).

projectID, string required

Project ID (proj_...).

Headers

Idempotency-Key, string

Idempotency key for replay-safe mutating requests.

Request body

CreateProjectMachineGrantRequest required
machine_id, string required

Machine ID (mch_...).

description, string

Free-form note stored with the grant.

metadata, Metadata

Arbitrary key-value labels stored with the resource.

Response

Existing project machine grant returned.

CreateProjectMachineGrantResponse required
grant, ProjectMachineGrant required
machine, Machine 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