SmartSheetAPI PUT
Hello,
I want to use the Smartsheet API to update the content of a cell. I have set the API key in the header and tried the following using Postman:
PUT
Request URL:
https://api.smartsheet.com/2.0/sheets/{sheetId}/rows/{rowId}/cells/{columnId}
Request Body (JSON):
{
"value": "test",
"displayValue": "test"
}
However, I'm getting a "status: 404 NotFound" error, and I receive the following response:
{
"errorCode": 1006,
"message": "Not Found",
"refId": "XXXX"
}
Could someone please tell me the cause of this issue and how to resolve it? I apologize if my English is not natural.
Answers
-
Hi @Hawaii
What I would do here through Postman is have Cells be in the Body so that you can use an array to identify the columns/cells to update:
Request URL:
https://api.smartsheet.com/2.0/sheets/{sheetId}/rows/{rowId}
Request Body (JSON):
{ "cells": [ { "columnId": xxxx, "value": "test" }, { "columnId": xxxx, "value": "test" } ]}
Here's the API Documentation for Update Rows.
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives