const response = await fetch("https://algapsa.com/api/v1/tickets/{id}", {
method: "PUT",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"title": "x",
"url": "https://example.com",
"board_id": "01HN2K7VRB9PQ3Y0000000000",
"client_id": "01HN2K7VRB9PQ3Y0000000000",
"location_id": "01HN2K7VRB9PQ3Y0000000000",
"contact_name_id": "01HN2K7VRB9PQ3Y0000000000",
"status_id": "01HN2K7VRB9PQ3Y0000000000",
"category_id": "01HN2K7VRB9PQ3Y0000000000",
"subcategory_id": "01HN2K7VRB9PQ3Y0000000000",
"assigned_to": "01HN2K7VRB9PQ3Y0000000000",
"priority_id": "01HN2K7VRB9PQ3Y0000000000",
"attributes": {},
"tags": [
"string"
],
"override_close_rules": false,
"override_close_rules_reason": "string",
"suppressContactNotifications": false,
"suppressInternalNotifications": false
})
});
const data = await response.json();