API

Organizations

Orgs, membership and settings.

GET
/organizations

Response Body

application/json

application/json

curl -X GET "https://example.com/organizations"
{  "orgs": [    {      "id": "string",      "name": "string",      "slug": "string",      "createdByUserId": "string",      "createdAt": 0,      "namePending": true    }  ]}
POST
/organizations

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/organizations" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string",  "name": "string",  "slug": "string",  "createdByUserId": "string",  "createdAt": 0,  "namePending": true}
GET
/organizations/{orgId}

Path Parameters

orgId*string
Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://example.com/organizations/string"
{  "id": "string",  "name": "string",  "slug": "string",  "createdByUserId": "string",  "createdAt": 0,  "namePending": true}
PATCH
/organizations/{orgId}

Path Parameters

orgId*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/organizations/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "slug": "string",  "createdByUserId": "string",  "createdAt": 0,  "namePending": true}
GET
/organizations/slug-preview

Query Parameters

name*string
Length1 <= length <= 120

Response Body

application/json

application/json

curl -X GET "https://example.com/organizations/slug-preview?name=string"
{  "slug": "string"}
GET
/organizations/{orgId}/memberships

Path Parameters

orgId*string
Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://example.com/organizations/string/memberships"
{  "memberships": [    {      "orgId": "string",      "userId": "string",      "role": "string",      "createdAt": 0    }  ]}
POST
/organizations/{orgId}/memberships

Path Parameters

orgId*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/organizations/string/memberships" \  -H "Content-Type: application/json" \  -d '{    "userId": "string",    "role": "string"  }'
{  "orgId": "string",  "userId": "string",  "role": "string",  "createdAt": 0}

How is this page?