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.- Workspace Admin privileges
- A Deployment ID. To retrieve this value, run
astro deployment listor request theidvalue in theworkspaceDeploymentquery. - The ID of the user to add. To retrieve this, request the
idvalue in ausersquery or runastro workspace user list. - The role to add the user as. Can be
DEPLOYMENT_ADMIN,DEPLOYMENT_EDITOR, orDEPLOYMENT_VIEWER.