Nurama Developers
Bots

Add the bot to a project or replace its project roles

Upserts the bot's membership on the project. If a membership already exists its role list is replaced. `projectOwner` and `reviewerAdmin` cannot be granted to bots.

PUT
/workspaces/{workspaceId}/bots/{botId}/memberships/project/{projectId}

Upserts the bot's membership on the project. If a membership already exists its role list is replaced. projectOwner and reviewerAdmin cannot be granted to bots.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

workspaceId*string
Formatuuid
botId*string
Formatuuid
projectId*string

Must belong to workspaceId.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/memberships/project/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "roles": [      "creator"    ]  }'
{  "membershipId": "8072cc74-4782-4f2c-827c-699c48ce2092",  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",  "projectName": "string",  "roles": [    "creator"  ]}