Create an organization
Authentication required
These endpoints require a valid session or PAT with the appropriate ORGANIZATION_* scope.
POST /api/organization
{
"success": true,
"slug": "new-org-slug"
}REQUEST BODY: application/json
Name
key:name
type:string
minLength:2, maxLength:64Slug
key:slug
type:string
Must be URL-safe. minLength:2, maxLength:64Description
key:description
type:string
minLength:5, maxLength:256
Update an organization
PATCH /api/organization/{ID}
REQUEST BODY: multipart/form-data
Name
key:name
type:string
minLength:2, maxLength:64Slug
key:slug
type:string
Must be URL-safe.Description
key:description
type:string
maxLength:256Icon
key:icon
type:File|string|null
Pass a file to update the icon. Pass any string to keep the current one. Passnullto remove it.
Delete an organization
DELETE /api/organization/{ID}
Permanently deletes the organization. All projects owned by it must be removed first.
{
"success": true,
"message": "Organization deleted successfully"
}Add a project to an organization
POST /api/organization/{ID}/projects
REQUEST BODY: application/json
- Project ID
key:projectId
type:string
{
"success": true,
"message": "Project added to organization"
}Remove a project from an organization
DELETE /api/organization/{orgId}/project/{projectId}
{
"success": true,
"message": "Project removed from organization"
}