POST
/
auth
/
organizations
curl --request POST \
  --url https://api.pxyz.dev/api/v0/auth/organizations \
  --header 'Content-Type: application/json' \
  --data '{
  "tenantId": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "imageUri": "",
  "privateMeta": "<any>",
  "publicMeta": "<any>"
}'
{
  "id": "<string>",
  "creatorId": "<string>",
  "tenantId": "<string>",
  "slug": "<string>",
  "name": "<string>",
  "imageUri": "<string>",
  "privateMeta": "<any>",
  "publicMeta": "<any>",
  "_count": {
    "members": 123
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json
tenantId
string
required
name
string
required
slug
string
imageUri
Available options:
privateMeta
any
publicMeta
any

Response

200
application/json
Successful response
id
string
required
slug
string
required
name
string
required
_count
object
required
createdAt
string
required
updatedAt
string
required
creatorId
string | null
tenantId
string | null
imageUri
string | null
privateMeta
any
publicMeta
any