Expand my Community achievements bar.

Do you have questions about the migration to Adobe Business Platform? Our experts will be answering your questions starting TOMORROW at 8 AM PST!

Using API to update QUED object

Avatar

Level 3
One of our folks with a plan license has created 200+ projects with a published request queue (isPublic > 0 ). I would like to use the API to set this value to 0 (not published) to get them out of the new request pull down list. I've already worked out the code to grab all the project IDs for Owner ID = x and then from that get a list of the QUED objects, so the next step would be to cycle thru each queue and set the variable to zero. I'm stuck getting a put command to make the change. I've tried about 6 different PUT commands and all end in error when testing via a URL call: { error : { class : "java.lang.UnsupportedOperationException" , message : "unable to find method for service endpoint type: EDIT (class com.attask.biz.QueueDefMethods$$EnhancerBySpringCGLIB$$33d95269)" } } I'm guessing this means the value cannot be edited (changed) via the API or more likely that my put command is poorly formatted.. If is does turn out that the field cannot be updated this way - can it be be updated at all via API ? and if not editable - how would one know this so I don't waste time trying to figure out if another API call is 'impossible' in the future?? Here is my most recent effort: https://fujimed.my.workfront.com/attask/api/v7.0/QUED/xxxxqueue id herexxxx?updates={"isPublic":"0"}&method=put&apiKey=xxredactedAPIkeyxxxx&fields=isPublic Help/Ideas welcome Hope to see meet u in Dallas Jim Brown FujiFilm Medical Systems, USA
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Level 10
Hi Jim, Fortune shines: setting a queue topic to be public is the example used in the "https://support.workfront.com/hc/en-us/articles/115003574147-API-Basics">API Basics help article to illustrate how to update a nested object. I've pasted the excerpt below for you. Regards, Doug NOTE While updates made to the top level are sparse, updates to a collection or nested object completely replace the existing collection. To edit a single assignment on a task without affecting the objects, use PUT on the assignment rather than on the task. The following example makes a project a public help desk queue. Note that the existing queue properties are replaced. PUT /attask/api/v9.0/project/4c7...?updates= { queueDef: { isPublic: 1 } } Doug Den Hoed - AtAppStore Got Skills? Lend a hand! https://community.workfront.com/participate/unanswered-threads

Avatar

Level 3
Duh - read all that and didn't make the connection. That what you get when you do 'lab time' late at night ..... Thanks Doug Jim Brown FujiFilm Medical Systems, USA