POST a Group Profile Document

To upload a new Document to a Group Profile, POST a valid image or PDF file as the content:

headers = {"Accept": "application/json", "x-api-key": "YOUR-API-KEY"}
group_profile_pk = "<GROUP PROFILE ID>"
with open("./filename.pdf", "rb") as f:
    data = {"title": "Insurance", "kind": "malpractice_coi"}
    files = [("content", f)]
    response = requests.post(
        f"https://api.medallion.co/p/api/v1/group-profiles/{group_profile_pk}/documents/",
        headers=headers,
        data=data,
        files=files,
    )
    response.raise_for_status()
Language
Credentials
Header
Click Try It! to start a request and see the response here!