Skip to main content
POST
/
v1
/
projects
/
{project}
/
sheets:batchCreate
cURL
curl --request POST \
  --url https://api.example.com/v1/projects/{project}/sheets:batchCreate \
  --header 'Content-Type: application/json' \
  --data '
{
  "parent": "<string>",
  "requests": [
    {
      "parent": "<string>",
      "sheet": {
        "name": "<string>",
        "title": "<string>",
        "content": "<string>",
        "engine": "ENGINE_UNSPECIFIED",
        "payload": {
          "type": "TYPE_UNSPECIFIED",
          "commands": [
            {
              "start": 123,
              "end": 123
            }
          ]
        }
      }
    }
  ]
}
'
{
  "sheets": [
    {
      "name": "<string>",
      "title": "<string>",
      "content": "<string>",
      "engine": "ENGINE_UNSPECIFIED",
      "creator": "<string>",
      "createTime": "2023-11-07T05:31:56Z",
      "contentSize": "<string>",
      "payload": {
        "type": "TYPE_UNSPECIFIED",
        "commands": [
          {
            "start": 123,
            "end": 123
          }
        ]
      }
    }
  ]
}

Path Parameters

project
string
required

The project id.

Body

application/json
parent
string
required

The parent resource where all sheets will be created. Format: projects/{project}

requests
object[]
required

Response

OK

sheets
object[]