Description
POST
/spreadsheets
Required OAuth Scopes:
data_tables|w
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
body | body | SpreadsheetBody | true | Properties for creating a new spreadsheet |
Body parameter example
{
"name": "Test Spreadsheet"
}
Code Samples
curl -X POST https://api.app.wdesk.com/spreadsheets/v1/spreadsheets \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
http POST https://api.app.wdesk.com/spreadsheets/v1/spreadsheets \
Content-Type:application/json \
Accept:application/json \
Authorization:"Bearer {access-token}"
wget --method=POST "https://api.app.wdesk.com/spreadsheets/v1/spreadsheets" \
--output-document - \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.post('https://api.app.wdesk.com/spreadsheets/v1/spreadsheets', headers = headers)
print(r.json())
Returns
201 - Created
Returns a JSON object with data
and revision
properties. data
contains a Spreadsheet
object holding details about the new Spreadsheet
.
Example Responses
{
"data": {
"created": "2020-04-30T13:59:49.294Z",
"id": "567nd179ed984eb5a52aaaba5f83a230",
"last_modified": "2020-04-30T13:59:52.003Z",
"name": "Test Spreadsheet"
},
"message": "Operation successful",
"request_id": "d6a6ce3f-f120-4104-9587-a5a2dc45626c",
"revision": "integer"
}