Devices

Grant a shared computer to a member or an agent

Changed on

Grants one shared cloud computer to one current member (memberId) or one active agent (agentId) of the organization. Only a shared computer that belongs to the organization can be granted: a member's own computer is refused with 409 not_shared. A person who has not accepted their invitation is refused with 409 member_not_joined. Granting twice answers exists. A team is granted with the team-grants route. Requires Shared computer grants and computers.create with a recent sign-in.

post/v1/org/computers/shared/{computerId}/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

union required
object required
OR
object required

Response

The grant, new or already there.

OrganizationSharedComputerGrantResponse required
result, 'granted' | 'exists' required
computer, OrganizationSharedComputer required
grant, OrganizationSharedComputerGrant required

Changes