Valyourise Logo

ValYouRise

DevelopmentApi

Create organization

Creates a new organization, provisions its backing Appwrite team, and assigns the current user as the initial organization admin.

POST
/api/orgs

Creates a new organization, provisions its backing Appwrite team, and assigns the current user as the initial organization admin.

PAT<token>

Personal Access Token

In: header

Request Body

application/json

name*string
Length2 <= length <= 128
slug?string
Match^[a-z0-9-]+$
Length2 <= length <= 64
industry?string|null
website?string|null
customerNames?array<string>
revenueAmount?number|null
revenueCurrency?string|null
revenuePeriod?string|null
employeeCountMin?integer|null
employeeCountMax?integer|null
addressStreet?string|null
addressPostalCode?string|null
addressCity?string|null
addressCountry?string|null
aiEnrichmentOptIn?boolean
defaultPrivacyMode?string
Value in"option_1" | "option_2"
[key: string]?never

Response Body

application/json

curl -X POST "https://loading/api/orgs" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "$id": "string",
  "name": "string",
  "slug": "string",
  "teamId": "string",
  "createdByUserId": "string",
  "defaultPrivacyMode": "option_1",
  "industry": "string",
  "website": "string",
  "customerNames": [
    "string"
  ],
  "revenueAmount": 0,
  "revenueCurrency": "string",
  "revenuePeriod": "year",
  "employeeCountMin": 0,
  "employeeCountMax": 0,
  "addressStreet": "string",
  "addressPostalCode": "string",
  "addressCity": "string",
  "addressCountry": "string",
  "aiEnrichmentOptIn": true,
  "lastEnrichedAt": "string",
  "lastEnrichmentSource": "manual",
  "logoFileId": "string",
  "archivedAt": "string"
}
Empty
Empty