Assign a team to a workspace
Assigns an installed team to a registered workspace so it can run there. Name the
workspace by workspace_dir or workspace_id (the id wins when both are sent) and the
team by scope + slug. A workspace can have several teams; Start a run then needs
team_ref to pick one.
The team’s manifest is checked first: every sub-team it calls (type: team or map
phases) must be installed too, and the tree of teams may not loop or grow too deep or large.
The daemon’s current settings are captured with the assignment, and runs of this team
in this workspace use that snapshot. Assigning a team that is already assigned succeeds
and refreshes the snapshot.
From the CLI: cliq assemble @acme/code-review.
No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon’s realm; this only works once the daemon is connected to CliqHub. See Authentication.
Authorizations
Not needed from the same machine. From another host: a dispatch JWT CliqHub signed for this daemon, or a cliq_tok_… personal token whose user is in the daemon's realm.
Body
Team scope
1Team slug
1Absolute workspace path
1Catalog workspace id
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Specific version to assemble
1When multiple versions exist, pick the latest