ReferenceAPI
Grant a principal that has signed in at least once a role on the project, or change the one it has, reaching every computer and database in the project with no workspace role needed.
curl -X PUT "https://api.nevia.cloud/v1/projects/01ck8y1dm5qqnf88mytnh4m0h4g/access/01d4cnjmn4fbb1r5btxb5mypv62" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"role": "viewer"
}'{
"access": {
"project": "01ck8y1dm5qqnf88mytnh4m0h4g",
"principal": {
"id": "01d4cnjmn4fbb1r5btxb5mypv62",
"auth": "email",
"email": "string",
"name": "string"
},
"role": "editor",
"created_at": "2026-09-10T12:34:56Z",
"updated_at": "2026-09-10T12:34:56Z"
},
"operations": [
"01d4cnjm89yk0r3xtv80dy0x7by"
]
}Authorization
bearerAuth Authorization
Bearer <token>
Send the token in the Authorization: Bearer <token> header. See Authenticate.
In: header
Path Parameters
prj*
string
Project id: 27 lowercase letters and digits.
Match
^[A-Za-z0-9_-]{1,64}$principal*
string
Principal id: 27 lowercase letters and digits.
Match
^[A-Za-z0-9_-]{1,64}$Request Body
application/json
Response
application/jsonThe grant.