Skip to content

update_table doesn't work #17

Description

@jescorotero

I tested the method using Claude Desktop and it seems that the update of table description doesn't work as expected, without error, the new description or any other update is not performed. however, using the expected method via API with curl, it works as expected

I tried to clone the repo, and updating a couple of lines in the update_table method
// Before

async updateTable(id: number, updateData: any): Promise<any> {
  const response = await this.axiosInstance.put(`/api/table/${id}`, updateData);
  return response.data;
}

// after

async updateTable(id: number, updateData: any): Promise<any> {
  const response = await this.axiosInstance.request({
    method: 'PUT',
    url: `/api/table/${id}`,
    data: updateData,
    headers: {
      'Content-Type': 'application/json',
      'X-API-Key': this.config.apiKey,
    },
  });
  return response.data;

}

Using the updated version with .request it works

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions