# Registration methods: admit, approve, attend

URL: /code/sdk/registration/verbs · Id: `page:code/sdk/registration/verbs`

> The Registration Verbs admit, approve, attend as typed SDK methods, with inputs, result, refusals and an example.

Reference for [Registration](/business/nouns/registration), one group of [Registration methods](/code/sdk/registration).

### Registration.admit
Admit gives the next Contact in line a place at a Gathering when one frees up or its capacity rises. [Verb page](/business/nouns/registration/admit?interface=sdk).

```ts
interface RegistrationVerbs {
  admit(input: RegistrationAdmitInput, options?: SB.CallOptions): SB.Call<Registration>
}
```

Emits [`Registration.admitted`](/business/events/Registration.admitted).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `registration` | [Registration](/business/nouns/registration) | Yes | The waitlisted Registration. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `registration` | [Registration](/business/nouns/registration) | Yes | The Registration, now `registered`. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The Gathering is at capacity | [`refused`](/code/api/errors/refused) | Clear what the check names, then call it again. | None. |

**Example**

```ts
import { $ } from 'startup-builder'

const registration = await $.Registration.admit({ registration: 'registration_95lvb7R17L' })
```

### Registration.approve
Approve gives a requested place at a Gathering to the Contact who asked, or a place in line when the Gathering is full. [Verb page](/business/nouns/registration/approve?interface=sdk).

```ts
interface RegistrationVerbs {
  approve(input: RegistrationApproveInput, options?: SB.CallOptions): SB.Call<Registration>
}
```

Emits [`Registration.approved`](/business/events/Registration.approved).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `registration` | [Registration](/business/nouns/registration) | Yes | The requested Registration. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `registration` | [Registration](/business/nouns/registration) | Yes | The Registration, `registered` or `waitlisted`. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```ts
import { $ } from 'startup-builder'

const registration = await $.Registration.approve({ registration: 'registration_95lvb7R17L' })
```

### Registration.attend
Attend records that a registered Contact joined the Gathering; an online room calls it on join. [Verb page](/business/nouns/registration/attend?interface=sdk).

```ts
interface RegistrationVerbs {
  attend(input: RegistrationAttendInput, options?: SB.CallOptions): SB.Call<Registration>
}
```

Emits [`Registration.attended`](/business/events/Registration.attended).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `registration` | [Registration](/business/nouns/registration) | Yes | The Registration of the Contact who joined. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `registration` | [Registration](/business/nouns/registration) | Yes | The Registration, now `attended`. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```ts
import { $ } from 'startup-builder'

const registration = await $.Registration.attend({ registration: 'registration_95lvb7R17L' })
```