> For the complete documentation index, see [llms.txt](https://docs.udara360.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.udara360.io/udara360-docs-1/cards/interswitch/updatecardchannelaccess.md).

# UpdateCardChannelAccess

The "UpdateCardChannelAccess" endpoint allows customers to set which channels a card has access to

<mark style="color:blue;">`PUT`</mark> `/api/Card/v{{version}}/Interswitch/UpdateCardChannelAccess`

{% hint style="info" %}
For any of `EnableATM`, `EnablePOS`, or `EnableWeb` you don't intend to update, pass `null` rather than omitting the field.
{% endhint %}

To update a card's channel access, you need to provide the `cardId` of the card record, along with `EnableATM`, `EnablePOS`, and `EnableWeb` as needed,  `EnableATM` toggles whether transactions initiated from ATM machines are allowed, `EnablePOS` toggles POS machine transactions, and `EnableWeb` toggles web/online transactions.

This endpoint streamlines channel-level control over a card, letting you enable or restrict where a card can be used in a single call rather than managing each channel separately.

**Headers**

| Name                                           | Value              |
| ---------------------------------------------- | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | `application/json` |
| Request-Reference                              | `unique_string`    |

**Body**

<table><thead><tr><th>Name</th><th>Data Type</th><th width="129" data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>cardId</code></td><td><em>string</em></td><td>true</td><td>Id of the card record to update.</td></tr><tr><td><code>EnableATM</code></td><td><em>bool</em></td><td>false</td><td>Tells if you want to enable transactions initiated from ATM machines. <em><mark style="color:red;">Pass as null if you do not intend to update it.</mark></em></td></tr><tr><td><code>EnablePOS</code></td><td><em>bool</em></td><td>false</td><td>Tells if you want to enable transactions initiated from POS machines. <em><mark style="color:red;">Pass as null if you do not intend to update it.</mark></em></td></tr><tr><td><code>EnableWeb</code></td><td><em>bool</em></td><td>false</td><td>Tells if you want to enable web/online transactions. <em><mark style="color:red;">Pass as null if you do not intend to update it.</mark></em></td></tr></tbody></table>

Here is an example request and response with a sample payload sent to the endpoint in Curl format.

<details>

<summary>Sample Request</summary>

```json
curl --location -g --request PUT '{{baseUrl}}/api/Card/v{{version}}/Interswitch/UpdateCardChannelAccess' \
--header 'Content-Type: application/json' \
--data '{
  "cardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "enableATM": true,
  "enablePOS": true,
  "enableWeb": true
}'
```

</details>

<details>

<summary>Response: <code>200</code></summary>

```json
{
  "status": true,
  "message": "Operation Successful"
}
```

</details>
