Update Supplier
Endpoint: PUT /suppliers/{id}
Authentication: Bearer Token (required)
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | UUID of the supplier to update |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token for authentication. Format: Bearer <token> |
| Content-Type | string | Yes | Must be application/json |
Request Body
The request body must be a JSON object with the following structure:
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Name of the supplier (e.g., "Supplier B") |
| phone | string | No | Phone number of the supplier (e.g., "263773591219") |
| string | No | Email address of the supplier (e.g., "vusakhoza@gmail.com") | |
| registrationId | string | No | Business registration or tax ID of the supplier (e.g., "082095363P41") |
| companyIdString | string | Yes | UUID of the company that this supplier belongs to |
Example Request Body
{
"name": "Supplier B",
"phone": "263773591219",
"email": "vusakhoza@gmail.com",
"registrationId": "082095363P41",
"companyIdString": "f5506f1d-3959-41cb-bd7b-c878c34f5a72"
}