API Documentation
Overview
This API allows you to interface with the Saras Finance Agentic ERP system for process management. The system is secured with Role-Based Access Control (RBAC), so ensure to provide the correct parameters to gain access. Before you make an API call - it is essential that you have the project ready in the platform. And your user credentials haev access to that project setup through API. For the configuration of the project, please contact our support team.Endpoints
1. Get Process List
Endpoint:GET /v1/process/getProcess
Description: Retrieve a list of processes with optional filters.
Query Parameters:
- page (integer, required): Page number for pagination.
- perPageCount (integer, required): Number of items per page.
- filters (JSON object, required): Filtering options for the processes.
metaDetails__projectId: Project identifier.metaDetails__typeOfProcess: Type of process (e.g.,PROCESS).metaDetails__subProcessType: Sub-type of process (e.g.,tenderprojects).
2. Create Process Item
Endpoint:POST /v1/process/createProcess
Description: Create a new process item entry in the ERP system.
Headers:
- Content-Type:
application/json - Authorization: Bearer token for securing the request.
- fields (object): The fields for the process, pass to initialise with values or leave for an empty field process item.
- metaDetails (object, required): Metadata for the process.
typeOfProcess: Type of process (e.g.,PROCESS).subProcessType: Sub-type of process (e.g.,tenderprojects).
3. Update Process Field
Endpoint:GET /v1/process/updateProcessField
Description: Update a specific field of a process.
Headers:
- Content-Type:
application/json - Authorization: Bearer token for securing the request.
- processId (string, required): The unique identifier of the process to update.
- updates (object, required): The fields to update.
- Example:
year,status, etc. - metaDetails (object, required): Metadata for the process.
typeOfProcess: Type of process (e.g.,PROCESS).projectId: Project identifier (e.g.,procureai).subProcessType: Sub-type of process (e.g.,tenderprojects).
- Example:
RBAC Considerations
The ERP system employs strict Role-Based Access Control (RBAC). You must specify the following parameters correctly to avoid exceptions:- typeOfProcess
- projectId
- subProcessType
