Files

API Reference for ProcessMaker File API

Create or update a new setting

post

Create a new Settings css-override

Authorizations
Body
variablesstringoptional
sansSerifFontstringoptional
Responses
curl -L \
  --request POST \
  --url '/api/1.0/customize-ui' \
  --header 'Content-Type: application/json' \
  --data '{
    "variables": "text",
    "sansSerifFont": "text"
  }'
{
  "key": "text",
  "config": [
    {}
  ],
  "name": "text",
  "helper": "text",
  "group": "text",
  "format": "text",
  "hidden": true,
  "readonly": true,
  "variables": "text",
  "sansSerifFont": "text",
  "id": "text",
  "created_at": "2025-04-01T09:28:08.024Z",
  "updated_at": "2025-04-01T09:28:08.024Z"
}

Returns the list of files

get

Display a listing of the resource.

Authorizations
Query parameters
filterstringoptional

Filter results by string. Searches Name, Description, and Status. Status must match exactly. Others can be a substring.

order_bystringoptional

Field to order results by

order_directionstring · enum · default: "asc"optional
Available options:
per_pageinteger · default: "10"optional
Responses
curl -L \
  --url '/api/1.0/files'
{
  "data": [
    {
      "id": 1,
      "model_id": 1,
      "model_type": "text",
      "collection_name": "text",
      "name": "text",
      "file_name": "text",
      "mime_type": "text",
      "disk": "text",
      "size": 1,
      "manipulations": {},
      "custom_properties": {},
      "responsive_images": {},
      "order_column": 1,
      "created_at": "2025-04-01T09:28:08.024Z",
      "updated_at": "2025-04-01T09:28:08.024Z"
    }
  ],
  "meta": {
    "filter": "text",
    "sort_by": "text",
    "sort_order": "asc",
    "count": 1,
    "total_pages": 1,
    "current_page": 1,
    "form": 1,
    "last_page": 1,
    "path": "text",
    "per_page": 1,
    "to": 1,
    "total": 1
  }
}

Save a new media file. Note: To upload files to a request, use createRequestFile in the RequestFile API

post

Store a newly created resource in storage.

Authorizations
Query parameters
model_idintegerrequired

ID of the model to which the file will be associated

modelstringrequired

Full namespaced class of the model to associate

data_namestringoptional

Name of the variable used in a request

collectionstringoptional

Media collection name. For requests, use 'default'

Body
filestring · binaryoptional

save a new media file

Responses
curl -L \
  --request POST \
  --url '/api/1.0/files?model_id=1&model=text' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=binary'
{
  "id": "text",
  "model_id": "text",
  "file_name": "text",
  "mime_type": "text"
}

Get the metadata of a file. To actually fetch the file see Get File Contents

get

Get a single media file.

Authorizations
Path parameters
file_idintegerrequired

ID of the file to return

Responses
curl -L \
  --url '/api/1.0/files/{file_id}'
{
  "id": 1,
  "model_id": 1,
  "model_type": "text",
  "collection_name": "text",
  "name": "text",
  "file_name": "text",
  "mime_type": "text",
  "disk": "text",
  "size": 1,
  "manipulations": {},
  "custom_properties": {},
  "responsive_images": {},
  "order_column": 1,
  "created_at": "2025-04-01T09:28:08.024Z",
  "updated_at": "2025-04-01T09:28:08.024Z"
}

Delete a media file

delete

Remove the specified resource from storage.

Authorizations
Path parameters
file_idintegerrequired

ID of the file

Responses
curl -L \
  --request DELETE \
  --url '/api/1.0/files/{file_id}'

No body

Get the contents of a file

get

Display the specified resource.

Authorizations
Path parameters
file_idintegerrequired

ID of the file to return

Responses
curl -L \
  --url '/api/1.0/files/{file_id}/contents'
binary

Last updated

Was this helpful?