Devices

Grant a shared computer to a team

Changed on

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.

post/v1/org/computers/shared/{computerId}/team-grants

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

computerId, string typeid required

Den TypeID with 'wrk_' prefix and a 26-character base32 suffix.

Request body

OrganizationSharedComputerTeamGrantRequest required
teamId, string typeid required

Den TypeID with 'tem_' prefix and a 26-character base32 suffix.

Response

The team grant, new or already there.

OrganizationSharedComputerTeamGrantResponse required
result, 'granted' | 'exists' required
computer, OrganizationSharedComputer required
grant, OrganizationSharedComputerTeamGrant required

Changes