latestOpenAPI 3.0.3GitGuardian2026-08-201871515.0 MB

511b067cdcb1

Members

Update a member

Update an existing workspace member.

If you are using a personal access token, you need to have an access level greater or equal to manager.

patch/v1/members/{member_id}

Path parameters

member_idinteger required

The id of the workspace member

Query parameters

send_emailboolean

Whether to notify the member about the update.

Request body

idinteger
namestring
emailstring email
role'owner' | 'manager' | 'member' | 'restricted'
access_level'owner' | 'manager' | 'member' | 'restricted'
activeboolean

Whether this member is activated on the workspace.

created_atstring date-time
last_loginstring date-time nullable

Example request

{
  "id": 3252,
  "name": "John Smith",
  "email": "john.smith@example.org",
  "active": true,
  "created_at": "2023-06-28T16:40:26.897Z",
  "last_login": "2023-06-28T16:40:26.897Z"
}

Response

Workspace member details

idinteger
namestring
emailstring email
role'owner' | 'manager' | 'member' | 'restricted'
access_level'owner' | 'manager' | 'member' | 'restricted'
activeboolean

Whether this member is activated on the workspace.

created_atstring date-time
last_loginstring date-time nullable

Example response

{
  "id": 3252,
  "name": "John Smith",
  "email": "john.smith@example.org",
  "active": true,
  "created_at": "2023-06-28T16:40:26.897Z",
  "last_login": "2023-06-28T16:40:26.897Z"
}