# Modified date is null on API call to /beta/access-request-approvals/completed

**URL:** <https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518>\
**Category:** SHF Discussion and Questions\
**Created:** [August 24, 2022, 2:44pm UTC](https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518 "2022-08-24T14:44:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsessions](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@bsessions](https://developer.sailpoint.com/discuss/u/bsessions)\
**Post date:** [August 24, 2022, 2:44pm UTC](https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518/1 "2022-08-24T14:44:24Z")

</div>

We have completed access requests in our API call where the modified date is not getting populated. According to the following example a modified date should be present.

> **[list-completed-approvals | SailPoint Developer Community](https://developer.sailpoint.com/idn/api/beta/list-completed-approvals)**
>
> Completed Access Request Approvals List

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [August 24, 2022, 4:08pm UTC](https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518/2 "2022-08-24T16:08:15Z")

</div>

Welcome to the developer community Bryan.

I believe the `modified` attribute is null because the database entry for the completed approval has only been created, not modified. A completed approval entry is likely different from an access request entry, so it never gets modified. There might be some confusion here because there doesn’t seem to be a way to modify a completed approval, so this can only ever be null.

I will follow up with the engineering team to verify if what I said above is true or not. If it is true, then I will update the API spec to make it clear that modified will only be null.

---

<div class="post-metadata">

**Author:** ![bsessions](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@bsessions](https://developer.sailpoint.com/discuss/u/bsessions)\
**Post date:** [August 29, 2022, 2:21pm UTC](https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518/3 "2022-08-29T14:21:45Z")

</div>

Thank you for the information Colin. We were under the impression that an access request created an object when it was in pending status and then updated the same object when the approval happened. According to what you are saying this is not the case. We want to process all completed access requests that have occurred in the last twenty four hours. Could we just call the API to get all completed access requests by the created date? Thanks.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [September 8, 2022, 2:28pm UTC](https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518/4 "2022-09-08T14:28:33Z")

</div>

Just got confirmation from engineering that a [completed approval object](https://developer.sailpoint.com/idn/api/v3/list-completed-approvals) is a different object than a [pending approval object](https://developer.sailpoint.com/idn/api/v3/list-pending-approvals), even though they have similar fields. The `modified` property of a completed approval will always be `null` since you can’t update a completed approval, so you should use the `created` property in your query.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [September 30, 2022, 6:32pm UTC](https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518/5 "2022-09-30T18:32:36Z")

</div>

Engineering has now implemented the `modified` field, so it will no longer be null. The `modified` field correlates the closest with when the access request was completed, so please use `modified` when searching for access requests that have been completed in the last twenty four hours.

---

<div class="post-metadata">

**Author:** ![masd](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@masd](https://developer.sailpoint.com/discuss/u/masd)\
**Post date:** [April 21, 2023, 12:09pm UTC](https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518/6 "2023-04-21T12:09:38Z")

</div>

Hello all, sorry to resurrect an old thread, but i am still getting null data when using the modified field in a filter for gt OR ge

`https://{org}.api.identitynow.com/v3/access-request-approvals/completed?filters=modified gt 2023-04-21T02:00:00.000Z`  
this returns or Null, when i put a count=true, i see the count as 0

I know there are approvals, as i have done a few after that time…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:23pm UTC](https://developer.sailpoint.com/discuss/t/modified-date-is-null-on-api-call-to-beta-access-request-approvals-completed/5518/7 "2023-07-19T14:23:29Z")

</div>

Closed on July 19, 2023, 2:23pm UTC


