createOrg
Create an org and answer it. The body is {"name": name, "slug": slug}. The org's slug is its address in Forge, such as in a URL, and a rename keeps it: lowercase ASCII letters and digits in words joined by single hyphens, at most 63 characters, since it is also the org's subdomain. Without "slug", it comes from the name, so "Acme Builders" gives acme-builders, and a name with no ASCII letter or digit is refused with OrgNameNeedsLetterOrDigit. A slug another org holds is refused with OrgSlugTaken, and one Forge keeps for its own addresses, such as api or www or any slug of one or two characters, with OrgSlugReserved.
POST
/orgsRequest body JSON required
Returns
201
Org
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
413
RequestBodyTooLarge
422
OrgSlugReserved | OrgNameNeedsLetterOrDigit
JSON
One of the following:
- OrgSlugReservedEncoded
- OrgNameNeedsLetterOrDigitEncoded
500
ControlPlaneFailure | OrgFailure
JSON
One of the following:
- ControlPlaneFailureEncoded
- OrgFailureEncoded
503
SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded