Skip to content

create_project

Create a Project · write tool

Writes a new Project’s project.yaml into folder (relative to the Workspace root; <id>/ by default). Refused for an id already in use, and for a folder inside another Project or holding one.

Field Type Required Notes
id string yes The new Project’s id.
name string yes
owner string yes The owning Team, by bare id.
folder string The Project’s folder, relative to the Workspace root.
dry_run boolean Check the write and return its diff without changing any file. Default: false.
Field Type Required Notes
action "created" or "updated" or "removed" or "unchanged" yes
id string or null yes The qualified id written (bare for a Team, Environment or Project); null for a Deployment, or a Relationship without one.
from string
to string
service string
environment string
target string
files list of string yes
diff string yes
dryRun boolean yes

Called over the Kitchen sink example Workspace.

Arguments:

{
"id": "billing",
"name": "Billing",
"owner": "core",
"dry_run": true
}

Result:

{
"action": "created",
"id": "billing",
"files": [
"examples/kitchen-sink/archidocs/billing/project.yaml"
],
"dryRun": true,
"diff": "(the patch below)"
}

The diff, as a patch:

--- /dev/null
+++ b/examples/kitchen-sink/archidocs/billing/project.yaml
@@ -0,0 +1,3 @@
+id: billing
+name: Billing
+owner: core

A call that fails returns isError: true, with {code, message, suggestions?} as structuredContent. This tool returns:

  • invalid_input when the arguments don’t fit the input above.
  • validation_failed when the write would add a check error. Nothing is written.
  • read_only when the server reads a published Workspace Bundle, or serves HTTP without --allow-writes.
  • source_unavailable when the server can’t read the Workspace.

Error codes says what to do about each.

Documents Archidocs v1.4.0, the latest release.