I am currently trying to update my smartsheet sheet with data. I have used the smartsheet sheet_id to get all of the columns and there ID's associated with the sheet here:
Now I use that function inside of my other function which iterates and stores the necessary data to get the column ID's I need to iterate through here:
The data that you see being appended to the list "cloudcheckrBillingData" is coming from an api call I made above which I cannot show for security purposes but rest assured that the data is coming in and that's not apart of the issue. For reference the data looks like this [('hi','hello','goodbye'), ('thank you','for','your','help!')] it is a list of tuples. Once I have all that data I attempt to iterate over the sheetColumns data that I get from the above "getColums" call which returns a list of column ids. Then I iterate again over the cloudcheckrBillingData and then again to get each individual piece of data within the tuple. This data is all being passed to the "addToColumns" function which is this:
This function takes in the iterated columnId, the sheetId which is hardcoded at the top and works perfectly fine (can't show again for security reasons) and the iterated data from the last nested for loop above.
The error I am currently getting when running this program is as follows:
{"index": 0, "options": ["007475378486 (IR DOI-OSMRE)"], "title": "007475378486 (IR DOI-OSMRE)", "type": "TEXT_NUMBER"}
{"response": {"statusCode": 404, "reason": "Not Found", "content": {"errorCode": 1006, "message": "Not Found", "refId": "1krpbkz7vgvz9"}}}
{"result": {"code": 1006, "errorCode": 1006, "message": "Not Found", "name": "ApiError", "recommendation": "Do not retry without fixing the problem. ", "refId": "1krpbkz7vgvz9", "shouldRetry": false, "statusCode": 404}}
As you see the data in the first line is properly print but I get a 404 for some reason and I'm not sure how to interpret the rest. Any help would be greatly appreciated!!