Rensei docs

Grant a configured HarnessConnection to one project.

Binds a live connection to a live project in the authenticated organization. The project is resolved by id or slug WITHIN that organization, so a cross-tenant project reference 404s. Re-submitting an identical grant id and tuple is idempotent; re-using the id for a different tuple is a 409. Requires org-admin (human) or an unfenced credential holding `harness:write`/`*` (machine).

POST
/api/cli/harness/connections/{connectionId}/grants

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Path Parameters

connectionId*string
Length1 <= length <= 256

Request Body

application/json
  1. body
grantId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
project*string
Length1 <= length <= 256
isDefault?boolean

Response Body

The durable project grant.

application/json
  1. response
created*boolean
grantId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
projectId*string
connectionId*string
Example Request
curl -X POST 'https://app.rensei.ai/api/cli/harness/connections/string/grants' \  -H 'Content-Type: application/json' \  -d '{  "grantId": "4eda52b3-a1b8-4aae-b545-9c8c3c9c7709",  "project": "string"}'
Example Response
{  "created": true,  "grantId": "4eda52b3-a1b8-4aae-b545-9c8c3c9c7709",  "projectId": "string",  "connectionId": "string"}