> For the complete documentation index, see [llms.txt](https://docs.prodegeads.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prodegeads.com/publisher-apis/user-based-api-v1/post-devices.md).

# Post Devices

**Method:** POST\
**Base URL:** [**https://api.adgatemedia.com/v1/user-based-api/devices**](https://api.adgatemedia.com/v1/user-based-api/devices)

### Required Query Parameters

| Parameter  | Description                                                                                                      | Type        | Example                            |
| ---------- | ---------------------------------------------------------------------------------------------------------------- | ----------- | ---------------------------------- |
| aff\_id    | Your affiliate ID. Can be found on the [Offers API page](http://panel.adgatemedia.com/affiliate/api/keys).       | Any Integer | `60000`                            |
| api\_key   | Your API key. Can be found on the [Offers API page](http://panel.adgatemedia.com/affiliate/api/keys).            | Any String  | `941bd1fecf7e6596823b895e04df3a0c` |
| wall\_code | Wall code that can be found on the [AdGate Rewards page](https://panel.adgatemedia.com/affiliate/vc-walls/index) | String      | `nQug`                             |
| user\_id   | The affiliate's user ID. Max length 255 bytes                                                                    | String      | `user12345`                        |

### Required JSON Body Parameters

| Field   | Note                                                                                                               | Type  | Example                         |
| ------- | ------------------------------------------------------------------------------------------------------------------ | ----- | ------------------------------- |
| devices | An array that any combination of `iphone`, `ipad`, or `android`. Provide an empty array to clear existing devices. | array | `["iphone", "ipad", "android"]` |

### Response

The response will contain the list of user devices after the update.

#### Sample Response

```
{
    "data": {
        "devices": [
            "android"
        ]
    }
}
```
