---
title: "Updates the business's name and details."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › organization

`PATCH /v1/stores/{store}/organization`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `organization:write`

## Path parameters

- `store` (`updateOrganization.path.store`; string, required) — The store's id.

## Request body

_Optional._

- `name` (`updateOrganization.name`; string, optional) — Stored trimmed; a blank one is refused.
  - minLength 1; maxLength 120
- `short_name` (`updateOrganization.short_name`; string, optional)
  - minLength 3; maxLength 63; pattern `^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$`
- `email` (`updateOrganization.email`; string, optional)
  - minLength 1; maxLength 254; pattern `^[^\s@]+@[^\s@]+\.[^\s@]+$`
- `description` (`updateOrganization.description`; any of, optional)
  - any of: `string`, `null`
- `swatch` (`updateOrganization.swatch`; any of, optional)
  - any of: `string`, `null`

## Example request

```json
{
  "name": "string",
  "short_name": "string",
  "email": "string",
  "description": "string",
  "swatch": "emerald"
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/organization' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "string",
  "short_name": "string",
  "email": "string",
  "description": "string",
  "swatch": "emerald"
}
'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/organization';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    name: 'string',
    short_name: 'string',
    email: 'string',
    description: 'string',
    swatch: 'emerald'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/organization"

payload = {
    "name": "string",
    "short_name": "string",
    "email": "string",
    "description": "string",
    "swatch": "emerald"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Updates the business's name and details.

#### Example

```json
{
  "plan": {
    "plan": "string",
    "name": "string",
    "tier": "string",
    "price_ref": "string",
    "interval": "string",
    "quantity": 0,
    "scheduled_quantity": 0,
    "scheduled_plan": "string",
    "scheduled_price_ref": "string",
    "scheduled_interval": "string",
    "scheduled_releases": 0,
    "scheduled_at": "string",
    "pending_switch": {
      "plan": "string",
      "name": "string",
      "interval": "string"
    },
    "storage_bytes": 0,
    "member_limit": 0,
    "transcription_minutes": 0,
    "status": "string",
    "valid_from": "string",
    "valid_until": "string",
    "cancelled_at": "string",
    "trial_ends_at": "string",
    "source_kind": "string",
    "updated_at": "string"
  },
  "base_plan": {
    "plan": "string",
    "name": "string",
    "tier": "string",
    "granted_at": "2019-08-24T14:15:22Z",
    "in_effect": true
  },
  "standing": {
    "phase": "string",
    "trigger": "string",
    "over": [
      "string"
    ],
    "near": [
      "string"
    ],
    "since": "string",
    "unlocks_pause_at": "string",
    "suspend_at": "string",
    "delete_at": "string",
    "hold_until": "string",
    "upgrade_at": "string"
  },
  "has_customer": true,
  "fee": {
    "rate_bps": 0,
    "updated_at": "string"
  },
  "connections": [
    {
      "processor": "string",
      "external_ref": "string",
      "status": "string",
      "enabled": true,
      "held": true,
      "updated_at": "string"
    }
  ],
  "stores": {
    "items": [
      {
        "id": "string",
        "name": "string",
        "locale": "string",
        "location": "string",
        "hostname": "string",
        "swatch": "string",
        "icon": "string",
        "created_at": "string"
      }
    ],
    "total": 0,
    "limit": 0
  },
  "members": {
    "total": 0,
    "limit": 0
  },
  "id": "string",
  "name": "string",
  "short_name": "string",
  "email": "string",
  "description": "string",
  "swatch": "string",
  "logo": "string",
  "created_at": "string"
}
```

- `plan` (`updateOrganization.response.200.plan`; any of, required)
  - any of: `object`, `null`
- `base_plan` (`updateOrganization.response.200.base_plan`; any of, required) — The plan held for good beneath any bought, whether or not one is live; null for none.
  - any of: `object`, `null`
- `standing` (`updateOrganization.response.200.standing`; any of, required)
  - any of: `object`, `null`
- `has_customer` (`updateOrganization.response.200.has_customer`; boolean, required) — Whether the business is a customer at Stripe, so its billing portal can open.
- `fee` (`updateOrganization.response.200.fee`; any of, required)
  - any of: `object`, `null`
- `connections` (`updateOrganization.response.200.connections`; array<object>, required)
  - `processor` (`updateOrganization.response.200.connections.processor`; string, required)
  - `external_ref` (`updateOrganization.response.200.connections.external_ref`; string, required)
  - `status` (`updateOrganization.response.200.connections.status`; string, required)
  - `enabled` (`updateOrganization.response.200.connections.enabled`; boolean, required)
  - `held` (`updateOrganization.response.200.connections.held`; boolean, required)
  - `updated_at` (`updateOrganization.response.200.connections.updated_at`; any of, required)
    - any of: `string`, `null`
- `stores` (`updateOrganization.response.200.stores`; object, required)
  - `items` (`updateOrganization.response.200.stores.items`; array<object>, required)
    - `id` (`updateOrganization.response.200.stores.items.id`; string, required)
    - `name` (`updateOrganization.response.200.stores.items.name`; string, required)
    - `locale` (`updateOrganization.response.200.stores.items.locale`; string, required)
    - `location` (`updateOrganization.response.200.stores.items.location`; any of, required)
      - any of: `string`, `null`
    - `hostname` (`updateOrganization.response.200.stores.items.hostname`; any of, required)
      - any of: `string`, `null`
    - `swatch` (`updateOrganization.response.200.stores.items.swatch`; any of, required)
      - any of: `string`, `null`
    - `icon` (`updateOrganization.response.200.stores.items.icon`; string, required)
    - `created_at` (`updateOrganization.response.200.stores.items.created_at`; any of, required)
      - any of: `string`, `null`
  - `total` (`updateOrganization.response.200.stores.total`; number, required)
  - `limit` (`updateOrganization.response.200.stores.limit`; number, required)
- `members` (`updateOrganization.response.200.members`; object, required)
  - `total` (`updateOrganization.response.200.members.total`; number, required)
  - `limit` (`updateOrganization.response.200.members.limit`; number, required)
- `id` (`updateOrganization.response.200.id`; string, required)
- `name` (`updateOrganization.response.200.name`; string, required)
- `short_name` (`updateOrganization.response.200.short_name`; string, required)
- `email` (`updateOrganization.response.200.email`; string, required)
- `description` (`updateOrganization.response.200.description`; any of, required)
  - any of: `string`, `null`
- `swatch` (`updateOrganization.response.200.swatch`; any of, required)
  - any of: `string`, `null`
- `logo` (`updateOrganization.response.200.logo`; any of, required)
  - any of: `string`, `null`
- `created_at` (`updateOrganization.response.200.created_at`; any of, required)
  - any of: `string`, `null`

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`updateOrganization.response.default.type`; string, required)
  - format `uri`
- `title` (`updateOrganization.response.default.title`; string, required)
- `status` (`updateOrganization.response.default.status`; integer, required)
- `detail` (`updateOrganization.response.default.detail`; string, required)
- `code` (`updateOrganization.response.default.code`; string, optional)
- `context` (`updateOrganization.response.default.context`; object, optional)
- `reached_core` (`updateOrganization.response.default.reached_core`; boolean, optional)
- `core_answer` (`updateOrganization.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/update-organization/index.md
