---
title: "Choose what a connection brings in."
method: PUT
path: "/integrations/{integrationId}/origins"
tags: ["Integrations"]
---

# Choose what a connection brings in.

`PUT /integrations/{integrationId}/origins`

## Request

- Base URL: `https://docs.sleeperhit.studio/api/v1`
- URL: `https://docs.sleeperhit.studio/api/v1/integrations/{integrationId}/origins`
- Auth: HTTP bearer

Replaces the chosen places and queues the first check when the product is readable. Choosing places reads nothing for a season until that season opts in (PUT /season-runs/{runId}/integration-feed). Owners and admins only. Scope: `story:write`. Free.

## Request body

- SetIntegrationOriginsRequest
  - `origins` string[], required
  - `labels` object

## Response `200`

The chosen places.

- IntegrationOrigins
  - `integrationId` string, required
  - `providerSlug` string, required
  - `available` boolean, required: False while reading from this product is not built yet.
  - `origins` IntegrationOrigin[], required
    - `originKey` string, required: The stable upstream id (channel id, page id, owner/repo, team id, space key).
    - `label` string, required
    - `isPrivate` boolean, required
    - `kind` string, required
    - `ready` boolean, required
    - `readyHint` string, nullable, required: How to make a place ready, e.g. "Type /invite @Sleeper Hit in #releases".
    - `chosen` boolean, required
  - `chosen` string[], required
  - `installUrl` string, nullable, required: GitHub: where to install the app on an organization.
  - `queued` boolean: PUT only: the first check was queued.

## Other responses

- `401`: Missing, malformed, revoked, or expired API key.
- `403`: API key is valid but lacks the scope, is blocked by IP allowlist, or the account is disabled.
- `404`: `integration_not_found`.
- `429`: Rate limit for this API key + IP + route family was exceeded.
- `500`: The API failed unexpectedly. Safe to retry with the same Idempotency-Key.

---

[API](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api.md) · [All operations](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/revisions/64c1102ccb2f?raw)
