> For the complete documentation index, see [llms.txt](https://help-api.meltingspot.io/llms.txt)

# Link groups to a roleplay: their members are assigned to it

> POST /v1/roleplays/{roleplayId}/groups~bulkAdd
> 
> Link groups to a roleplay: their members are assigned to it, off the request path



## Servers
- https://openapi.meltingspot.io: https://openapi.meltingspot.io



## Parameters

### Path parameters

- **roleplayId** (string)
  The id of the roleplay



### Body: application/json (object)

- **groupIds** (array[string])
  The ids of the groups to link

- **withEmailNotification** (boolean)
  To send an email notification to each invited member. Disabled by default.

- **withInAppNotification** (boolean)
  To send an in-app notification to each invited member. Enabled by default.



## Responses
### 200
Groups linked successfully

#### Body: application/json (object)
- **addedGroupIds** (array[string])
  The ids of the groups linked to the roleplay after the call, newly or already linked.

- **failedGroupIds** (array[string])
  The ids of the groups not found in the Spot.


### 400
Malformed payload

### 401
Unauthorized

### 403
Forbidden, or roleplay disabled for this Spot

### 404
Roleplay not found


[Powered by Bump.sh](https://bump.sh)
