For the complete documentation index, see llms.txt. This page is also available as Markdown.

Endpoints for Documents

Interact with IDP documents through APIs from ProcessMaker scripts.

Base URL for Document Endpoints

Access the server via https://{processmaker-server}/api/1.0/connector-idp.

View Metadata of a Document

GET https://{processmaker-server}/api/1.0/connector-idp/get-file/{id}

See 200 status code response for cURL example and response example.

Path Parameters

Name
Type
Description

id*

String

Unique ID for the document to find in the information document section of the IDP server.

Following is an example of getting a document metadata using the file id.

cURL request:

curl --location --request GET "https://processmaker.com/api/1.0/connector-idp/get-file/d72c9a40-8ef1-4c16-94c8-038cd9b80089"

Example response:

The request was okay and the response body contains the representation requested.

{
  "data": {
    "type": "file",
    "attributes": {
      "createdAt": "2019-11-29T09:46:29.006+0000",
      "createdBy": "User",
      "documentType": "NONE",
      "modifiedAt": "2019-12-03T07:41:33.445+0000",
      "name": "Welcome to IDP.docx",
      "modifiedBy": null,
      "checkedOutBy": null,
      "id": "d72c9a40-8ef1-4c16-94c8-038cd9b80089",
      "content": 117350
    },
    "relations": {}
  },
  "status": "success",
  "message": null
}

Update Documents

PUT https://{processmaker-server}/api/1.0/connector-idp/update-file/{id}

See 200 status code response for cURL example and response example.

Path Parameters

Name
Type
Description

id*

String

Unique ID for the document to find in the information document section of the IDP server.

Request Body

Name
Type
Description

data

JSON String

Attributes specified as key-value pairs. Check the example response to see the JSON structure to send

Here is an example of updating a file using the file id., where the file attributes are being updated.

cURL request:

Example response:

The request was okay and the response body contains the representation requested. The response contains all attributes of the updated document.

Last updated