user
default

🛡️👤 Change the status of an account member: regular, admin, or banished (deleted). This endpoint is allowed only for account admins.

Changed on
put/account/user

Request

Request body

accountinteger required

Account ID.

userstring required

Account member ID.

status'regular' | 'admin' | 'banished' required

Account membership role.

Example request

{
  "user": "github|60340680",
  "account": 1,
  "status": "regular"
}

Response

Effective account members.

datasourcesDatasource[] required

The list of datasources configured for the account.

Example response

{
  "regulars": [
    {
      "id": "github|24828976",
      "native_id": "24828976",
      "login": "jjdoe",
      "name": "Jane Josephine Doe",
      "email": "janedoe@exampleco.com",
      "picture": "https://exampleco.com/janedoe/me.jpg",
      "updated": "2020-01-23T12:00:00Z"
    },
    {
      "id": "github|24828977",
      "native_id": "24828977",
      "login": "jjdoe",
      "name": "Jane Josephine Doe",
      "email": "janedoe@exampleco.com",
      "picture": "https://exampleco.com/janedoe/me.jpg",
      "updated": "2020-01-23T12:00:00Z"
    }
  ],
  "admins": [
    {
      "id": "github|24828978",
      "native_id": "24828978",
      "login": "jjdoe",
      "name": "Jane Josephine Doe",
      "email": "janedoe@exampleco.com",
      "picture": "https://exampleco.com/janedoe/me.jpg",
      "updated": "2020-01-23T12:00:00Z"
    },
    {
      "id": "github|24828979",
      "native_id": "24828979",
      "login": "jjdoe",
      "name": "Jane Josephine Doe",
      "email": "janedoe@exampleco.com",
      "picture": "https://exampleco.com/janedoe/me.jpg",
      "updated": "2020-01-23T12:00:00Z"
    }
  ],
  "organizations": [
    {
      "name": "Athenian",
      "login": "athenianco",
      "avatar_url": "https://avatars3.githubusercontent.com/u/58329504?s=200&v=4"
    }
  ],
  "datasources": [
    "github",
    "jira"
  ],
  "jira": {
    "url": "https://athenianco.atlassian.net",
    "projects": [
      "DEV",
      "ENG"
    ]
  }
}

Changes

    • info

      added the required property //// to the response with the status

    • info

      added the required property //// to the response with the status

    • info

      added the required property to the response with the status