Batch Update Row Link error

Hi there, hoping someone can assist.

We are trying to use PUT Batch Update Row Links as per the example response provided in the API docs, and getting a param invalid error message.

API docs reference

URL
https://cloud.seatable.io/dtable-server/api/v1/dtables/9221fda8-04e5-441d-8811-2025520d6a87/batch-update-links/

Method
PUT

Data
{
links: [
{
row_id: ‘NkxMJOJ5Stu9g7ic0TrvWg’,
link_id: ‘Ns78’,
table_id: ‘Ez7U’,
other_table_id: ‘Vnbw’,
other_rows_ids: [ ‘Kxduz0aSRVi1XLjmXQsvKA’ ]
},
{
row_id: ‘Cj2AedVLQYmH4pE1fmdQ7g’,
link_id: ‘Ns78’,
table_id: ‘Ez7U’,
other_table_id: ‘Vnbw’,
other_rows_ids: [ ‘Qq_ZyMXtQ4-9IZYPZq4OUA’ ]
}
]
}

Error
{ error_type: ‘parameter_error’, error_message: ‘param invalid.’ }

Thanks!
Shane

Hi there, welcome to SeaTable!

Sorry for the inconvenience: the example request in the API documentation was not up-to-date (but the example request body was correct!).
We have just updated the documentation together with the release of SeaTable 3.2.

In the updated reference you’ll see the difference:
image

As per your request above, the link_id, table_id, and other_table_id can stay. But you need to change the other params to row_id_list and other_rows_ids_map.

Thanks for pointing this out!

1 Like

Thanks for the assistance. We now have it working :+1:

1 Like

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