PUT
/
repos
/
{repo_id}
/
invites
curl --request PUT \
  --url https://api.diversion.dev/v0/repos/{repo_id}/invites \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collaborator_handle": "user@domain.com",
  "mode": "READ"
}'
This response has no body data.

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Body

application/json
collaborator_handle
string
required

A user ID or email. User IDs are preferred, but an email can be used to invite a new collaborator who does not have an account or whose user ID is unknown.

mode
enum<string>
required
Available options:
READ,
WRITE,
ADMIN,
OWNER