# Update affiliates the status

| HTTP method | Endpoint                                    |
| ----------- | ------------------------------------------- |
| **PATCH**   | **/v1/batches/affiliates/{affiliate\_ids}** |

## Path parameters <a href="#path-parameters" id="path-parameters"></a>

| Parameter     | Description                                                                     |
| ------------- | ------------------------------------------------------------------------------- |
| affiliate\_id | The unique id for the affiliate.                                                |
| status        | The modified status of the advertiser.  Possible Values: active·blocked·deleted |

**Note:The limit of bulk adjustment is 100 affiliates.**

## Response body parameters <a href="#response-body-parameters-1" id="response-body-parameters-1"></a>

| Field  | Type    | Description                                                                     |
| ------ | ------- | ------------------------------------------------------------------------------- |
| id     | integer | A string that uniquely identifies this affiliate.                               |
| status | string  | The modified status of the advertiser.  Possible Values: active·blocked·deleted |

## Example request <a href="#example-request-1" id="example-request-1"></a>

**Request PATCH** <https://{networkname}.api.offerslook.com/v1/batches/affiliates/74,80,85?status=deleted>

**Request PATCH** <http://{networkname}.api.offerslook.com/v1/batches/affiliates/74,80,85?status=deleted>

## Example response <a href="#example-response-1" id="example-response-1"></a>

```
    {
      "code": 0,
      "message": "Success",
      "data": {
        "affiliate": [
          {
            "affiliate_id": 74,
            "status": "deleted"
          },
          {
            "affiliate_id": 80,
            "status": "deleted"
          },
          {
            "affiliate_id": 85,
            "status": "deleted"
          }
        ]
      }
    }
```
