NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Unique ID for the image. |
|
| ID of the namespace the invite was sent for. |
|
| ID of the user who received the invite. |
|
| ID of the user who sent the invite. |
|
| The API URL for the invite entity itself. |
|
| The user who received the invite. |
|
| The user who sent the invite. |
|
| The namespace the invite was for. |
GET
/invites
POST
/n/:username/:path/-/invites
PATCH
/invites/:id
DELETE
/invites/:id
This will create an invite for the currently authenticated user. This requires the invite:write
permission.
NAME | TYPE | REQUIRED | DESCRIPTION |
---|---|---|---|
|
| Yes | The username of email of the user to invite. |
$ curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer 1a2b3c4d5f" \ -d '{"handle": "you"}' \ https://api.djinn-ci.com/n/me/djinn/-/invites $ curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer 1a2b3c4d5f" \ -d '{"handle": "you@example.com"}' \ https://api.djinn-ci.com/n/me/djinn/-/invites
This will reject the invite by the given :id
. This requires the invite:delete
permission. Either the invitee or inviter can reject the invite.
This returns no content in the response body.