Skip to content

Update Beneficiaries

To update the information of a beneficiary in your Slick ERP organization, use your API key for authentication and provide the beneficiary’s details in the request body.

Endpoint

PUT /beneficiaries/{id}

Base URL:

https://api.erpslick.com/v1

Replace {id} with the ID of the beneficiary you want to update.

Headers

Include your API key in the request headers to authenticate:

Authorization: Bearer YOUR_API_KEY Content-Type: application/json

Replace YOUR_API_KEY with the API key you generated for your organization.

Request Body

The request body should include the details of the beneficiary that you want to update:

{
"budget_lines": ["0001", "0002"]
}

Fields

  • budget_lines: (Optional) The updated list of the beneficiary’s budget lines.

Example Request

Terminal window
curl -X PUT "https://api.erpslick.com/v1/beneficiaries/123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Name",
"account_number": "123456789",
"bank": "Updated Bank"
}'

Response

A successful request returns a JSON object containing the updated details of the beneficiary:

{
"id": "123",
"budget_lines": ["0001", "0002"]
}