How do I visually get a red bar if an incident happened in the past.
Asked by bartbehage:

I know it is possible to create a backfill an incident.

But I want it also visually in the bar with the color red. How can you do this?


Answers:
author: Rafael Meira
body: Hey Bartbehage,   
My name is Rafa with the Statuspage support.  

To visually backfill an incident in Statuspage, **you will need to use the Statuspage API to update the incident status**. Here is an example of how to do this using cURL:

1. First, make sure you have the incident ID of the incident that you want to backfill. You can find the incident ID in the URL of the incident page, or by using the List Incidents API endpoint.

2. Next, use the Update an Incident API endpoint to update the incident status to "investigating." You will need to include the incident ID in the endpoint URL, and pass the status and backfill parameters in the request body. Here is an example of how to do this using cURL:

Copy code  
`curl -X PATCH `"<https://api.statuspage.io/v1/pages/{page_id}/incidents/{incident_id>}"` \ -H `"Authorization: OAuth {api_key}"` \ -H `"Content-Type: application/json"` \ -d `'{` `"incident"`: { `"status"`: `"investigating"`, `"backfill"`: `true` } }`'

```
?
```

This will update the incident status to "investigating" and visually backfill the incident in the status page timeline. The incident will appear in the timeline with a red bar to indicate that it is in progress.  

Here is the API documentation [API](https://developer.statuspage.io/#tag/metrics)

I hope this helps! :)  

<br />

Best  
Rafa  

<br />

comments: author: bartbehage
body: Sorry, but this does not give a good result, see image below

Could there be a bug in the frond-end?


author: Alan Violada
body: Hey Bartbehage, your best bet for your use case, in order for the changes to appear on the graph, would be to directly edit the component uptime for that day by going into the "Components" tab, clicking on the desired component, then clicking on the desired day in the graph, and changing either the "Partial outage" or "Major outage" times for that day as you wish, then clicking save. That should then start reflecting on your uptime graph, as well as the uptime percentage calculation.

[![screenshot_modify_uptime_2023-02-21T14:40:30.134Z.gif](https://api.media.atlassian.com/file/2586d7cd-ae19-4ae0-9c9a-c94f15d237e5/binary?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI0YTllMzNlYi0xMWExLTQ5NTUtYjA0OC0zYTliZTYwZmMxY2IiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjU4MjcyODMiOlsidXBkYXRlIiwicmVhZCIsImluc2VydCJdLCJ1cm46ZmlsZXN0b3JlOmZpbGUiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOmNodW5rOioiOlsiY3JlYXRlIiwicmVhZCJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZCI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQ6KiI6WyJyZWFkIiwiY3JlYXRlIiwidXBkYXRlIiwiZGVsZXRlIl19LCJuYmYiOjE2Nzc1MDI3MDYsImV4cCI6MTY3NzUyNDMwNn0.fQBTHvP7qQQr45pw7yWOG2QrFJyx63DxhBhdX0ac018&client=4a9e33eb-11a1-4955-b048-3a9be60fc1cb&collection=5827283&max-age=43200&dl=true)](https://cst-transfer-service.us-east-1.prod.atl-paas.net/preview/5827283/attachment/2586d7cd-ae19-4ae0-9c9a-c94f15d237e5) [![EDIT UPTIME_2023-02-21T14:41:06.574Z.png](https://api.media.atlassian.com/file/226321b7-d3b2-4843-a286-17467f8a0fab/binary?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI0YTllMzNlYi0xMWExLTQ5NTUtYjA0OC0zYTliZTYwZmMxY2IiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjU4MjcyODMiOlsidXBkYXRlIiwicmVhZCIsImluc2VydCJdLCJ1cm46ZmlsZXN0b3JlOmZpbGUiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOmNodW5rOioiOlsiY3JlYXRlIiwicmVhZCJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZCI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQ6KiI6WyJyZWFkIiwiY3JlYXRlIiwidXBkYXRlIiwiZGVsZXRlIl19LCJuYmYiOjE2Nzc1MDI3MDYsImV4cCI6MTY3NzUyNDMwNn0.fQBTHvP7qQQr45pw7yWOG2QrFJyx63DxhBhdX0ac018&client=4a9e33eb-11a1-4955-b048-3a9be60fc1cb&collection=5827283&max-age=43200&dl=true)](https://cst-transfer-service.us-east-1.prod.atl-paas.net/preview/5827283/attachment/226321b7-d3b2-4843-a286-17467f8a0fab)

Let me know if you run into any issues with this!

Cheers,  
Alan


author: Alan Violada
body: Hey Bartbehage, your best bet for your use case, in order for the changes to appear on the graph, would be to directly edit the component uptime for that day by going into the "Components" tab, clicking on the desired component, then clicking on the desired day in the graph, and changing either the "Partial outage" or "Major outage" times for that day as you wish, then clicking save. That should then start reflecting on your uptime graph, as well as the uptime percentage calculation.

[![screenshot_modify_uptime_2023-02-21T14:40:30.134Z.gif](https://api.media.atlassian.com/file/2586d7cd-ae19-4ae0-9c9a-c94f15d237e5/binary?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI0YTllMzNlYi0xMWExLTQ5NTUtYjA0OC0zYTliZTYwZmMxY2IiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjU4MjcyODMiOlsidXBkYXRlIiwicmVhZCIsImluc2VydCJdLCJ1cm46ZmlsZXN0b3JlOmZpbGUiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOmNodW5rOioiOlsiY3JlYXRlIiwicmVhZCJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZCI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQ6KiI6WyJyZWFkIiwiY3JlYXRlIiwidXBkYXRlIiwiZGVsZXRlIl19LCJuYmYiOjE2Nzc1MDI3MDYsImV4cCI6MTY3NzUyNDMwNn0.fQBTHvP7qQQr45pw7yWOG2QrFJyx63DxhBhdX0ac018&client=4a9e33eb-11a1-4955-b048-3a9be60fc1cb&collection=5827283&max-age=43200&dl=true)](https://cst-transfer-service.us-east-1.prod.atl-paas.net/preview/5827283/attachment/2586d7cd-ae19-4ae0-9c9a-c94f15d237e5) [![EDIT UPTIME_2023-02-21T14:41:06.574Z.png](https://api.media.atlassian.com/file/226321b7-d3b2-4843-a286-17467f8a0fab/binary?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI0YTllMzNlYi0xMWExLTQ5NTUtYjA0OC0zYTliZTYwZmMxY2IiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOjU4MjcyODMiOlsidXBkYXRlIiwicmVhZCIsImluc2VydCJdLCJ1cm46ZmlsZXN0b3JlOmZpbGUiOlsiY3JlYXRlIl0sInVybjpmaWxlc3RvcmU6ZmlsZToqIjpbImRlbGV0ZSJdLCJ1cm46ZmlsZXN0b3JlOmNodW5rOioiOlsiY3JlYXRlIiwicmVhZCJdLCJ1cm46ZmlsZXN0b3JlOnVwbG9hZCI6WyJjcmVhdGUiXSwidXJuOmZpbGVzdG9yZTp1cGxvYWQ6KiI6WyJyZWFkIiwiY3JlYXRlIiwidXBkYXRlIiwiZGVsZXRlIl19LCJuYmYiOjE2Nzc1MDI3MDYsImV4cCI6MTY3NzUyNDMwNn0.fQBTHvP7qQQr45pw7yWOG2QrFJyx63DxhBhdX0ac018&client=4a9e33eb-11a1-4955-b048-3a9be60fc1cb&collection=5827283&max-age=43200&dl=true)](https://cst-transfer-service.us-east-1.prod.atl-paas.net/preview/5827283/attachment/226321b7-d3b2-4843-a286-17467f8a0fab)

Let me know if you run into any issues with this!

Cheers,  
Alan


author: bartbehage
body: ![Screenshot 2023-02-27 at 10.04.33.png](https://community.atlassian.com/t5/image/serverpage/image-id/242497i8B93713C09A190E0/image-size/large?v=v2&px=999 "Screenshot 2023-02-27 at 10.04.33.png")


Tags: cloud