# repository-invitation

From **GitHub v3 REST API**.

Repository invitations let you manage who you collaborate with.

- Type: `object`

## Properties

### `created_at`

- Required: true
- Type: `string`
- Format: `date-time`
- Example: `2016-06-13T14:52:50-05:00`

### `expired`

- Required: false
- Type: `boolean`

Whether or not the invitation has expired

### `html_url`

- Required: true
- Type: `string`
- Example: `https://github.com/octocat/Hello-World/invitations`

### `id`

- Required: true
- Type: `integer`
- Example: `42`

Unique identifier of the repository invitation.

### `invitee`

- Required: true
- Type: `object`
- Nullable: true

Simple User

### `inviter`

- Required: true
- Type: `object`
- Nullable: true

Simple User

### `node_id`

- Required: true
- Type: `string`

### `permissions`

- Required: true
- Type: `string`
- Example: `read`
- Allowed values: `"read"`, `"write"`, `"admin"`, `"triage"`, `"maintain"`

The permission associated with the invitation.

### `repository`

- Required: true
- Type: `object`

Minimal Repository

## JSON Schema

```json
{"description":"Repository invitations let you manage who you collaborate with.","properties":{"created_at":{"example":"2016-06-13T14:52:50-05:00","format":"date-time","type":"string"},"expired":{"description":"Whether or not the invitation has expired","type":"boolean"},"html_url":{"example":"https://github.com/octocat/Hello-World/invitations","type":"string"},"id":{"description":"Unique identifier of the repository invitation.","example":42,"type":"integer"},"invitee":{"$ref":"#/components/schemas/nullable-simple-user"},"inviter":{"$ref":"#/components/schemas/nullable-simple-user"},"node_id":{"type":"string"},"permissions":{"description":"The permission associated with the invitation.","enum":["read","write","admin","triage","maintain"],"example":"read","type":"string"},"repository":{"$ref":"#/components/schemas/minimal-repository"},"url":{"description":"URL for the repository invitation","example":"https://api.github.com/user/repository-invitations/1","type":"string"}},"required":["id","node_id","permissions","inviter","invitee","repository","url","html_url","created_at"],"title":"Repository Invitation","type":"object"}
```
