---
title: "POST /abdm/v1/consents/approve"
method: POST
path: "/abdm/v1/consents/approve"
---

# POST /abdm/v1/consents/approve

`POST /abdm/v1/consents/approve`

This endpoint is used to approve the consent

## Query parameters

- `oid` string — OID is used to Identify the user.

## Headers

- `X-Pt-Id` string
- `X-Partner-Pt-Id` string
- `X-Hip-Id` string

## Request body

- ApproveRequest
  - `access_mode` 'view'
  - `consent_artefacts` ApproveConsent[], required — List of consent artefacts.
    - `access_mode` 'view'
    - `care_contexts` CommonsCareContext[]
      - `display` string — Care Context Display Name
      - `id` string — Care Context ID
    - `duration` CommonsDuration
      - `from` string, date-time — Start time of the consent
      - `to` string, date-time — End time of the consent
    - `erase_at` string, date-time
    - `hi_types` string[]
    - `hip_id` string
  - `duration` CommonsDuration
    - `from` string, date-time — Start time of the consent
    - `to` string, date-time — End time of the consent
  - `erase_at` string, date-time
  - `hi_types` string[]
  - `id` string, required — Unique identifier of a consent, also called the consent ID.

## Response `204`

No Content

## Other responses

- `4XX`
- `5XX`

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/versions/9ea23456f722/schema)
