For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Organizations

List all organizations

get
Query parameters
offsetinteger · int32Optional

The offset into queried items to return

limitinteger · int32 · max: 100Optional

How many items to return at one time (max 100)

Responses
200

A paged array of organizations

application/json
totalResultsintegerRequired
offsetintegerRequired
limitintegerRequired
get/v1/identity/organizations
GET /v1/identity/organizations HTTP/1.1
Host: localhost:3050
Accept: */*
{
  "organizations": [
    {
      "id": "text",
      "name": "text",
      "description": "text",
      "createdBy": {
        "userId": "text",
        "type": "user"
      },
      "createdAt": "text"
    }
  ],
  "totalResults": 1,
  "offset": 1,
  "limit": 1
}

Create an organisation

post
Body
namestringRequired
Responses
200

Expected response to a valid request

application/json
idstringRequired
namestringRequired
descriptionstringOptional
createdByone ofRequired
or
createdAtstringOptional
post/v1/identity/organizations
POST /v1/identity/organizations HTTP/1.1
Host: localhost:3050
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "name": "text"
}
{
  "id": "text",
  "name": "text",
  "description": "text",
  "createdBy": {
    "userId": "text",
    "type": "user"
  },
  "createdAt": "text"
}

Info for a specific organization

get
Path parameters
organizationIdstringRequired

The id of the organization to retrieve

Responses
200

Expected response to a valid request

application/json
get/v1/identity/organizations/{organizationId}
GET /v1/identity/organizations/{organizationId} HTTP/1.1
Host: localhost:3050
Accept: */*
{
  "organization": {
    "id": "text",
    "name": "text",
    "description": "text",
    "createdBy": {
      "userId": "text",
      "type": "user"
    },
    "createdAt": "text"
  },
  "organizationMembership": {
    "role": "admin"
  }
}

Edit an organization

post
Path parameters
organizationIdstringRequired

The id of the organization to edit

Body
namestringRequired
Responses
200

Expected response to a valid request

application/json
idstringRequired
namestringRequired
descriptionstringOptional
createdByone ofRequired
or
createdAtstringOptional
post/v1/identity/organizations/{organizationId}
POST /v1/identity/organizations/{organizationId} HTTP/1.1
Host: localhost:3050
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "name": "text"
}
{
  "id": "text",
  "name": "text",
  "description": "text",
  "createdBy": {
    "userId": "text",
    "type": "user"
  },
  "createdAt": "text"
}

Was this helpful?