API error 1008

RSMKevin
RSMKevin
edited 01/23/24 in API & Developers

I'm receiving this error when creating a new subrow using this API https://api.smartsheet.com/2.0/sheets/{MySheetId}/rows

{
	"refId": "98a680f9-09b4-4703-894b-98d30a5ab2f9",
	"errorCode": 1008,
	"message": "Unable to parse request."
}

This request was working previously, here is the JSON body that is being sent:

[
    {
        "cells": [
            {
                "columnId": 7851003459096452,
                "value": "No Track Specified"
            },
            {
                "columnId": 2221503924883332,
                "value": 110
            },
            {
                "columnId": 6725103552253828,
                "value": 0
            },
            {
                "columnId": 4473303738568580,
                "value": 47
            },
            {
                "columnId": 8976903365939076,
                "value": 0
            }
        ],
        "parentId": 5090900936396676,
        "toTop": true
    }
]

Not sure why I'm getting this error, if I remove the parentId from the body, it does create the row but doesn't do so under the parent row.

This was previously working and only recently stopped working.

Any ideas?

Answers

  • Genevieve P.
    Genevieve P. Employee Admin
    edited 01/26/24

    Hey @RSMKevin

    Your structure looks correct to me! I've tested this on my own sheets and it works without an error.

    If this recently happened, could there have been a change to that parent row? If there have been no changes, I would suggest reaching out to Smartsheet Support with your full request and the sheet URL.

    Cheers,

    Genevieve