# Generate a PDF and attach it to the specified resource, using the html provided in the request

Generates a PDF document from provided HTML content and attaches it to the specified Resource (person, employee, or team). Used for creating custom documents like CVs or profile summaries.

Endpoint: POST /api/resources/{resourceId}/generatePdf
Version: 1.13
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Path parameters:

  - `resourceId` (string, required)
    The unique Salesforce ID of the Resource (person/employee) to whom the generated PDF will be attached. This is REQUIRED.

## Request fields (application/json):

  - `ContentDocumentId` (string, required)
    The Salesforce Id for the ContentDocument record that contains the html content to be used in the CV. This is REQUIRED.

  - `fileName` (string, required)
    The desired file name for the generated PDF (e.g., 'Resource_Profile.pdf'). This is REQUIRED.

## Response 202:

  - `202` (unknown)
    Success - Created

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 500:

  - `500` (unknown)
    Server Error

## Response 500 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

