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
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives