I want to post an update to a project or a task. To do this, I think that the right object type is a note, but I haven't been able to do this successfully.
I'm making a request to:
but receive the following error:
{"error":{"class":"com.attask.common.InvalidParameterException","message":"Invalid Parameter: objCode value \"proj\"","title":null,"msgKey":"exception.attask","attributes":[""],"code":0}}
Am I on the right track or is there something else I need to do?
Thanks.
Joe
Try json encoding the post data and see if that gets you a different result. Such as:
https://COMPANYNAME.attask-ondemand.com/attask/api/v4.0/note?updates={noteText=testing&objID=PROJECTID¬eObjCode=proj}&method=post&sessionID=XXXX
FYI: The v4.0 in the url is specifying the AtTask's api version if you do not have it in the url it will default to v2.0.