The REST docs for this API: https://api.clarizen.com/V2.0/services/data/ResourceManagementQuery
The SOAP docs: https://api.clarizen.com/v2.0/docs/index.aspx and select "ResourceManagementQuery" from the index
I'm trying to automate getting the resource load report through the API. I'm using V2 of the API.
but it seems to only be available for V1 of the API?
Could anyone point me in the right direction?
Please sign in to leave a comment.
The REST docs for this API: https://api.clarizen.com/V2.0/services/data/ResourceManagementQuery
The SOAP docs: https://api.clarizen.com/v2.0/docs/index.aspx and select "ResourceManagementQuery" from the index
Thanks, the documentation looks like this is exactly what I need.
However, this returns a not found error:
curl -H "Authorization: Session yadi-yadi-yadi" https://api2.clarizen.com/V2.0/services/data/resourceManagementQuery
I get this error:
{
"errorCode": "FileNotFound",
"message": "File not found: data/resourceManagementQuery.",
"referenceId": "gFRgYJ6OBaoN7iRijBrAm"
}
Try with POST
:-)
Thanks!
OK, so now I get a 500 Internal server error instead.
From the docs, it looks like no parameters are required. If that's not correct, do you know what parameters I need to set?
Got it working after looking at this https://success.clarizen.com/hc/en-us/community/posts/205373507-Get-custom-fields-using-ResourceManagementQuery
Posting my work to anyone who comes looking. :-)
This gets the resource load for a single user (with the ID yadi-yadi-yadi) in hours for a period of four weeks (controlled by the dates in the timeFilter)
POST to https://api2.clarizen.com/V2.0/services/data/resourceManagementQuery
JSON: