POST
/
organisations
Create a new developer organisation
curl --request POST \
  --url http://localhost:3001/portal-api/organisations \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "Name": "Default Organisation"
}'
{
  "CreatedAt": "2023-06-23 21:02",
  "UpdatedAt": "2023-06-23 21:02",
  "ID": 1,
  "Name": "Default Organisation",
  "Teams": [
    {
      "Default": true,
      "ID": 1,
      "Name": "Default Organisation All users"
    }
  ],
  "Users": [
    {
      "Active": true,
      "Email": "admin@acme.com",
      "First": "John",
      "Last": "Doe",
      "OrganisationID": 1,
      "Role": "consumer-team-member",
      "Provider": "password",
      "ID": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
Name
string

Name of an organisation

Example:

"Default Organisation"

Response

200 - application/json

OK

CreatedAt
string

Date-time when a user is created

Example:

"2023-06-23 21:02"

UpdatedAt
string

Date-time when a user is updated the last time

Example:

"2023-06-23 21:02"

ID
integer

UID of an organisation

Example:

1

Name
string

Name of an organisation

Example:

"Default Organisation"

Teams
object[]

Teams included in this organisation

Users
object[]

Users that are included in this organisation. For newly created organisation this field will be an empty array