Improved resource construction process
Update resource request function

To better align with the API endpoints