> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sarasfinance.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Process

> Initialize a new business process within a sub-project.

### Body Parameters

<ParamField body="subProjectId" type="string" placeholder="sp_123" required>
  The unique identifier for the sub-project where the process will be created.
</ParamField>

<ParamField body="fields" type="object">
  Dynamic fields to initialize the process with. Example: `{"remarks": 2026}`
</ParamField>

### Response

<ResponseField name="id" type="string">
  The unique ID of the newly created process.
</ResponseField>

<ResponseField name="status" type="string">
  Success or failure status message.
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl --location 'https://api.sarasfinance.com/v1/process/createProcess' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer <token>' \
  --data '{
      "fields": {
          "remarks": 2026
      },
      "subProjectId": "93d599a6-a396-4ef6-b30e-aff95c56c523"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "id": "proc_8f29c01",
    "status": "success",
    "message": "Process created successfully"
  }
  ```
</ResponseExample>

### Error Codes

| Code                                           | ID   | Description                            |
| :--------------------------------------------- | :--- | :------------------------------------- |
| `ERROR_PROCESS_META_IS_MISSING_IN_REQUEST`     | 1200 | Metadata missing in request            |
| `ERROR_SUBPROCESS_META_NOT_FOUND`              | 1202 | Sub-project metadata not found         |
| `ERROR_NOT_ALLOWED_TO_CREATE`                  | 1206 | User unauthorized to create data       |
| `ERROR_CREATING_PROCESS`                       | 1222 | Internal error during process creation |
| `ERROR_CREATING_PROCESS_DEFAULT_STAGE_NOT_SET` | 1223 | Default stage configuration missing    |
| `ERROR_PROCESS_INVALID_FIELD_VALUE`            | 1232 | Invalid value provided for field       |
