Hello @feldman.michael!
When an incident is created, those body details get added to the log entry for the incident. When using the API, they are found under the first_trigger_log_entry under channel.details. You just need to include first_trigger_log_entry in your request.
Example Request
curl --request GET \
--url 'https://api.pagerduty.com/incidents/R2ACS5PFLPB6CCXFLA8D44JBSV?include%5B%5D=first_trigger_log_entries' \
--header 'Accept: application/json' \
--header 'Authorization: Token token=YOUR_TOKEN' \
--header 'Content-Type: application/json'
Example Response
{
"incident": {
"id": "PT4KHLK",
"type": "incident",
"summary": "[#1234] The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK",
"incident_number": 1234,
"title": "The server is on fire.",
"created_at": "2015-10-06T21:30:42Z",
...
"first_trigger_log_entry": {
"id": "Q02JTSNZWHSEKV",
"type": "trigger_log_entry_reference",
"summary": "Triggered through the API",
"self": "https://api.pagerduty.com/log_entries/Q02JTSNZWHSEKV?incident_id=PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK/log_entries/Q02JTSNZWHSEKV"
}
}
}
To update this log entry you need to use the update log entry operation. This should do what you are looking for.
One other thing to consider for your workflow is to use the custom fields instead of the log entry. If you are trying to standardise on certain fields for all incidents across services it might make sense and they can be updated on the incident information directly.
Note: Custom fields is available with the Business and Digital Operations pricing plans.
I hope this helps!