POST
/
organisations
/
{organisation_id}
/
teams
Create a new team for an organisation
curl --request POST \
  --url http://localhost:3001/portal-api/organisations/{organisation_id}/teams \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "Name": "Partner Team A"
}'
{
  "Name": "Default Organisation All users",
  "ID": 11,
  "CreatedAt": "2023-06-23 21:02",
  "UpdatedAt": "2023-06-23 21:02",
  "Users": [
    "User#6"
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

organisation_id
integer
required

UID of an organisation

Example:

2

Body

application/json
Name
string

Name of a team

Example:

"Partner Team A"

Response

200 - application/json

OK

Name
string

Name of this team

Example:

"Default Organisation All users"

ID
integer

UID of this team

Example:

11

CreatedAt
string

Date-time when a team is created

Example:

"2023-06-23 21:02"

UpdatedAt
string

Date-time when a team was updated the last time

Example:

"2023-06-23 21:02"

Users
string[]

Users included in this organisation. For newly created organisation will an empty array

User ID