Rensei docs

Replace an installed model's org grant: auth modes, efforts and project scope (org admin).

Replace an installed model's org grant: auth modes, efforts and project scope (org admin). - Rensei REST API operation reference.

PUT
/api/org/{orgId}/model-library/entries/{entryId}/grant

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

orgId*string

Organization id (must match the authenticated org).

entryId*string

Model library entry id.

Length1 <= length <= 200

Request Body

application/json
  1. body
permittedAuthModes*array<>

Auth modes the org permits; each must be offered by a live serving, and metered needs the org entitlement.

Items1 <= items <= 4
permittedEfforts*array<>|

Effort levels the org permits; null means all, including future tiers. Each must be offered by a live serving.

Items1 <= items <= 5
projectScope*string

All projects (including future ones), or only the included ones.

Value in"all""selected"
includedProjectIds?array<>

Exactly the included projects, written with the grant. Only with selected scope; required when switching from all.

Itemsitems <= 200

Response Body

The stored grant and the entry revision.

application/json
  1. response
grant*
Example Request
curl -X PUT 'https://app.rensei.ai/api/org/string/model-library/entries/string/grant' \  -H 'Content-Type: application/json' \  -d '{  "permittedAuthModes": [    "byok"  ],  "permittedEfforts": [    "low"  ],  "projectScope": "all"}'
Example Response
{  "grant": {    "permittedAuthModes": [      "byok"    ],    "permittedEfforts": [      "string"    ],    "projectScope": "all",    "revision": -9007199254740991  }}