# Hypothesis methods: drop, test

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

> The Hypothesis Verbs drop, test as typed SDK methods, with inputs, result, refusals and an example.

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

### Hypothesis.drop
Drop retires a Hypothesis from active work and keeps it, with its Evidence, on record. [Verb page](/business/nouns/hypothesis/drop?interface=sdk).

```ts
interface HypothesisVerbs {
  drop(input: HypothesisDropInput, options?: SB.CallOptions): SB.Call<Hypothesis>
}
```

Emits [`Hypothesis.dropped`](/business/events/Hypothesis.dropped).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `hypothesis` | [Hypothesis](/business/nouns/hypothesis) | Yes | The Hypothesis to retire. |
| `reason` | `text` | Yes | Why it is dropped. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `hypothesis` | [Hypothesis](/business/nouns/hypothesis) | Yes | The dropped Hypothesis. |

**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 record is not in a state that allows this Verb, so the call is refused. | [`refused`](/code/api/errors/refused) | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |

**Example**

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

const hypothesis = await $.Hypothesis.drop({ hypothesis: 'hypothesis_Z1gjx1kbtc', reason: 'Example reason' })
```

### Hypothesis.test
Test binds a Hypothesis to the Experiment that decides it and moves the Hypothesis to testing. [Verb page](/business/nouns/hypothesis/test?interface=sdk).

```ts
interface HypothesisVerbs {
  test(input: HypothesisTestInput, options?: SB.CallOptions): SB.Call<Hypothesis>
}
```

Emits [`Hypothesis.tested`](/business/events/Hypothesis.tested).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `hypothesis` | [Hypothesis](/business/nouns/hypothesis) | Yes | The Hypothesis to test. |
| `experiment` | [Experiment](/business/nouns/experiment) | Yes | The Experiment that decides it. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `hypothesis` | [Hypothesis](/business/nouns/hypothesis) | Yes | The Hypothesis, now testing. |

**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 record is not in a state that allows this Verb, so the call is refused. | [`refused`](/code/api/errors/refused) | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |

**Example**

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

const hypothesis = await $.Hypothesis.test({ hypothesis: 'hypothesis_Z1gjx1kbtc', experiment: 'experiment_IyIJJPngKt' })
```