Create Company
Create a company and make the caller its `owner`. `task_prefix` (default `SAT`, 1-8 characters, uppercase letters and digits, starting with a letter) forms task keys such as `SAT-12` and cannot be changed later. `monthly_budget_cents` is in integer cents; `0` means no limit. Records a `created` audit event.
Create a company and make the caller its owner.
task_prefix (default SAT, 1-8 characters, uppercase letters and digits,
starting with a letter) forms task keys such as SAT-12 and cannot be changed
later. monthly_budget_cents is in integer cents; 0 means no limit. Records a
created audit event.
HTTPBearerAuthorizationBearer <token>application/json- body
mission?string|nullmonthly_budget_cents?Monthly Budget Cents0 <= value0name*Name1 <= length <= 120task_prefix?Task Prefix^[A-Z][A-Z0-9]*$1 <= length <= 8"SAT"Successful Response
application/json- response
created_at*|nullid*Iduuidmission*string|nullmonthly_budget_cents*Monthly Budget Centsname*Namerole?string|nulltask_prefix*Task Prefixcurl -X POST "https://example.com/api/companies" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "mission": "string", "monthly_budget_cents": 0, "name": "string", "role": "string", "task_prefix": "string"}List Companies GET
List the companies the caller belongs to, oldest first. Each item carries the caller's membership `role` (`owner`, `admin` or `member`). Companies the caller is not a member of are never returned.
Get Company GET
Get one company, including the caller's membership `role`. Members only: a company the caller does not belong to answers 404 `NOT_FOUND`, so company ids cannot be probed.