Skip to main content
PUT
Replace who holds the program’s roles

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

id
string
required

Your organization’s ID for the program, chosen at its first upload: lowercase letters, digits, dots, underscores and hyphens. A rater’s program ID is its rater ID.

Required string length: 1 - 128
Pattern: ^[a-z0-9][a-z0-9._-]{0,127}$

Body

application/json

Each role of the program and its holders on this program. A role the program declares and the body leaves out has none bound on this program after.

roles
object[]
required
Maximum array length: 1000

Response

The program’s roles, as now held.

release
integer
required

The release whose contract declares the roles: the latest.

roles
object[]
required

Each role the release declares, in the contract’s order.