Get authenticated user's scope member details

Changed on

Returns details of the authenticated user's membership of a scope

get/user/member/{scope}

Request

  • Base URL
    https://api.jsr.io
  • Auth
    HTTP bearer

Path parameters

scopestring required

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

Example:denoland

The name 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
  }
}

Changes

    • breaking

      the response property / became nullable for the status

    • warning

      changed the pattern of the path request parameter scope from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      the response's property pattern was changed from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$ for the status