最近搜索


没有最近搜索

Zachary Spence's Avatar

Zachary Spence

已加入2024年8月15日

·

最后活动2025年1月06日

关注

0

关注者

0

活动总数

4

投票

1

订阅

1

活动概览

的最新活动 Zachary Spence

Zachary Spence 进行了评论,

社区评论 Developer - Zendesk APIs

In case anyone else stumbles upon this issue, I ended up stringing single API calls together with &&.

查看评论 · 已于 2025年1月06日 发布 · Zachary Spence

0

关注者

0

投票

0

评论


Zachary Spence 创建了一个帖子,

帖子 Developer - Zendesk APIs

Hi team,

 

Could someone please help me figure out how to format the json to set actions (i.e., update fields) for many macros at once? I'm looking here, but it only shows me how to update the active status for the macro or the macro position. But I need to update other fields (like, all of them: priority, type, comment text, category, etc) for ~500 macros, so I'm desperately hoping I'm just formatting my json incorrectly and it's not the case that you can only use this endpoint for updating active status and position :x.

 

This is the json I used to test, and the active status changed properly but the actions didn't stick. Am I formatting incorrectly?

 

{
   "macros":
   [
       {
           "id": 1234,
           "active": false,
           "actions":
           [
               {
                   "field": "subject",
                   "value": "New, many-update subject."
               },
               {
                   "field": "status",
                   "value": "pending"
               }
           ]
       },
       {
           "id": 12345,
           "active": false,
           "actions":
           [
               {
                   "field": "subject",
                   "value": "New, many-update subject."
               },
               {
                   "field": "status",
                   "value": "pending"
               }
           ]
       }
   ]
}

 

 

已于 2024年8月15日 发布 · Zachary Spence

0

关注者

1

投票

1

Comment