Update row 404 Not Found

For the life of me i can not get the update rows API to work. Upsert works. Here’s the code and structure. I verified that the row_id and col_id are correct. What am I doing wrong?

    update_url = f"https://coda.io/apis/v1/docs/{self.doc_id}/tables/{self.table_id}/rows/{row_id}"
        data = {
            "row": {
                "cells": [
                    {
                        "column": col_id,
                        "value": new_value
                    }
                ]
            }
        }
        response = requests.post(update_url, headers=self.headers, json=data)
1 Like

Hey Garry, welcome!
I think it’s “rows”, not “row” :slight_smile:
Best of luck!

rows or row, doesn’t make a difference - still get unknown 404. According to the spec, it’s row when adding the row_id to the URL

1 Like

Hi @Garry_Horoupian - Welcome to the Coda community!

You seem to be using a POST here, but I think as per the spec it needs to be a PUT request.

1 Like

:roll_eyes: bingo!!! shouldn’t a 405 error code be reported for incorrect endpoint method?

Good idea! I’ll pass that along to the team.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.