Add scope member

Changed on

Invites a user to a scope

post/scopes/{scope}/members

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

Request body

OR

Example request

{
  "githubLogin": "ry"
}

Response

OK

scopestring required

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

createdAtstring date-time required

The date and time when the invite was created.

updatedAtstring date-time required

The date and time when the invite was last updated.

Example response

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

Changes

    • breaking

      the request's body type changed from object to no type

    • breaking

      the response property ///// became nullable for the status

    • breaking

      removed the required property from the response with 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 request property

    • 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

      added subschema #1 subschema #2 to the request body oneOf list

    • 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

    • info

      added the required property to the response with the status