# Replace a Provider's Instruction Override

Stores your own connection instructions for this provider, replacing the WHITELABEL catalogue's wording where you override it.

<Warning>
**The document is stored whole, not merged.** A field this body omits is cleared, and the provider reverts to the catalogue's value for it. The safe edit is: read the current document with [Retrieve a Provider's Instruction Override](/reference/organizations/whitelabel/retrieve-provider-instructions), change the one field, and put the whole thing back.
</Warning>

At least one of `instructions`, `setup_instructions`, `more_info_url` and `name` must be present. Unknown top-level keys are rejected rather than ignored, and the serialised document may not exceed 64 KB.

Overriding a provider's wording does **not** add it to your allowlist — editing text never changes what you offer.

### Path Parameters

<ParamField path="provider_id" type="string" required>
  WHITELABEL catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive — normalized to upper case.
</ParamField>

### Body

<ParamField body="instructions" type="object[]">
  The connection steps shown to your own users.
  <Expandable title="step">
    <ParamField body="step" type="integer">
      Position of the step.
    </ParamField>
    <ParamField body="text" type="string | object">
      The step's text. Either a plain string or a language map such as `{"EN": "...", "ES": "..."}`.
    </ParamField>
    <ParamField body="text_link" type="string | object">
      Link label. Same shape rules as `text`.
    </ParamField>
    <ParamField body="link" type="string">
      Target URL. **Must be https** — the dashboard renders it as an href.
    </ParamField>
    <ParamField body="type" type="string">
      Step type.
    </ParamField>
    <ParamField body="has_sub_instructions" type="boolean">
      Whether this step carries nested steps.
    </ParamField>
    <ParamField body="sub_instructions_type" type="string">
      Type of the nested steps.
    </ParamField>
    <ParamField body="sub_instructions" type="object[]">
      Nested steps, in the same shape. Up to 3 levels deep.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="setup_instructions" type="object[]">
  Grouped setup steps.
  <Expandable title="group">
    <ParamField body="title" type="string">
      Group heading.
    </ParamField>
    <ParamField body="order" type="integer">
      Position of the group.
    </ParamField>
    <ParamField body="instructions_type" type="string">
      Type of the steps in this group.
    </ParamField>
    <ParamField body="instructions" type="object[]">
      The steps, in the same shape as `instructions` above.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="more_info_url" type="string">
  Link to your own documentation for this provider. Must be an https URL.
</ParamField>

<ParamField body="name" type="string">
  Display name that replaces the catalogue's. At most 255 characters.

  Accepted **only for WHITELABEL-owned providers** — a catalogue id containing `YUNO`, such as `YUNO_3DS` or `YUNO_FRAUD_SCREENING`. Any other provider is rejected with `400`.
</ParamField>

### Response

The stored document, in the same shape as [Retrieve a Provider's Instruction Override](/reference/organizations/whitelabel/retrieve-provider-instructions), including the read-only `created_at`, `updated_at`, `created_by` and `updated_by` fields.

<CodeGroup>
```bash cURL
curl -X PUT 'https://api.whitelabel.com/v1/whitelabel/providers/STRIPE/instructions' \
  -H 'public-api-key: <YOUR_PUBLIC_KEY>' \
  -H 'private-secret-key: <YOUR_SECRET_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "more_info_url": "https://docs.example.com/stripe",
    "instructions": [
      {
        "step": 1,
        "text": { "EN": "Open your Stripe dashboard.", "ES": "Abre tu panel de Stripe." },
        "type": "TEXT"
      },
      {
        "step": 2,
        "text": "Copy the secret API key and paste it below.",
        "text_link": "Where do I find my key?",
        "link": "https://docs.example.com/stripe#api-keys",
        "type": "LINK"
      }
    ]
  }'
```

```json 200 OK
{
  "provider_id": "STRIPE",
  "more_info_url": "https://docs.example.com/stripe",
  "instructions": [
    {
      "step": 1,
      "text": { "EN": "Open your Stripe dashboard.", "ES": "Abre tu panel de Stripe." },
      "type": "TEXT"
    },
    {
      "step": 2,
      "text": "Copy the secret API key and paste it below.",
      "text_link": "Where do I find my key?",
      "link": "https://docs.example.com/stripe#api-keys",
      "type": "LINK"
    }
  ],
  "created_at": "2026-09-02T13:54:13Z",
  "updated_at": "2026-09-02T13:54:13Z",
  "created_by": "00000000-0000-0000-0000-000000000000",
  "updated_by": "00000000-0000-0000-0000-000000000000"
}
```

```json 400 — rename refused
{
  "title": "Invalid provider instructions",
  "status": 400,
  "detail": "The instruction override was rejected",
  "violations": [
    "name: only Whitelabel's own providers can be renamed; 'STRIPE' cannot"
  ]
}
```
</CodeGroup>

<Note>
`violations` lists **every** problem with the document at once — fix them together rather than resubmitting to discover the next one.
</Note>

### Errors

<div className="code-nowrap-table dense-table">

| HTTP | Envelope | When |
|---|---|---|
| `400` | `VALIDATION_ERROR` | `provider_id` is not a valid catalogue id. |
| `400` | problem+json | The document was rejected: an unknown top-level key, a non-https `link` or `more_info_url`, `name` on a provider that is not WHITELABEL-owned, an empty document, or more than 64 KB. |
| `401` | `NOT_AUTHENTICATED` | Missing or invalid API keys. |
| `413` | — | Request body larger than 256 KB. |

</div>

**PUT** `/whitelabel/providers/{provider_id}/instructions`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Stores your own connection instructions for this provider, replacing the WHITELABEL catalogue's wording where you override it.

The document is stored whole, not merged. A field this body omits is cleared, and the provider reverts to the catalogue value for it — so read the current document with `GET`, edit it, and put the whole thing back. At least one of `instructions`, `setup_instructions`, `more_info_url` and `name` must be present, unknown top-level keys are rejected rather than ignored, and the serialised document may not exceed 64 KB.

Every `link`, and `more_info_url`, must be https. `name` renames the provider and is accepted only for WHITELABEL-owned providers (a catalogue id containing `YUNO`); any other provider is rejected with `400`. Rejections list every violation at once in `violations`.

Overriding a provider's wording does not add it to your allowlist.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Path parameters

- `provider_id` (string, required)
  WHITELABEL catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.

## Body

Content type: `application/json`

- `instructions` (object[])
  The connection steps shown to your own users. Every `link` must be https.
- `setup_instructions` (object[])
  Grouped setup steps.
- `more_info_url` (string<uri>)
  Link to your own documentation for this provider. Must be an https URL.
- `name` (string)
  Display name that replaces the catalogue's. Accepted only for WHITELABEL-owned providers (a catalogue id containing `YUNO`, e.g. `YUNO_3DS`); any other provider is rejected with `400`.

Example:

```json
{
  "instructions": [
    {}
  ],
  "setup_instructions": [
    {}
  ],
  "more_info_url": "https://docs.example.com/stripe",
  "name": "Acme Risk"
}
```

## Responses

### 200

The stored override.

- `provider_id` (string)
  WHITELABEL catalogue provider id, UPPER_SNAKE_CASE.
- `instructions` (object[])
  Connection steps replacing the catalogue's.
- `setup_instructions` (object[])
  Grouped setup steps replacing the catalogue's.
- `more_info_url` (string<uri>)
  Documentation link replacing the catalogue's, when overridden. Always https.
- `name` (string)
  Display name replacing the catalogue's, when overridden. Only WHITELABEL-owned providers can carry one.
- `created_at` (string<date-time>)
  When the override was first written.
- `updated_at` (string<date-time>)
  When the override was last written.
- `created_by` (string<uuid>)
  The dashboard user who created it. Overrides written through this API carry the all-zero sentinel `00000000-0000-0000-0000-000000000000`, meaning "written through the API" rather than by a person in the dashboard.
- `updated_by` (string<uuid>)
  The dashboard user who last updated it, with the same sentinel rule as `created_by`.

Example:

```json
{
  "provider_id": "STRIPE",
  "instructions": [
    {}
  ],
  "setup_instructions": [
    {}
  ],
  "more_info_url": "https://docs.example.com/stripe",
  "name": "Acme Risk",
  "created_at": "2026-09-02T13:54:13Z",
  "updated_at": "2026-09-02T13:54:13Z",
  "created_by": "00000000-0000-0000-0000-000000000000",
  "updated_by": "00000000-0000-0000-0000-000000000000"
}
```

### 400

The document was rejected — invalid provider_id, unknown key, non-https link, `name` on a provider that is not WHITELABEL-owned, or over 64 KB.

- `type` (string)
- `title` (string)
- `status` (integer)
- `detail` (string)
- `violations` (string[])
  Every violation of the request, reported together rather than one per round trip.

Example:

```json
{
  "type": "about:blank",
  "title": "Invalid provider instructions",
  "status": 400,
  "detail": "The instruction override was rejected",
  "violations": [
    "name: only WHITELABEL's own providers can be renamed; 'STRIPE' cannot"
  ]
}
```

### 401

Unauthorized — invalid or missing API keys.

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "Not authenticated"
  ]
}
```

### 413

Request body larger than 256 KB.

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "Request body is too large"
  ]
}
```