Company definition change
write_company_definitionChanges one file of this organization's definitions, live for every member's agent at once. action create writes a new file from content. edit applies edits, each an exact find and its replace, with count when find occurs more than once. move gives the file the path in to. remove deletes it. Files are Markdown, YAML or SQL, and OWNERS, which says who may change which path. Returns the change, the file's owners, and its problems with other files. A path OWNERS gives to someone else is refused with their name. Any member may write under proposed/, which holds proposals an owner accepts by moving them out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | the new path, for move | |
| path | Yes | the file's path, like metrics/net-revenue.md | |
| edits | No | for edit, replacements matched against the file as it is now | |
| action | Yes | create, edit, move or remove | |
| content | No | the whole file, for create | |
| if_match | No | for edit, move or remove, the etag a read returned: refused when the file changed since, and needed to accept a proposal | |
| organization | No | an organization id, for a person in several organizations |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| action | Yes | ||
| owners | Yes | ||
| problems | Yes | ||
| change_id | Yes |