const response = await fetch("https://algapsa.com/api/v1/contract-lines/{id}", {
method: "PUT",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"contract_line_name": "x",
"billing_frequency": "weekly",
"is_custom": false,
"service_category": "string",
"contract_line_type": "Fixed",
"cadence_owner": "client",
"hourly_rate": 0,
"minimum_billable_time": 0,
"round_up_to_nearest": 1,
"enable_overtime": false,
"overtime_rate": 0,
"overtime_threshold": 0,
"enable_after_hours_rate": false,
"after_hours_multiplier": 0,
"is_active": false,
"features": [
"string"
],
"location_id": "01HN2K7VRB9PQ3Y0000000000"
})
});
const data = await response.json();