**Version: 202201**

# Update Supplier

**PUT** `/openapi/2022-01/suppliers/:id`

Updates the details of an existing supplier by its unique identifier (id).

## Request

**Path Parameters**

- `id` string (required)

  Supplier ID

**application/json**

**Body | Example**

**Body**

- `supplier` object

  - `url` string (required)

```json
{
  "supplier": {
    "url": "string"
  }
}
```

## Responses

**200 | 400 | 404**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `supplier` object

  - `id` string

    **Example:** `382454149549138220`
  - `title` string

    **Example:** `example suppliers`
  - `url` string

    **Example:** `https://shoplazza.com`
  - `created_at` string

    **Example:** `2024-05-21T08:56:15Z`
  - `updated_at` string

    **Example:** `2024-05-21T08:56:15Z`

```json
{
  "supplier": {
    "id": "382454149549138220",
    "title": "example suppliers",
    "url": "https://shoplazza.com",
    "created_at": "2024-05-21T08:56:15Z",
    "updated_at": "2024-05-21T08:56:15Z"
  }
}
```

```json
{
    "supplier": {
        "id": "382454149549138220",
        "title": "example suppliers",
        "url": "https://shoplazza.com",
        "created_at": "2024-05-21T08:56:15Z",
        "updated_at": "2024-05-21T08:56:15Z"
    }
}
```

400

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "invalid id"
  ]
}
```

```json
{
  "errors": [
    "invalid id"
  ]
}
```

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "Supplier not found"
  ]
}
```

```json
{
  "errors": [
    "Supplier not found"
  ]
}
```
