Skip to main content
PUT
/
organisations
/
{organisation_id}
Update an organisation
curl --request PUT \
  --url http://localhost:3001/portal-api/organisations/{organisation_id} \
  --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

Path Parameters

organisation_id
integer
required
Example:

Body

application/json
Name
string
Example:

Response

200 - application/json
CreatedAt
string
Example:
UpdatedAt
string
Example:
ID
integer
Example:
Name
string
Example:
Teams
object[]
Users
object[]