File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This document describes the full end-to-end workflow for the `vm.create` task in
99A user (tenant or admin) sends a request to create a new virtual machine:
1010
1111``` bash
12- POST /api/v1/admin/tasks
12+ POST /api/v1/{scope: admin| tenant} /tasks
1313Content-Type: application/json
1414Authorization: Bearer < JWT>
1515
@@ -37,7 +37,7 @@ Authorization: Bearer <JWT>
3737# # 2. API Gateway → Controller
3838
3939# ## Middleware & context setup
40- - ** accessMode middleware** : sets ` req.isAdmin = true` .
40+ - ** accessMode middleware** : sets ` req.isAdmin = true| false ` .
4141- ** Envelope validation** : ensures presence of ` kind` , ` refId` , and ` target` .
4242- ** Schema pre-validation** : uses ` src/lib/schemas/task.js` (per action, e.g. ` vm.create` ).
4343- ** Tenant context resolution** :
You can’t perform that action at this time.
0 commit comments