Get Service Request approval Reason via API

I am trying to read service request approval reason via API, but I can’t find it via API browser. Have I overlooked something?

Thank you for any hint
maaca

1 Like

Hello!
I have the same question
If you have found a solution, please share it

If you add attributes=reason you’ll get the reason, i.e.

https://<ip>/api/requests/46?attributes=id,description,approval_state,reason

gives:

{
    "href": "https://<ip>/api/requests/46",
    "id": "46",
    "description": "Provisioning Service [RHEL 7 VM Registered with RHN] from [RHEL 7 VM Registered with RHN]",
    "approval_state": "approved",
    "reason": "Auto-Approved"
}

Thank you!
It was just what I needed