Update workspace setup
Record the viewer's own pass through the wizard: steps skipped, finished or not, and what brings them to Veriom. It is personal: it moves this person's wizard on, so every member may write it. A skipped step stays on the to-do list. One answer also changes a workspace setting: an Admin who ships a lot of AI-written code (``ai_code``) turns pull request audits on for the default trigger policies nobody has edited, as the trigger policy endpoint would, with the same audit event. For anyone else it stays a suggestion.
Record the viewer's own pass through the wizard: steps skipped, finished or not, and what brings them to Veriom.
It is personal: it moves this person's wizard on, so every member may write it. A
skipped step stays on the to-do list. One answer also changes a workspace setting:
an Admin who ships a lot of AI-written code (ai_code) turns pull request audits on
for the default trigger policies nobody has edited, as the trigger policy endpoint
would, with the same audit event. For anyone else it stays a suggestion.
workspaceTokenAuthorizationBearer <vat_<opaque-token>>Expiring, hashed workspace token with explicit scopes.
workspace_id*Workspace Iduuidapplication/json- body
finished?|True when the viewer finishes the wizard; false reopens it.
intent?|What brings the viewer to Veriom.
skipped_steps?array<>|Every step the viewer has skipped; replaces the stored list.
Successful Response
application/json- response
complete*Completecontext_inference?|The latest pass suggesting architecture context, if any.
done_count*Done Count0 <= valuefinished_at?|When the viewer finished or left the setup wizard.
intent*What brings the viewer to Veriom, asked as the wizard opens.
skipped_steps*array<>step_count*Step Count0 <= valuesteps*array<>structural_check_count?Structural Check CountHow many structural checks the invariant pack holds.
0 <= value0todos*array<>curl -X PATCH 'https://api.veriom.ai/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/setup' \ -H 'Content-Type: application/json' \ -d '{}'{ "complete": true, "context_inference": { "completed_at": "2019-08-24T14:15:22Z", "error": "allowance_exhausted", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "requested_at": "2019-08-24T14:15:22Z", "stage": "string", "stale": true, "status": "queued", "suggestion_count": 0, "trigger": "setup" }, "done_count": 0, "finished_at": "2019-08-24T14:15:22Z", "intent": { "answered_at": "2019-08-24T14:15:22Z", "leads": [ { "id": "pull_request_audits", "reason": "ai_code" } ], "pull_request_audits": "on", "reasons": [ "ai_code" ], "referral": "search", "skipped": true, "todo_focus": [ "string" ] }, "skipped_steps": [ "code" ], "step_count": 0, "steps": [ { "can_act": true, "checks_improved": 0, "checks_required": 0, "count": 0, "id": "code", "ledger": "string", "minimum_role": "owner", "skipped": true, "sources": [ { "detail": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "repository", "label": "string", "state": "connected" } ], "status": "done", "total": 0, "waiting_for": "code" } ], "structural_check_count": 0, "todos": [ { "connector_id": "9389ba6f-3696-4571-84d4-34d588c4b109", "detail": "string", "field_key": "string", "id": "string", "in_progress": false, "kind": "source_attention", "label": "string", "ledger": "string", "next_action": "string", "question_id": "827e810a-4b1a-40f6-8bc2-c3dd6fcedc25", "skipped": false, "source": "string", "step": "code", "suggestion": { "by_model": true, "confidence": 0, "revision_id": "f8f7f022-982b-4bef-ba7d-4bb808fdbe2a", "values": [ "string" ] } } ]}