Update Item problem (Ruby client)

Comments

5 comments

  • Andreas Haugstrup Pedersen

    Small things first: Your field_id should be an integer and not a string. What's the type of field you're trying to update?

    0
    Comment actions Permalink
  • Razvan Botea

    Ok, I assume you refer to the 'field_id' inside the attributes parameter (I was passing it as a string). Will check it. The type of field is 'app'.

    0
    Comment actions Permalink
  • Razvan Botea

    Same error I'm afraid. I converted the string using to_i (I also printed it on output and it's fine). Help? :-s

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    I think the app field requires you to send values as an array of integers rather than just a single integer

    0
    Comment actions Permalink
  • Razvan Botea

    I'm getting the same error. Here's the pretty-print of the 'attributes' param:

    {:fields=>{86736327=>[250394683]}}

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk