---
title: "Update Consented Account"
method: PUT
path: "/api/{version}/consent_management/{ConsentPublicId}/accounts/{AccountId}"
tags: ["consent_management"]
---

# Update Consented Account

`PUT /api/{version}/consent_management/{ConsentPublicId}/accounts/{AccountId}`

Updates a consent by enabling or disabling an account. Use this endpoint when an end user wants to change whether or not an account is shared with an app.

## Path parameters

- `ConsentPublicId` string, required
- `AccountId` string, required
- `version` string, required

## Request body

- object
  - `enabled` boolean, required

## Response `200`

Successful response

- Consent — Consent object
  - `id` string
  - `application_name` string
  - `application_icon_url` string, nullable
  - `created_at` string
  - `last_accessed` string
  - `accounts` object[]
    - `enabled` boolean
    - `nickname` string
    - `account_id` string
    - `account_number_display` string
  - `auto_enable_future_accounts` boolean
  - `consented_on` string
  - `revoked_at` string, nullable

---

[API](https://skmtc.net/mx/apis/consent-management-v4-api.md) · [All operations](https://skmtc.net/mx/apis/consent-management-v4-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mx/consent-management-v4-api/revisions/bf6bb86ee0c8/schema)
