v1

latestOpenAPI 3.0.12026-06-115557102.5 KB

Update scope member

Updates the roles of a scope member

patch/scopes/{scope}/members/{userId}

Path parameters

scopestring required

The name of a scope. This must not be @ prefixed.

Example:denoland

The name of the scope

userIdstring uuid required

The ID of a user.

The ID of the user

Request body

isAdminboolean required

Whether the user should be an admin of the scope.

Response

OK

scopestring required

The name of a scope. This must not be @ prefixed.

isAdminboolean required

Whether the user is an admin of the scope.

createdAtstring date-time required

The date and time when the user was added to the scope.

updatedAtstring date-time required

The date and time when the scope member roles were last updated.

Example response

{
  "scope": "denoland",
  "user": {
    "name": "Ryan Dahl",
    "avatarUrl": "https://avatars.githubusercontent.com/u/80?v=4",
    "githubId": 80
  }
}