---
title: "{{baseUrl}}/persons/:personId/medication-history/create-consent"
method: POST
path: "/persons/{personId}/medication-history/create-consent"
tags: ["Medications"]
---

# {{baseUrl}}/persons/:personId/medication-history/create-consent

`POST /persons/{personId}/medication-history/create-consent`

## Request

- Base URL: `https://nativeapi.nextgen.com/nge/prod/nge-api/api`
- URL: `https://nativeapi.nextgen.com/nge/prod/nge-api/api/persons/{personId}/medication-history/create-consent`
- Auth: none declared. Required headers: `Accept`
- TypeScript: <https://skmtc.dev/nextgen/apis/enterprise-api-uscdi-routes/docs/persons/:personId/medication-history/create-consent/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates medication history consent for a given person id

## Path parameters

- `personId` string, required

## Headers

- `Content-Type` 'application/json'
- `Accept` string, required

## Request body

- 7B7BbaseUrl7D7D1persons13ApersonId1medicationHistory1createConsentRequest (unresolved $ref)

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/nextgen/apis/enterprise-api-uscdi-routes.md) - [All operations](https://skmtc.dev/nextgen/apis/enterprise-api-uscdi-routes/llms.txt) - [OpenAPI document](https://skmtc.dev/nextgen/apis/enterprise-api-uscdi-routes/revisions/191e69116448?raw)
