---
title: "Upload document(s) to a profile"
method: POST
path: "/group-profile/v1/profiles/{profileId}/documents"
tags: ["ProfileDocument"]
---

# Upload document(s) to a profile

`POST /group-profile/v1/profiles/{profileId}/documents`

## Request

- Base URL: `https://api.cloudbeds.com`
- URL: `https://api.cloudbeds.com/group-profile/v1/profiles/{profileId}/documents`
- Auth: HTTP bearer

Upload one or more documents for a profile (group, company, or travel agent)

## Path parameters

- `profileId` integer, required

## Headers

- `x-property-id` integer
- `x-organization-id` integer, required

## Request body `multipart/form-data`

- object
  - `files` string[], required: One or more document files to upload. Maximum size per file: 10MB. Allowed file types: .png, .doc, .docx, .xls, .xlsx, .pdf, .jpg, .jpeg, .gif, .csv
  - `userId` integer, required: User ID of the person uploading the documents

## Response `201`

Documents uploaded successfully

- object
  - `data` ProfileDocumentResponse[]
    - `id` string, required: Unique identifier for the profile document
    - `profileId` string, required: ID of the profile (group, company, or travel agent)
    - `userId` string, required: User ID of the person who uploaded the document
    - `fileName` string, required: Original file name of the uploaded document
    - `createdAt` string, date-time: Creation timestamp
    - `updatedAt` string, date-time: Last update timestamp
  - `total` integer: Total number of documents successfully uploaded

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Profile not found
- `413`: File too large
- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/cloudbeds/apis/group-profile-api.md) - [All operations](https://skmtc.dev/cloudbeds/apis/group-profile-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudbeds/apis/group-profile-api/revisions/a1801dfbb09e?raw)
