---
title: "Choose what people who join become"
method: POST
path: "/v1/admin/sandbox-orgs/{sandboxId}/join-role"
tags: ["Admin"]
---

# Choose what people who join become

`POST /v1/admin/sandbox-orgs/{sandboxId}/join-role`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/admin/sandbox-orgs/{sandboxId}/join-role`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Sets whether people who join with the link from now on become members or admins. People who already joined keep their role; change it on the organization's Members page. Platform administrators only.

## Path parameters

- `sandboxId` string, required

## Request body

- object
  - `joinRole` 'member' | 'admin', required

## Response `200`

Updated sandbox.

- object
  - `sandbox` object, required
    - `id` string, required
    - `organizationId` string, required
    - `name` string, required
    - `state` 'open' | 'expired' | 'closed', required
    - `joinLink` string, uri, required
    - `memberCount` integer, required
    - `memberLimit` integer, required
    - `connectorBaseUrl` string, nullable, required
    - `connectorCount` integer, required
    - `modelProviderCount` integer
    - `allowedEmailDomains` string[], required
    - `joinRole` 'member' | 'admin', required
    - `expiresAt` string, date-time, required
    - `closedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required

## Other responses

- `400`: Invalid sandbox or request.
- `401`: Sign in required.
- `403`: Platform administrator required.
- `404`: Sandbox not found, or sandbox organizations are turned off.

## Changes

- **2026-10-24** `8170cf4a92ca`: 1 info
  - added the optional property `sandbox/modelProviderCount` to the response with the `200` status
- **2026-10-24** `96985dbeccd1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/admin/sandbox-orgs/:sandboxId/join-role/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/8170cf4a92ca?raw)
