PUT
/
organisations
/
{organisation_id}
/
teams
/
{team_id}
Update a team for an organisation
curl --request PUT \
  --url http://localhost:3001/portal-api/organisations/{organisation_id}/teams/{team_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "Name": "Default Organisation All users",
  "Users": [
    1
  ]
}'
{
  "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

team_id
integer
required

UID of a team

Example:

2

organisation_id
integer
required

UID of an organisation

Example:

2

Body

application/json
Name
string

Name of this team

Example:

"Default Organisation All users"

Users
integer[]

UID of users included into this team

UID of a user

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