The examples on this page show common ways to use the APC API — they’re not a complete API reference. For the full, interactive API documentation for your installation, including every available query, mutation, and type, go to
https://houston.<your-base-domain>/v1, and click on the Docs tab. See Develop and test APC API queries for more on using the built-in GraphQL explorer.workspaceUuid, which you can retrieve by running astro workspace list or using the workspaces query.
The role value must be one of WORKSPACE_ADMIN, WORKSPACE_EDITOR, or WORKSPACE_VIEWER.
Add a user to a Workspace
Use theworkspaceAddUser mutation to add an existing user to a Workspace with a specified role.
Update a user’s Workspace role
Use theworkspaceUpsertUserRole mutation to change the role of a user who already belongs to a Workspace.
Remove a user from a Workspace
Use theworkspaceRemoveUser mutation to remove a user from a Workspace. Provide the workspaceUuid and the userUuid of the user to remove. To retrieve the userUuid, use the workspaceUsers query or a users query.