- Connectors
- Resources
- Google Sheets API v4 | V4 Spreadsheets {spreadsheetid}:batchupdate [Shared]
- Show
- REST API
Retrieve all existing Resources:
Retrieve all existing Resources you have previously created.
get https://cenit.io/api/v2/setup/resource.json
tenant_access_key='...' tenant_access_token='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"page":1,"limit":25,"order":"id"}' \ "https://cenit.io/api/v2/setup/resource.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/resource.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', 'content' => '{"page":1,"limit":25,"order":"id"}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/resource.json", :method => 'GET', :payload => '{"page":1,"limit":25,"order":"id"}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/resource.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"page":1,"limit":25,"order":"id"}) }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/resource.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, qs: {"page":1,"limit":25,"order":"id"} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/resource.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: {"page":1,"limit":25,"order":"id"}, success: function(data, textStatus, jqXHR) { console.log(data); } });
Create an Resource:
Creates the specified Resource. Any parameters not provided will be left unchanged.
post https://cenit.io/api/v2/setup/resource.json
tenant_access_key='...' tenant_access_token='...' curl -X POST \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}' \ "https://cenit.io/api/v2/setup/resource.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/resource.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'POST', 'content' => '{"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/resource.json", :method => 'POST', :payload => '{"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/resource.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}) }; session = Session() request = Request('POST', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'POST', url: 'https://cenit.io/api/v2/setup/resource.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, body: {"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/resource.json', method: 'POST', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: JSON.stringify({"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}), success: function(data, textStatus, jqXHR) { console.log(data); } });
Retrieve an existing Resource:
Retrieves the details of an existing Resource. You need only supply the unique Resource identifier that was returned upon Resource creation.
get https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json
tenant_access_key='...' tenant_access_token='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json", :method => 'GET', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Update an Resource:
Updates the specified Resource. Any parameters not provided will be left unchanged.
post https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json
tenant_access_key='...' tenant_access_token='...' curl -X POST \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}' \ "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'POST', 'content' => '{"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json", :method => 'POST', :payload => '{"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}) }; session = Session() request = Request('POST', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'POST', url: 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, body: {"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json', method: 'POST', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: JSON.stringify({"creator_id":{},"updater_id":{},"tenant_id":{},"namespace":"","name":"","metadata":{},"path":"","description":""}), success: function(data, textStatus, jqXHR) { console.log(data); } });
Delete an existing Resource:
Permanently deletes an existing Resource. It cannot be undone.
delete https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json
tenant_access_key='...' tenant_access_token='...' curl -X DELETE \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'DELETE', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json", :method => 'DELETE', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('DELETE', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'DELETE', url: 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8.json', method: 'DELETE', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Retrieve one attribute of an existing Resource:
Retrieves one attribute of an existing Resource.
get https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8/{view}.json
tenant_access_key='...' tenant_access_token='...' view='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8/${view}.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $view = '...'; $uri = "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8/${view}.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' view = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8/#{view}.json", :method => 'GET', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' view = '...' uri = 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8/%s.json' % (tenant_access_key, tenant_access_token, view) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', view = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8/${view}.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...', view = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/resource/5ba13de325d98515340015d8/${view}.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Basic info
- Namespace
- Google Sheets API v4
- Name
- V4 Spreadsheets {spreadsheetid}:batchupdate
- Path
- /v4/spreadsheets/{{spreadsheetId}}:batchUpdate
- Operations
-
Resource Method Description Parameters Google Sheets API v4 | V4 Spreadsheets {spreadsheetid}:batchupdate [Shared] post Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. The replies will mirror the requests. For example, if you applied 4 updates and the 3rd one had a reply, then the response will have 2 empty replies, the actual reply, and another empty reply, in that order. Due to the collaborative nature of spreadsheets, it is not guaranteed that the spreadsheet will reflect exactly your changes after this completes, however it is guaranteed that the updates in the request will be applied together atomically. Your changes may be altered with respect to collaborator changes. If there are no collaborators, the spreadsheet should reflect your changes. 1 Operations - Id
- 5ba13de325d98515340015d8
- Created at
- September 18, 2018 18:03
- Updated at
- October 01, 2018 19:46
Parameters & Headers
- Template parameters
-
Name Value Description Metadata Updated at spreadsheetId - The spreadsheet to apply the updates to. September 20, 2018 20:49 1 Parameters