Updates an existing contact person for a specific contract.
Endpoint
PATCH /contracts/{contractId}/contact-persons/{id}Authentication
Required: Authorization header with valid token
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
contractId | uuid | Yes | Contract unique identifier |
id | uuid | Yes | Contact person unique identifier |
Request Body
{
"name": "string",
"position": "string",
"phone": "string",
"email": "string",
"isMain": "boolean",
"externalId": "string"
}All fields are optional. Only the fields provided will be updated.
Field Descriptions:
name- Contact person's nameposition- Contact person's job position or titlephone- Contact person's phone numberemail- Contact person's email address (validated as email format)isMain- Whether this is the primary contact person for the contract. Only one contact person per contract can be marked as mainexternalId- External system identifier for the contact person
Response
Error
Example Usage
curl -X PATCH "https://integration-api.ram.syniotec.com/master-data/v1/contract-management/contracts/123e4567-e89b-12d3-a456-426614174000/contact-persons/98765432-abcd-efgh-ijkl-123456789012" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Doe",
"isMain": true
}'