Join device to workspace
Last updated
Was this helpful?
Last updated
Was this helpful?
Joins a device to a workspace. The device must be before it could be joined to a workspace.
POST /api/v2/apps/{owner}/{app}/workspaces/{wsid}/commands/sys.JoinDevice
Authorization
Bearer {PrincipalToken}
Content-Type
application/json
Query
owner
string
name of a user who owns the application
app
string
name of an application
wsid
int64
the ID of workspace
Headers
PrincipalToken
string
Body
profile-wsid
int64
roles
string
comma-separated roles to assign to device within the workspace
200
OK
Device joined
400
Bad Request
401
Unauthorized
403
Forbidden
429
Too Many Requests
500
Internal Server Error
503
Service Unavailable
By default granted to sys.WorkspaceOwner
pkg/sys
~cmp.sysJoinDevice~
âť“ command which joins a device to a workspace
Roles varchar(1024) NOT NULL
ProfileWSID int64 NOT NULL
Grant execution sys.JoinDevice
to sys.WorkspaceOwner
role
pkg/sys/it
~it.TestJoinDevice~
âť“: integration test for joining device to workspace
Token returned by
profile WSID of the