Search code examples
attask

Post an update to a project or task


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:

https://COMPANYNAME.attask-ondemand.com/attask/api/note?noteText=testing&objID=PROJECTID&method=POST&SESSIONID&noteObjCode=proj

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


Solution

  • 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&noteObjCode=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.