Unable to Parse JSON for Summary Field Updates

Options
ehutton
ehutton ✭✭
edited 03/18/25 in API & Developers

Hi, I'm just attempting to use Smartsheet's API to update the values within the summary fields of a newly created sheet. I got my function for updating the columns to work, but I keep receiving the error below when I try to update the summary fields.

ERROR - {'errorCode': 1008, 'message': 'Unable to parse request. The following error occurred: Field "objectValue" was of unexpected type.', 'refId': 'x3iq9w'}

Here is the JSON payload… Everything looks correct, but am I missing something?

image.png image.png

Answers

  • Georgie
    Georgie Employee
    edited 03/20/25

    Hi @ehutton,

    I tested this on my end and found that I received similar errors. However, I found this related Community thread and having reviewed this, I confirmed in my testing that you don’t need to include the “objectType” as this is included under “type”. 

    You can therefore simplify this, so that if you want to update the value within a summary field, it’ll look like this (with your values):

    Screenshot 2025-03-20 at 11.12.48.png

    And if you want to update the summary field title and the value, it’ll look like this (with your values):

    Screenshot 2025-03-20 at 11.12.55.png

    I understand that the API documentation doesn’t specify that this is possible in this way - if you’d like to provide feedback on the API documentation, please fill out this form.

    Does that work for you?

    Georgie

    Need more information? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions

NEW Smartsheet API Documentation - bookmark the updated link! https://developers.smartsheet.com