# setpdfmetadata: Edit PDF Metadata

> setpdfmetadata (Edit PDF Metadata) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/setpdfmetadata, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

Sets title, author, subject, keywords, creator and producer of a PDF. Fields left empty stay as they are. Returns the PDF.

- Group: Files & PDF
- Endpoint: `POST https://api.1001fx.com/files/setpdfmetadata`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/setpdfmetadata

## Parameters

- `file` (file, optional) – File: The PDF. Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the PDF. Either file or fileUrl.
- `title` (string, optional) – Title: Document title.
- `author` (string, optional) – Author: Author.
- `subject` (string, optional) – Subject: Subject.
- `keywords` (string, optional) – Keywords: Keywords, separated by commas.
- `creator` (string, optional) – Creator: Application that created the original document.
- `producer` (string, optional) – Producer: Application that produced the PDF.

## Example: Edit PDF Metadata

```bash
curl -X POST 'https://api.1001fx.com/files/setpdfmetadata' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```
