Skip to main content
Answered

Unable to update ticket_attribute of type list via API

  • December 13, 2023
  • 2 replies
  • 182 views

Hey there, I am currently building an intercom integration to sync tickets. I have a custom ticket attribute called “priority” of type list which has the options “urgent”, “high”, “normal”,  and “low”.

I try to update the ticket attribute like this via the Dev Docs and the try out button. Without the attribute the flow works fine (so my Bearer token and the rest is set up correctly):

Json body:

{
  "ticket_attributes": {
    "_default_title_": "example",
    "_default_description_": "there is a problem",
    "priority": "urgent"
  },
  "state": "in_progress"
}

 

I get the following error message:

{ "type": "error.list", "request_id": "0016erd0q33c1jgjf750","errors": [{ "code": "parameter_invalid", "message": "'urgent' is not a valid value for attribute 'priority' of type 'list'" } ] }

 

I also tried “priority”: [“urgent”], “priority”: “[urgent]” and more. Could you tell me which schema is expected for the list attribute?

Kind Regards

Ian

Best answer by Jacob Cox

Actually @Ian Test 1 !

I just came across the answer! For list attributes you don’t pass in the value of the list item. You have to pass in the ‘id’ of the List object that you want to change it to (as a String).

This is mentioned in our API docs here

That should get things fixed for you!

View original
Did this topic help you find an answer to your question?

2 replies

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • December 24, 2023

Hi @Ian Test 1 !

I just tested this out in my own workspace and I’m also having issues updating a List attribute. I’m going to open an issue up around this with our product team so they can investigate. Thanks for bringing this to our attention!


Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • Answer
  • December 24, 2023

Actually @Ian Test 1 !

I just came across the answer! For list attributes you don’t pass in the value of the list item. You have to pass in the ‘id’ of the List object that you want to change it to (as a String).

This is mentioned in our API docs here

That should get things fixed for you!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings