---
title: "Grant a shared computer to a team"
method: POST
path: "/v1/org/computers/shared/{computerId}/team-grants"
tags: ["Devices"]
---

# Grant a shared computer to a team

`POST /v1/org/computers/shared/{computerId}/team-grants`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/computers/shared/{computerId}/team-grants`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Grants one shared cloud computer to one team of the organization. Everyone who is in the team passes the access check for as long as they are in it: someone who joins later is covered, and someone who leaves the team or the organization is not. Only a shared computer that belongs to the organization can be granted: a member's own computer is refused with 409 not_shared. Granting twice answers exists. Requires Shared computer grants and computers.create with a recent sign-in.

## Path parameters

- `computerId` string, typeid, required

## Request body

- OrganizationSharedComputerTeamGrantRequest
  - `teamId` string, typeid, required: Den TypeID with 'tem_' prefix and a 26-character base32 suffix.

## Response `200`

The team grant, new or already there.

- OrganizationSharedComputerTeamGrantResponse
  - `result` 'granted' | 'exists', required
  - `computer` OrganizationSharedComputer, required
    - `id` string, required
    - `name` string, required
    - `status` 'provisioning' | 'healthy' | 'failed' | 'stopped', required
    - `grants` integer, required
    - `teamGrants` integer, required
    - `createdAt` string, date-time, required
    - `size` 'small' | 'medium' | 'large', nullable
  - `grant` OrganizationSharedComputerTeamGrant, required
    - `teamId` string, required
    - `name` string, required
    - `members` integer, required
    - `grantedAt` string, date-time, required
    - `grantedByMemberId` string, required

## Other responses

- `400`: Invalid request.
- `401`: Sign in required.
- `403`: Set up cloud computers permission and a recent sign-in required.
- `404`: Shared computer grants is off, or the computer or team is not in this organization.
- `409`: This is a member's own computer, which is never granted.

## Changes

- **2026-12-01** `85dda9c15f57`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/computers/shared/:computerId/team-grants/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/84fb0f99fb95?raw)
