# Request Syntax

## Form Fields in Request Bodies

All request bodies should be sent as a `multipart/form-data` content type. Depending on the kind of operation to perform, a request body can contain the following form fields:

* [data](#data-form-field)
* [file](#file-form-field)

### `data` form field

Attributes can be added to an entity by specifying them as key-value pairs in a JSON string and adding them to your request in the form-data field `data`.

This JSON string has the following format:

```json
{
  "attributes": {
    "name": "Welcome to IDP.docx",
    "createdBy": "User"
  }
}
```

### `file` form field

When uploading files, the file(s) should be contained in a form-data field named `file`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://processmaker.gitbook.io/idp/idp-developer/request-syntax.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
