{
"examples": { "request": { "json": { "incident": { "name": "Incident Name", "site_id": 1, "department_id": 1, "description": "description", "state_id": 1, "assignee": { "email": "john.doe@email.com" }, "requester": { "email": "john.doe@email.com" }, "priority": "High", "category": { "name": "Facilities" }, "subcategory": { "name": "Equipment" }, "due_at": "Jan 01,2025", "add_to_tag_list": "tag1, tag2", "remove_from_tag_list": "tag3", "tag_list": "tag1, tag2", "custom_fields_values_attributes": [ { "id": 10, "custom_field_id": 1, "value": "content" }, { "id": 100, "custom_field_id": 2, "value": "1" } ], "custom_fields_values": { "custom_fields_value": [ { "name": "Text custom field", "value": "content" }, { "name": "User custom field", "user_value": { "email": "john.doe@email.com" } } ] }, "incidents": [{ "number": "100" }], "problems": [{ "number": "100" }], "changes": [{ "number": "100" }], "solutions": [{ "number" :"100" }], "releases": [{ "number": "100" }], "configuration_item_ids":["100"], "cc": ["jane.doe@email.com"] } } }, "response": { "json": { "incident": { "id": "10000", "number": "1000", "name": "Incident Name", "description": "description", "state": "New", "site": { "id": "1", "name": "Austin TX, USA", "location": "AUS", "description": "", "time_zone": "" }, "department": { "id": "1", "name": "Support", "description": "", "default_assignee_id": "1" }, "category": { "id": "10000", "name": "Facilities", "default_tags": "tagA, tagB", "parent_id": "null", "default_assignee_id": "1" }, "subcategory": { "id": "1000", "name": "Equipment", "default_tags": "", "parent_id": "10000", "default_assignee_id": "1" }, "priority": "High", "assignee": { "group_id": "1", "is_user": "true", "id": "1", "name": "John Doe", "email": "john.doe@email.com", "avatar": { "type": "initials", "color": "#fd4165", "initials": "JD" } }, "requester": { "id": "1", "account_id": "1", "user_id": "1", "email": "john.doe@email.com", "name": "John Doe", "disabled": false, "avatar": { "type": "initials", "color": "#fd4165", "initials": "JD" } }, "custom_fields_values": [ { "id": "10", "custom_field_id": "1", "name": "Text custom field", "value": "content", "options": "", "type_name": "Text" }, { "id": "100", "custom_field_id": "2", "name": "User custom field", "value": "1", "options": "", "type_name": "User", "user": { "group_id": 1, "is_user": true, "id": 1, "name": "John Doe", "email": "john.doe@email.com" } } ], "due_at": "2025-01-01T00:00:00.000+01:00", "origin": "api", "incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}], "problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}], "changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}], "solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}], "releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}], "configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}], "is_service_request": false, "cc": ["jane.doe@email.com"] } } } }
}