v1

latestOpenAPI 3.0.12026-07-175557102.5 KB

Add scope member

Invites a user to a scope

post/scopes/{scope}/members

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