const response = await fetch("https://algapsa.com/api/v1/client-contract-lines", {
method: "POST",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"client_id": "01HN2K7VRB9PQ3Y0000000000",
"contract_line_id": "01HN2K7VRB9PQ3Y0000000000",
"service_category": "string",
"start_date": "2026-04-18T15:22:14Z",
"end_date": "2026-04-18T15:22:14Z",
"is_active": false,
"custom_rate": 0,
"client_contract_id": "01HN2K7VRB9PQ3Y0000000000"
})
});
const data = await response.json();