---
title: "Revoke Consent"
method: PUT
path: "/api/{version}/consent_management/{ConsentPublicId}/disable_app_sharing"
tags: ["consent_management"]
---

# Revoke Consent

`PUT /api/{version}/consent_management/{ConsentPublicId}/disable_app_sharing`

Disables the selected consent and updates `revoked_at` with current time. Use this endpoint when an end user wants to stop all data sharing with an app.

## Path parameters

- `ConsentPublicId` string, required
- `version` string, 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.dev/mx/apis/consent-management-v4-api.md) · [All operations](https://skmtc.dev/mx/apis/consent-management-v4-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mx/consent-management-v4-api/revisions/bf6bb86ee0c8/schema)
