POST forms.forms.batchUpdate
{{baseUrl}}/v1/forms/:formId:batchUpdate
QUERY PARAMS

formId
BODY json

{
  "includeFormInResponse": false,
  "requests": [
    {
      "createItem": {
        "item": {
          "description": "",
          "imageItem": {
            "image": {
              "altText": "",
              "contentUri": "",
              "properties": {
                "alignment": "",
                "width": 0
              },
              "sourceUri": ""
            }
          },
          "itemId": "",
          "pageBreakItem": {},
          "questionGroupItem": {
            "grid": {
              "columns": {
                "options": [
                  {
                    "goToAction": "",
                    "goToSectionId": "",
                    "image": {},
                    "isOther": false,
                    "value": ""
                  }
                ],
                "shuffle": false,
                "type": ""
              },
              "shuffleQuestions": false
            },
            "image": {},
            "questions": [
              {
                "choiceQuestion": {},
                "dateQuestion": {
                  "includeTime": false,
                  "includeYear": false
                },
                "fileUploadQuestion": {
                  "folderId": "",
                  "maxFileSize": "",
                  "maxFiles": 0,
                  "types": []
                },
                "grading": {
                  "correctAnswers": {
                    "answers": [
                      {
                        "value": ""
                      }
                    ]
                  },
                  "generalFeedback": {
                    "material": [
                      {
                        "link": {
                          "displayText": "",
                          "uri": ""
                        },
                        "video": {
                          "displayText": "",
                          "youtubeUri": ""
                        }
                      }
                    ],
                    "text": ""
                  },
                  "pointValue": 0,
                  "whenRight": {},
                  "whenWrong": {}
                },
                "questionId": "",
                "required": false,
                "rowQuestion": {
                  "title": ""
                },
                "scaleQuestion": {
                  "high": 0,
                  "highLabel": "",
                  "low": 0,
                  "lowLabel": ""
                },
                "textQuestion": {
                  "paragraph": false
                },
                "timeQuestion": {
                  "duration": false
                }
              }
            ]
          },
          "questionItem": {
            "image": {},
            "question": {}
          },
          "textItem": {},
          "title": "",
          "videoItem": {
            "caption": "",
            "video": {
              "properties": {},
              "youtubeUri": ""
            }
          }
        },
        "location": {
          "index": 0
        }
      },
      "deleteItem": {
        "location": {}
      },
      "moveItem": {
        "newLocation": {},
        "originalLocation": {}
      },
      "updateFormInfo": {
        "info": {
          "description": "",
          "documentTitle": "",
          "title": ""
        },
        "updateMask": ""
      },
      "updateItem": {
        "item": {},
        "location": {},
        "updateMask": ""
      },
      "updateSettings": {
        "settings": {
          "quizSettings": {
            "isQuiz": false
          }
        },
        "updateMask": ""
      }
    }
  ],
  "writeControl": {
    "requiredRevisionId": "",
    "targetRevisionId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms/:formId:batchUpdate");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/forms/:formId:batchUpdate" {:content-type :json
                                                                         :form-params {:includeFormInResponse false
                                                                                       :requests [{:createItem {:item {:description ""
                                                                                                                       :imageItem {:image {:altText ""
                                                                                                                                           :contentUri ""
                                                                                                                                           :properties {:alignment ""
                                                                                                                                                        :width 0}
                                                                                                                                           :sourceUri ""}}
                                                                                                                       :itemId ""
                                                                                                                       :pageBreakItem {}
                                                                                                                       :questionGroupItem {:grid {:columns {:options [{:goToAction ""
                                                                                                                                                                       :goToSectionId ""
                                                                                                                                                                       :image {}
                                                                                                                                                                       :isOther false
                                                                                                                                                                       :value ""}]
                                                                                                                                                            :shuffle false
                                                                                                                                                            :type ""}
                                                                                                                                                  :shuffleQuestions false}
                                                                                                                                           :image {}
                                                                                                                                           :questions [{:choiceQuestion {}
                                                                                                                                                        :dateQuestion {:includeTime false
                                                                                                                                                                       :includeYear false}
                                                                                                                                                        :fileUploadQuestion {:folderId ""
                                                                                                                                                                             :maxFileSize ""
                                                                                                                                                                             :maxFiles 0
                                                                                                                                                                             :types []}
                                                                                                                                                        :grading {:correctAnswers {:answers [{:value ""}]}
                                                                                                                                                                  :generalFeedback {:material [{:link {:displayText ""
                                                                                                                                                                                                       :uri ""}
                                                                                                                                                                                                :video {:displayText ""
                                                                                                                                                                                                        :youtubeUri ""}}]
                                                                                                                                                                                    :text ""}
                                                                                                                                                                  :pointValue 0
                                                                                                                                                                  :whenRight {}
                                                                                                                                                                  :whenWrong {}}
                                                                                                                                                        :questionId ""
                                                                                                                                                        :required false
                                                                                                                                                        :rowQuestion {:title ""}
                                                                                                                                                        :scaleQuestion {:high 0
                                                                                                                                                                        :highLabel ""
                                                                                                                                                                        :low 0
                                                                                                                                                                        :lowLabel ""}
                                                                                                                                                        :textQuestion {:paragraph false}
                                                                                                                                                        :timeQuestion {:duration false}}]}
                                                                                                                       :questionItem {:image {}
                                                                                                                                      :question {}}
                                                                                                                       :textItem {}
                                                                                                                       :title ""
                                                                                                                       :videoItem {:caption ""
                                                                                                                                   :video {:properties {}
                                                                                                                                           :youtubeUri ""}}}
                                                                                                                :location {:index 0}}
                                                                                                   :deleteItem {:location {}}
                                                                                                   :moveItem {:newLocation {}
                                                                                                              :originalLocation {}}
                                                                                                   :updateFormInfo {:info {:description ""
                                                                                                                           :documentTitle ""
                                                                                                                           :title ""}
                                                                                                                    :updateMask ""}
                                                                                                   :updateItem {:item {}
                                                                                                                :location {}
                                                                                                                :updateMask ""}
                                                                                                   :updateSettings {:settings {:quizSettings {:isQuiz false}}
                                                                                                                    :updateMask ""}}]
                                                                                       :writeControl {:requiredRevisionId ""
                                                                                                      :targetRevisionId ""}}})
require "http/client"

url = "{{baseUrl}}/v1/forms/:formId:batchUpdate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/forms/:formId:batchUpdate"),
    Content = new StringContent("{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms/:formId:batchUpdate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms/:formId:batchUpdate"

	payload := strings.NewReader("{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/forms/:formId:batchUpdate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3803

{
  "includeFormInResponse": false,
  "requests": [
    {
      "createItem": {
        "item": {
          "description": "",
          "imageItem": {
            "image": {
              "altText": "",
              "contentUri": "",
              "properties": {
                "alignment": "",
                "width": 0
              },
              "sourceUri": ""
            }
          },
          "itemId": "",
          "pageBreakItem": {},
          "questionGroupItem": {
            "grid": {
              "columns": {
                "options": [
                  {
                    "goToAction": "",
                    "goToSectionId": "",
                    "image": {},
                    "isOther": false,
                    "value": ""
                  }
                ],
                "shuffle": false,
                "type": ""
              },
              "shuffleQuestions": false
            },
            "image": {},
            "questions": [
              {
                "choiceQuestion": {},
                "dateQuestion": {
                  "includeTime": false,
                  "includeYear": false
                },
                "fileUploadQuestion": {
                  "folderId": "",
                  "maxFileSize": "",
                  "maxFiles": 0,
                  "types": []
                },
                "grading": {
                  "correctAnswers": {
                    "answers": [
                      {
                        "value": ""
                      }
                    ]
                  },
                  "generalFeedback": {
                    "material": [
                      {
                        "link": {
                          "displayText": "",
                          "uri": ""
                        },
                        "video": {
                          "displayText": "",
                          "youtubeUri": ""
                        }
                      }
                    ],
                    "text": ""
                  },
                  "pointValue": 0,
                  "whenRight": {},
                  "whenWrong": {}
                },
                "questionId": "",
                "required": false,
                "rowQuestion": {
                  "title": ""
                },
                "scaleQuestion": {
                  "high": 0,
                  "highLabel": "",
                  "low": 0,
                  "lowLabel": ""
                },
                "textQuestion": {
                  "paragraph": false
                },
                "timeQuestion": {
                  "duration": false
                }
              }
            ]
          },
          "questionItem": {
            "image": {},
            "question": {}
          },
          "textItem": {},
          "title": "",
          "videoItem": {
            "caption": "",
            "video": {
              "properties": {},
              "youtubeUri": ""
            }
          }
        },
        "location": {
          "index": 0
        }
      },
      "deleteItem": {
        "location": {}
      },
      "moveItem": {
        "newLocation": {},
        "originalLocation": {}
      },
      "updateFormInfo": {
        "info": {
          "description": "",
          "documentTitle": "",
          "title": ""
        },
        "updateMask": ""
      },
      "updateItem": {
        "item": {},
        "location": {},
        "updateMask": ""
      },
      "updateSettings": {
        "settings": {
          "quizSettings": {
            "isQuiz": false
          }
        },
        "updateMask": ""
      }
    }
  ],
  "writeControl": {
    "requiredRevisionId": "",
    "targetRevisionId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/forms/:formId:batchUpdate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms/:formId:batchUpdate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId:batchUpdate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/forms/:formId:batchUpdate")
  .header("content-type", "application/json")
  .body("{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  includeFormInResponse: false,
  requests: [
    {
      createItem: {
        item: {
          description: '',
          imageItem: {
            image: {
              altText: '',
              contentUri: '',
              properties: {
                alignment: '',
                width: 0
              },
              sourceUri: ''
            }
          },
          itemId: '',
          pageBreakItem: {},
          questionGroupItem: {
            grid: {
              columns: {
                options: [
                  {
                    goToAction: '',
                    goToSectionId: '',
                    image: {},
                    isOther: false,
                    value: ''
                  }
                ],
                shuffle: false,
                type: ''
              },
              shuffleQuestions: false
            },
            image: {},
            questions: [
              {
                choiceQuestion: {},
                dateQuestion: {
                  includeTime: false,
                  includeYear: false
                },
                fileUploadQuestion: {
                  folderId: '',
                  maxFileSize: '',
                  maxFiles: 0,
                  types: []
                },
                grading: {
                  correctAnswers: {
                    answers: [
                      {
                        value: ''
                      }
                    ]
                  },
                  generalFeedback: {
                    material: [
                      {
                        link: {
                          displayText: '',
                          uri: ''
                        },
                        video: {
                          displayText: '',
                          youtubeUri: ''
                        }
                      }
                    ],
                    text: ''
                  },
                  pointValue: 0,
                  whenRight: {},
                  whenWrong: {}
                },
                questionId: '',
                required: false,
                rowQuestion: {
                  title: ''
                },
                scaleQuestion: {
                  high: 0,
                  highLabel: '',
                  low: 0,
                  lowLabel: ''
                },
                textQuestion: {
                  paragraph: false
                },
                timeQuestion: {
                  duration: false
                }
              }
            ]
          },
          questionItem: {
            image: {},
            question: {}
          },
          textItem: {},
          title: '',
          videoItem: {
            caption: '',
            video: {
              properties: {},
              youtubeUri: ''
            }
          }
        },
        location: {
          index: 0
        }
      },
      deleteItem: {
        location: {}
      },
      moveItem: {
        newLocation: {},
        originalLocation: {}
      },
      updateFormInfo: {
        info: {
          description: '',
          documentTitle: '',
          title: ''
        },
        updateMask: ''
      },
      updateItem: {
        item: {},
        location: {},
        updateMask: ''
      },
      updateSettings: {
        settings: {
          quizSettings: {
            isQuiz: false
          }
        },
        updateMask: ''
      }
    }
  ],
  writeControl: {
    requiredRevisionId: '',
    targetRevisionId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/forms/:formId:batchUpdate');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId:batchUpdate',
  headers: {'content-type': 'application/json'},
  data: {
    includeFormInResponse: false,
    requests: [
      {
        createItem: {
          item: {
            description: '',
            imageItem: {
              image: {
                altText: '',
                contentUri: '',
                properties: {alignment: '', width: 0},
                sourceUri: ''
              }
            },
            itemId: '',
            pageBreakItem: {},
            questionGroupItem: {
              grid: {
                columns: {
                  options: [{goToAction: '', goToSectionId: '', image: {}, isOther: false, value: ''}],
                  shuffle: false,
                  type: ''
                },
                shuffleQuestions: false
              },
              image: {},
              questions: [
                {
                  choiceQuestion: {},
                  dateQuestion: {includeTime: false, includeYear: false},
                  fileUploadQuestion: {folderId: '', maxFileSize: '', maxFiles: 0, types: []},
                  grading: {
                    correctAnswers: {answers: [{value: ''}]},
                    generalFeedback: {
                      material: [{link: {displayText: '', uri: ''}, video: {displayText: '', youtubeUri: ''}}],
                      text: ''
                    },
                    pointValue: 0,
                    whenRight: {},
                    whenWrong: {}
                  },
                  questionId: '',
                  required: false,
                  rowQuestion: {title: ''},
                  scaleQuestion: {high: 0, highLabel: '', low: 0, lowLabel: ''},
                  textQuestion: {paragraph: false},
                  timeQuestion: {duration: false}
                }
              ]
            },
            questionItem: {image: {}, question: {}},
            textItem: {},
            title: '',
            videoItem: {caption: '', video: {properties: {}, youtubeUri: ''}}
          },
          location: {index: 0}
        },
        deleteItem: {location: {}},
        moveItem: {newLocation: {}, originalLocation: {}},
        updateFormInfo: {info: {description: '', documentTitle: '', title: ''}, updateMask: ''},
        updateItem: {item: {}, location: {}, updateMask: ''},
        updateSettings: {settings: {quizSettings: {isQuiz: false}}, updateMask: ''}
      }
    ],
    writeControl: {requiredRevisionId: '', targetRevisionId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms/:formId:batchUpdate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"includeFormInResponse":false,"requests":[{"createItem":{"item":{"description":"","imageItem":{"image":{"altText":"","contentUri":"","properties":{"alignment":"","width":0},"sourceUri":""}},"itemId":"","pageBreakItem":{},"questionGroupItem":{"grid":{"columns":{"options":[{"goToAction":"","goToSectionId":"","image":{},"isOther":false,"value":""}],"shuffle":false,"type":""},"shuffleQuestions":false},"image":{},"questions":[{"choiceQuestion":{},"dateQuestion":{"includeTime":false,"includeYear":false},"fileUploadQuestion":{"folderId":"","maxFileSize":"","maxFiles":0,"types":[]},"grading":{"correctAnswers":{"answers":[{"value":""}]},"generalFeedback":{"material":[{"link":{"displayText":"","uri":""},"video":{"displayText":"","youtubeUri":""}}],"text":""},"pointValue":0,"whenRight":{},"whenWrong":{}},"questionId":"","required":false,"rowQuestion":{"title":""},"scaleQuestion":{"high":0,"highLabel":"","low":0,"lowLabel":""},"textQuestion":{"paragraph":false},"timeQuestion":{"duration":false}}]},"questionItem":{"image":{},"question":{}},"textItem":{},"title":"","videoItem":{"caption":"","video":{"properties":{},"youtubeUri":""}}},"location":{"index":0}},"deleteItem":{"location":{}},"moveItem":{"newLocation":{},"originalLocation":{}},"updateFormInfo":{"info":{"description":"","documentTitle":"","title":""},"updateMask":""},"updateItem":{"item":{},"location":{},"updateMask":""},"updateSettings":{"settings":{"quizSettings":{"isQuiz":false}},"updateMask":""}}],"writeControl":{"requiredRevisionId":"","targetRevisionId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms/:formId:batchUpdate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "includeFormInResponse": false,\n  "requests": [\n    {\n      "createItem": {\n        "item": {\n          "description": "",\n          "imageItem": {\n            "image": {\n              "altText": "",\n              "contentUri": "",\n              "properties": {\n                "alignment": "",\n                "width": 0\n              },\n              "sourceUri": ""\n            }\n          },\n          "itemId": "",\n          "pageBreakItem": {},\n          "questionGroupItem": {\n            "grid": {\n              "columns": {\n                "options": [\n                  {\n                    "goToAction": "",\n                    "goToSectionId": "",\n                    "image": {},\n                    "isOther": false,\n                    "value": ""\n                  }\n                ],\n                "shuffle": false,\n                "type": ""\n              },\n              "shuffleQuestions": false\n            },\n            "image": {},\n            "questions": [\n              {\n                "choiceQuestion": {},\n                "dateQuestion": {\n                  "includeTime": false,\n                  "includeYear": false\n                },\n                "fileUploadQuestion": {\n                  "folderId": "",\n                  "maxFileSize": "",\n                  "maxFiles": 0,\n                  "types": []\n                },\n                "grading": {\n                  "correctAnswers": {\n                    "answers": [\n                      {\n                        "value": ""\n                      }\n                    ]\n                  },\n                  "generalFeedback": {\n                    "material": [\n                      {\n                        "link": {\n                          "displayText": "",\n                          "uri": ""\n                        },\n                        "video": {\n                          "displayText": "",\n                          "youtubeUri": ""\n                        }\n                      }\n                    ],\n                    "text": ""\n                  },\n                  "pointValue": 0,\n                  "whenRight": {},\n                  "whenWrong": {}\n                },\n                "questionId": "",\n                "required": false,\n                "rowQuestion": {\n                  "title": ""\n                },\n                "scaleQuestion": {\n                  "high": 0,\n                  "highLabel": "",\n                  "low": 0,\n                  "lowLabel": ""\n                },\n                "textQuestion": {\n                  "paragraph": false\n                },\n                "timeQuestion": {\n                  "duration": false\n                }\n              }\n            ]\n          },\n          "questionItem": {\n            "image": {},\n            "question": {}\n          },\n          "textItem": {},\n          "title": "",\n          "videoItem": {\n            "caption": "",\n            "video": {\n              "properties": {},\n              "youtubeUri": ""\n            }\n          }\n        },\n        "location": {\n          "index": 0\n        }\n      },\n      "deleteItem": {\n        "location": {}\n      },\n      "moveItem": {\n        "newLocation": {},\n        "originalLocation": {}\n      },\n      "updateFormInfo": {\n        "info": {\n          "description": "",\n          "documentTitle": "",\n          "title": ""\n        },\n        "updateMask": ""\n      },\n      "updateItem": {\n        "item": {},\n        "location": {},\n        "updateMask": ""\n      },\n      "updateSettings": {\n        "settings": {\n          "quizSettings": {\n            "isQuiz": false\n          }\n        },\n        "updateMask": ""\n      }\n    }\n  ],\n  "writeControl": {\n    "requiredRevisionId": "",\n    "targetRevisionId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId:batchUpdate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms/:formId:batchUpdate',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  includeFormInResponse: false,
  requests: [
    {
      createItem: {
        item: {
          description: '',
          imageItem: {
            image: {
              altText: '',
              contentUri: '',
              properties: {alignment: '', width: 0},
              sourceUri: ''
            }
          },
          itemId: '',
          pageBreakItem: {},
          questionGroupItem: {
            grid: {
              columns: {
                options: [{goToAction: '', goToSectionId: '', image: {}, isOther: false, value: ''}],
                shuffle: false,
                type: ''
              },
              shuffleQuestions: false
            },
            image: {},
            questions: [
              {
                choiceQuestion: {},
                dateQuestion: {includeTime: false, includeYear: false},
                fileUploadQuestion: {folderId: '', maxFileSize: '', maxFiles: 0, types: []},
                grading: {
                  correctAnswers: {answers: [{value: ''}]},
                  generalFeedback: {
                    material: [{link: {displayText: '', uri: ''}, video: {displayText: '', youtubeUri: ''}}],
                    text: ''
                  },
                  pointValue: 0,
                  whenRight: {},
                  whenWrong: {}
                },
                questionId: '',
                required: false,
                rowQuestion: {title: ''},
                scaleQuestion: {high: 0, highLabel: '', low: 0, lowLabel: ''},
                textQuestion: {paragraph: false},
                timeQuestion: {duration: false}
              }
            ]
          },
          questionItem: {image: {}, question: {}},
          textItem: {},
          title: '',
          videoItem: {caption: '', video: {properties: {}, youtubeUri: ''}}
        },
        location: {index: 0}
      },
      deleteItem: {location: {}},
      moveItem: {newLocation: {}, originalLocation: {}},
      updateFormInfo: {info: {description: '', documentTitle: '', title: ''}, updateMask: ''},
      updateItem: {item: {}, location: {}, updateMask: ''},
      updateSettings: {settings: {quizSettings: {isQuiz: false}}, updateMask: ''}
    }
  ],
  writeControl: {requiredRevisionId: '', targetRevisionId: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId:batchUpdate',
  headers: {'content-type': 'application/json'},
  body: {
    includeFormInResponse: false,
    requests: [
      {
        createItem: {
          item: {
            description: '',
            imageItem: {
              image: {
                altText: '',
                contentUri: '',
                properties: {alignment: '', width: 0},
                sourceUri: ''
              }
            },
            itemId: '',
            pageBreakItem: {},
            questionGroupItem: {
              grid: {
                columns: {
                  options: [{goToAction: '', goToSectionId: '', image: {}, isOther: false, value: ''}],
                  shuffle: false,
                  type: ''
                },
                shuffleQuestions: false
              },
              image: {},
              questions: [
                {
                  choiceQuestion: {},
                  dateQuestion: {includeTime: false, includeYear: false},
                  fileUploadQuestion: {folderId: '', maxFileSize: '', maxFiles: 0, types: []},
                  grading: {
                    correctAnswers: {answers: [{value: ''}]},
                    generalFeedback: {
                      material: [{link: {displayText: '', uri: ''}, video: {displayText: '', youtubeUri: ''}}],
                      text: ''
                    },
                    pointValue: 0,
                    whenRight: {},
                    whenWrong: {}
                  },
                  questionId: '',
                  required: false,
                  rowQuestion: {title: ''},
                  scaleQuestion: {high: 0, highLabel: '', low: 0, lowLabel: ''},
                  textQuestion: {paragraph: false},
                  timeQuestion: {duration: false}
                }
              ]
            },
            questionItem: {image: {}, question: {}},
            textItem: {},
            title: '',
            videoItem: {caption: '', video: {properties: {}, youtubeUri: ''}}
          },
          location: {index: 0}
        },
        deleteItem: {location: {}},
        moveItem: {newLocation: {}, originalLocation: {}},
        updateFormInfo: {info: {description: '', documentTitle: '', title: ''}, updateMask: ''},
        updateItem: {item: {}, location: {}, updateMask: ''},
        updateSettings: {settings: {quizSettings: {isQuiz: false}}, updateMask: ''}
      }
    ],
    writeControl: {requiredRevisionId: '', targetRevisionId: ''}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/forms/:formId:batchUpdate');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  includeFormInResponse: false,
  requests: [
    {
      createItem: {
        item: {
          description: '',
          imageItem: {
            image: {
              altText: '',
              contentUri: '',
              properties: {
                alignment: '',
                width: 0
              },
              sourceUri: ''
            }
          },
          itemId: '',
          pageBreakItem: {},
          questionGroupItem: {
            grid: {
              columns: {
                options: [
                  {
                    goToAction: '',
                    goToSectionId: '',
                    image: {},
                    isOther: false,
                    value: ''
                  }
                ],
                shuffle: false,
                type: ''
              },
              shuffleQuestions: false
            },
            image: {},
            questions: [
              {
                choiceQuestion: {},
                dateQuestion: {
                  includeTime: false,
                  includeYear: false
                },
                fileUploadQuestion: {
                  folderId: '',
                  maxFileSize: '',
                  maxFiles: 0,
                  types: []
                },
                grading: {
                  correctAnswers: {
                    answers: [
                      {
                        value: ''
                      }
                    ]
                  },
                  generalFeedback: {
                    material: [
                      {
                        link: {
                          displayText: '',
                          uri: ''
                        },
                        video: {
                          displayText: '',
                          youtubeUri: ''
                        }
                      }
                    ],
                    text: ''
                  },
                  pointValue: 0,
                  whenRight: {},
                  whenWrong: {}
                },
                questionId: '',
                required: false,
                rowQuestion: {
                  title: ''
                },
                scaleQuestion: {
                  high: 0,
                  highLabel: '',
                  low: 0,
                  lowLabel: ''
                },
                textQuestion: {
                  paragraph: false
                },
                timeQuestion: {
                  duration: false
                }
              }
            ]
          },
          questionItem: {
            image: {},
            question: {}
          },
          textItem: {},
          title: '',
          videoItem: {
            caption: '',
            video: {
              properties: {},
              youtubeUri: ''
            }
          }
        },
        location: {
          index: 0
        }
      },
      deleteItem: {
        location: {}
      },
      moveItem: {
        newLocation: {},
        originalLocation: {}
      },
      updateFormInfo: {
        info: {
          description: '',
          documentTitle: '',
          title: ''
        },
        updateMask: ''
      },
      updateItem: {
        item: {},
        location: {},
        updateMask: ''
      },
      updateSettings: {
        settings: {
          quizSettings: {
            isQuiz: false
          }
        },
        updateMask: ''
      }
    }
  ],
  writeControl: {
    requiredRevisionId: '',
    targetRevisionId: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId:batchUpdate',
  headers: {'content-type': 'application/json'},
  data: {
    includeFormInResponse: false,
    requests: [
      {
        createItem: {
          item: {
            description: '',
            imageItem: {
              image: {
                altText: '',
                contentUri: '',
                properties: {alignment: '', width: 0},
                sourceUri: ''
              }
            },
            itemId: '',
            pageBreakItem: {},
            questionGroupItem: {
              grid: {
                columns: {
                  options: [{goToAction: '', goToSectionId: '', image: {}, isOther: false, value: ''}],
                  shuffle: false,
                  type: ''
                },
                shuffleQuestions: false
              },
              image: {},
              questions: [
                {
                  choiceQuestion: {},
                  dateQuestion: {includeTime: false, includeYear: false},
                  fileUploadQuestion: {folderId: '', maxFileSize: '', maxFiles: 0, types: []},
                  grading: {
                    correctAnswers: {answers: [{value: ''}]},
                    generalFeedback: {
                      material: [{link: {displayText: '', uri: ''}, video: {displayText: '', youtubeUri: ''}}],
                      text: ''
                    },
                    pointValue: 0,
                    whenRight: {},
                    whenWrong: {}
                  },
                  questionId: '',
                  required: false,
                  rowQuestion: {title: ''},
                  scaleQuestion: {high: 0, highLabel: '', low: 0, lowLabel: ''},
                  textQuestion: {paragraph: false},
                  timeQuestion: {duration: false}
                }
              ]
            },
            questionItem: {image: {}, question: {}},
            textItem: {},
            title: '',
            videoItem: {caption: '', video: {properties: {}, youtubeUri: ''}}
          },
          location: {index: 0}
        },
        deleteItem: {location: {}},
        moveItem: {newLocation: {}, originalLocation: {}},
        updateFormInfo: {info: {description: '', documentTitle: '', title: ''}, updateMask: ''},
        updateItem: {item: {}, location: {}, updateMask: ''},
        updateSettings: {settings: {quizSettings: {isQuiz: false}}, updateMask: ''}
      }
    ],
    writeControl: {requiredRevisionId: '', targetRevisionId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms/:formId:batchUpdate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"includeFormInResponse":false,"requests":[{"createItem":{"item":{"description":"","imageItem":{"image":{"altText":"","contentUri":"","properties":{"alignment":"","width":0},"sourceUri":""}},"itemId":"","pageBreakItem":{},"questionGroupItem":{"grid":{"columns":{"options":[{"goToAction":"","goToSectionId":"","image":{},"isOther":false,"value":""}],"shuffle":false,"type":""},"shuffleQuestions":false},"image":{},"questions":[{"choiceQuestion":{},"dateQuestion":{"includeTime":false,"includeYear":false},"fileUploadQuestion":{"folderId":"","maxFileSize":"","maxFiles":0,"types":[]},"grading":{"correctAnswers":{"answers":[{"value":""}]},"generalFeedback":{"material":[{"link":{"displayText":"","uri":""},"video":{"displayText":"","youtubeUri":""}}],"text":""},"pointValue":0,"whenRight":{},"whenWrong":{}},"questionId":"","required":false,"rowQuestion":{"title":""},"scaleQuestion":{"high":0,"highLabel":"","low":0,"lowLabel":""},"textQuestion":{"paragraph":false},"timeQuestion":{"duration":false}}]},"questionItem":{"image":{},"question":{}},"textItem":{},"title":"","videoItem":{"caption":"","video":{"properties":{},"youtubeUri":""}}},"location":{"index":0}},"deleteItem":{"location":{}},"moveItem":{"newLocation":{},"originalLocation":{}},"updateFormInfo":{"info":{"description":"","documentTitle":"","title":""},"updateMask":""},"updateItem":{"item":{},"location":{},"updateMask":""},"updateSettings":{"settings":{"quizSettings":{"isQuiz":false}},"updateMask":""}}],"writeControl":{"requiredRevisionId":"","targetRevisionId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"includeFormInResponse": @NO,
                              @"requests": @[ @{ @"createItem": @{ @"item": @{ @"description": @"", @"imageItem": @{ @"image": @{ @"altText": @"", @"contentUri": @"", @"properties": @{ @"alignment": @"", @"width": @0 }, @"sourceUri": @"" } }, @"itemId": @"", @"pageBreakItem": @{  }, @"questionGroupItem": @{ @"grid": @{ @"columns": @{ @"options": @[ @{ @"goToAction": @"", @"goToSectionId": @"", @"image": @{  }, @"isOther": @NO, @"value": @"" } ], @"shuffle": @NO, @"type": @"" }, @"shuffleQuestions": @NO }, @"image": @{  }, @"questions": @[ @{ @"choiceQuestion": @{  }, @"dateQuestion": @{ @"includeTime": @NO, @"includeYear": @NO }, @"fileUploadQuestion": @{ @"folderId": @"", @"maxFileSize": @"", @"maxFiles": @0, @"types": @[  ] }, @"grading": @{ @"correctAnswers": @{ @"answers": @[ @{ @"value": @"" } ] }, @"generalFeedback": @{ @"material": @[ @{ @"link": @{ @"displayText": @"", @"uri": @"" }, @"video": @{ @"displayText": @"", @"youtubeUri": @"" } } ], @"text": @"" }, @"pointValue": @0, @"whenRight": @{  }, @"whenWrong": @{  } }, @"questionId": @"", @"required": @NO, @"rowQuestion": @{ @"title": @"" }, @"scaleQuestion": @{ @"high": @0, @"highLabel": @"", @"low": @0, @"lowLabel": @"" }, @"textQuestion": @{ @"paragraph": @NO }, @"timeQuestion": @{ @"duration": @NO } } ] }, @"questionItem": @{ @"image": @{  }, @"question": @{  } }, @"textItem": @{  }, @"title": @"", @"videoItem": @{ @"caption": @"", @"video": @{ @"properties": @{  }, @"youtubeUri": @"" } } }, @"location": @{ @"index": @0 } }, @"deleteItem": @{ @"location": @{  } }, @"moveItem": @{ @"newLocation": @{  }, @"originalLocation": @{  } }, @"updateFormInfo": @{ @"info": @{ @"description": @"", @"documentTitle": @"", @"title": @"" }, @"updateMask": @"" }, @"updateItem": @{ @"item": @{  }, @"location": @{  }, @"updateMask": @"" }, @"updateSettings": @{ @"settings": @{ @"quizSettings": @{ @"isQuiz": @NO } }, @"updateMask": @"" } } ],
                              @"writeControl": @{ @"requiredRevisionId": @"", @"targetRevisionId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms/:formId:batchUpdate"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms/:formId:batchUpdate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms/:formId:batchUpdate",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'includeFormInResponse' => null,
    'requests' => [
        [
                'createItem' => [
                                'item' => [
                                                                'description' => '',
                                                                'imageItem' => [
                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                'altText' => '',
                                                                                                                                                                                                                                                                'contentUri' => '',
                                                                                                                                                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'alignment' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'sourceUri' => ''
                                                                                                                                ]
                                                                ],
                                                                'itemId' => '',
                                                                'pageBreakItem' => [
                                                                                                                                
                                                                ],
                                                                'questionGroupItem' => [
                                                                                                                                'grid' => [
                                                                                                                                                                                                                                                                'columns' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'options' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'goToAction' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'goToSectionId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'isOther' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'shuffle' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'shuffleQuestions' => null
                                                                                                                                ],
                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'questions' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'choiceQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dateQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'includeTime' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'includeYear' => null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'fileUploadQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'folderId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxFileSize' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxFiles' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'types' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'grading' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'correctAnswers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'answers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'generalFeedback' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'material' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'link' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'video' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'youtubeUri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'text' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pointValue' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'whenRight' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'whenWrong' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'questionId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'required' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'rowQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'title' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scaleQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'high' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'highLabel' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'low' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'lowLabel' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'textQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'paragraph' => null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'timeQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'duration' => null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'questionItem' => [
                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'question' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'textItem' => [
                                                                                                                                
                                                                ],
                                                                'title' => '',
                                                                'videoItem' => [
                                                                                                                                'caption' => '',
                                                                                                                                'video' => [
                                                                                                                                                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'youtubeUri' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'location' => [
                                                                'index' => 0
                                ]
                ],
                'deleteItem' => [
                                'location' => [
                                                                
                                ]
                ],
                'moveItem' => [
                                'newLocation' => [
                                                                
                                ],
                                'originalLocation' => [
                                                                
                                ]
                ],
                'updateFormInfo' => [
                                'info' => [
                                                                'description' => '',
                                                                'documentTitle' => '',
                                                                'title' => ''
                                ],
                                'updateMask' => ''
                ],
                'updateItem' => [
                                'item' => [
                                                                
                                ],
                                'location' => [
                                                                
                                ],
                                'updateMask' => ''
                ],
                'updateSettings' => [
                                'settings' => [
                                                                'quizSettings' => [
                                                                                                                                'isQuiz' => null
                                                                ]
                                ],
                                'updateMask' => ''
                ]
        ]
    ],
    'writeControl' => [
        'requiredRevisionId' => '',
        'targetRevisionId' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/forms/:formId:batchUpdate', [
  'body' => '{
  "includeFormInResponse": false,
  "requests": [
    {
      "createItem": {
        "item": {
          "description": "",
          "imageItem": {
            "image": {
              "altText": "",
              "contentUri": "",
              "properties": {
                "alignment": "",
                "width": 0
              },
              "sourceUri": ""
            }
          },
          "itemId": "",
          "pageBreakItem": {},
          "questionGroupItem": {
            "grid": {
              "columns": {
                "options": [
                  {
                    "goToAction": "",
                    "goToSectionId": "",
                    "image": {},
                    "isOther": false,
                    "value": ""
                  }
                ],
                "shuffle": false,
                "type": ""
              },
              "shuffleQuestions": false
            },
            "image": {},
            "questions": [
              {
                "choiceQuestion": {},
                "dateQuestion": {
                  "includeTime": false,
                  "includeYear": false
                },
                "fileUploadQuestion": {
                  "folderId": "",
                  "maxFileSize": "",
                  "maxFiles": 0,
                  "types": []
                },
                "grading": {
                  "correctAnswers": {
                    "answers": [
                      {
                        "value": ""
                      }
                    ]
                  },
                  "generalFeedback": {
                    "material": [
                      {
                        "link": {
                          "displayText": "",
                          "uri": ""
                        },
                        "video": {
                          "displayText": "",
                          "youtubeUri": ""
                        }
                      }
                    ],
                    "text": ""
                  },
                  "pointValue": 0,
                  "whenRight": {},
                  "whenWrong": {}
                },
                "questionId": "",
                "required": false,
                "rowQuestion": {
                  "title": ""
                },
                "scaleQuestion": {
                  "high": 0,
                  "highLabel": "",
                  "low": 0,
                  "lowLabel": ""
                },
                "textQuestion": {
                  "paragraph": false
                },
                "timeQuestion": {
                  "duration": false
                }
              }
            ]
          },
          "questionItem": {
            "image": {},
            "question": {}
          },
          "textItem": {},
          "title": "",
          "videoItem": {
            "caption": "",
            "video": {
              "properties": {},
              "youtubeUri": ""
            }
          }
        },
        "location": {
          "index": 0
        }
      },
      "deleteItem": {
        "location": {}
      },
      "moveItem": {
        "newLocation": {},
        "originalLocation": {}
      },
      "updateFormInfo": {
        "info": {
          "description": "",
          "documentTitle": "",
          "title": ""
        },
        "updateMask": ""
      },
      "updateItem": {
        "item": {},
        "location": {},
        "updateMask": ""
      },
      "updateSettings": {
        "settings": {
          "quizSettings": {
            "isQuiz": false
          }
        },
        "updateMask": ""
      }
    }
  ],
  "writeControl": {
    "requiredRevisionId": "",
    "targetRevisionId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms/:formId:batchUpdate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'includeFormInResponse' => null,
  'requests' => [
    [
        'createItem' => [
                'item' => [
                                'description' => '',
                                'imageItem' => [
                                                                'image' => [
                                                                                                                                'altText' => '',
                                                                                                                                'contentUri' => '',
                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                'alignment' => '',
                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                ],
                                                                                                                                'sourceUri' => ''
                                                                ]
                                ],
                                'itemId' => '',
                                'pageBreakItem' => [
                                                                
                                ],
                                'questionGroupItem' => [
                                                                'grid' => [
                                                                                                                                'columns' => [
                                                                                                                                                                                                                                                                'options' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'goToAction' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'goToSectionId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'isOther' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'shuffle' => null,
                                                                                                                                                                                                                                                                'type' => ''
                                                                                                                                ],
                                                                                                                                'shuffleQuestions' => null
                                                                ],
                                                                'image' => [
                                                                                                                                
                                                                ],
                                                                'questions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'choiceQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'dateQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'includeTime' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'includeYear' => null
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'fileUploadQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'folderId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxFileSize' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxFiles' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'types' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'grading' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'correctAnswers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'answers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'generalFeedback' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'material' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'link' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'video' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'youtubeUri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'text' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pointValue' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'whenRight' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'whenWrong' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'questionId' => '',
                                                                                                                                                                                                                                                                'required' => null,
                                                                                                                                                                                                                                                                'rowQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'title' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scaleQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'high' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'highLabel' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'low' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'lowLabel' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'textQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'paragraph' => null
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'timeQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'duration' => null
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'questionItem' => [
                                                                'image' => [
                                                                                                                                
                                                                ],
                                                                'question' => [
                                                                                                                                
                                                                ]
                                ],
                                'textItem' => [
                                                                
                                ],
                                'title' => '',
                                'videoItem' => [
                                                                'caption' => '',
                                                                'video' => [
                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'youtubeUri' => ''
                                                                ]
                                ]
                ],
                'location' => [
                                'index' => 0
                ]
        ],
        'deleteItem' => [
                'location' => [
                                
                ]
        ],
        'moveItem' => [
                'newLocation' => [
                                
                ],
                'originalLocation' => [
                                
                ]
        ],
        'updateFormInfo' => [
                'info' => [
                                'description' => '',
                                'documentTitle' => '',
                                'title' => ''
                ],
                'updateMask' => ''
        ],
        'updateItem' => [
                'item' => [
                                
                ],
                'location' => [
                                
                ],
                'updateMask' => ''
        ],
        'updateSettings' => [
                'settings' => [
                                'quizSettings' => [
                                                                'isQuiz' => null
                                ]
                ],
                'updateMask' => ''
        ]
    ]
  ],
  'writeControl' => [
    'requiredRevisionId' => '',
    'targetRevisionId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'includeFormInResponse' => null,
  'requests' => [
    [
        'createItem' => [
                'item' => [
                                'description' => '',
                                'imageItem' => [
                                                                'image' => [
                                                                                                                                'altText' => '',
                                                                                                                                'contentUri' => '',
                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                'alignment' => '',
                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                ],
                                                                                                                                'sourceUri' => ''
                                                                ]
                                ],
                                'itemId' => '',
                                'pageBreakItem' => [
                                                                
                                ],
                                'questionGroupItem' => [
                                                                'grid' => [
                                                                                                                                'columns' => [
                                                                                                                                                                                                                                                                'options' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'goToAction' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'goToSectionId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'isOther' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'shuffle' => null,
                                                                                                                                                                                                                                                                'type' => ''
                                                                                                                                ],
                                                                                                                                'shuffleQuestions' => null
                                                                ],
                                                                'image' => [
                                                                                                                                
                                                                ],
                                                                'questions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'choiceQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'dateQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'includeTime' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'includeYear' => null
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'fileUploadQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'folderId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxFileSize' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxFiles' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'types' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'grading' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'correctAnswers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'answers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'generalFeedback' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'material' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'link' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'video' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'youtubeUri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'text' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pointValue' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'whenRight' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'whenWrong' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'questionId' => '',
                                                                                                                                                                                                                                                                'required' => null,
                                                                                                                                                                                                                                                                'rowQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'title' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scaleQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'high' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'highLabel' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'low' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'lowLabel' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'textQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'paragraph' => null
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'timeQuestion' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'duration' => null
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'questionItem' => [
                                                                'image' => [
                                                                                                                                
                                                                ],
                                                                'question' => [
                                                                                                                                
                                                                ]
                                ],
                                'textItem' => [
                                                                
                                ],
                                'title' => '',
                                'videoItem' => [
                                                                'caption' => '',
                                                                'video' => [
                                                                                                                                'properties' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'youtubeUri' => ''
                                                                ]
                                ]
                ],
                'location' => [
                                'index' => 0
                ]
        ],
        'deleteItem' => [
                'location' => [
                                
                ]
        ],
        'moveItem' => [
                'newLocation' => [
                                
                ],
                'originalLocation' => [
                                
                ]
        ],
        'updateFormInfo' => [
                'info' => [
                                'description' => '',
                                'documentTitle' => '',
                                'title' => ''
                ],
                'updateMask' => ''
        ],
        'updateItem' => [
                'item' => [
                                
                ],
                'location' => [
                                
                ],
                'updateMask' => ''
        ],
        'updateSettings' => [
                'settings' => [
                                'quizSettings' => [
                                                                'isQuiz' => null
                                ]
                ],
                'updateMask' => ''
        ]
    ]
  ],
  'writeControl' => [
    'requiredRevisionId' => '',
    'targetRevisionId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/forms/:formId:batchUpdate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms/:formId:batchUpdate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "includeFormInResponse": false,
  "requests": [
    {
      "createItem": {
        "item": {
          "description": "",
          "imageItem": {
            "image": {
              "altText": "",
              "contentUri": "",
              "properties": {
                "alignment": "",
                "width": 0
              },
              "sourceUri": ""
            }
          },
          "itemId": "",
          "pageBreakItem": {},
          "questionGroupItem": {
            "grid": {
              "columns": {
                "options": [
                  {
                    "goToAction": "",
                    "goToSectionId": "",
                    "image": {},
                    "isOther": false,
                    "value": ""
                  }
                ],
                "shuffle": false,
                "type": ""
              },
              "shuffleQuestions": false
            },
            "image": {},
            "questions": [
              {
                "choiceQuestion": {},
                "dateQuestion": {
                  "includeTime": false,
                  "includeYear": false
                },
                "fileUploadQuestion": {
                  "folderId": "",
                  "maxFileSize": "",
                  "maxFiles": 0,
                  "types": []
                },
                "grading": {
                  "correctAnswers": {
                    "answers": [
                      {
                        "value": ""
                      }
                    ]
                  },
                  "generalFeedback": {
                    "material": [
                      {
                        "link": {
                          "displayText": "",
                          "uri": ""
                        },
                        "video": {
                          "displayText": "",
                          "youtubeUri": ""
                        }
                      }
                    ],
                    "text": ""
                  },
                  "pointValue": 0,
                  "whenRight": {},
                  "whenWrong": {}
                },
                "questionId": "",
                "required": false,
                "rowQuestion": {
                  "title": ""
                },
                "scaleQuestion": {
                  "high": 0,
                  "highLabel": "",
                  "low": 0,
                  "lowLabel": ""
                },
                "textQuestion": {
                  "paragraph": false
                },
                "timeQuestion": {
                  "duration": false
                }
              }
            ]
          },
          "questionItem": {
            "image": {},
            "question": {}
          },
          "textItem": {},
          "title": "",
          "videoItem": {
            "caption": "",
            "video": {
              "properties": {},
              "youtubeUri": ""
            }
          }
        },
        "location": {
          "index": 0
        }
      },
      "deleteItem": {
        "location": {}
      },
      "moveItem": {
        "newLocation": {},
        "originalLocation": {}
      },
      "updateFormInfo": {
        "info": {
          "description": "",
          "documentTitle": "",
          "title": ""
        },
        "updateMask": ""
      },
      "updateItem": {
        "item": {},
        "location": {},
        "updateMask": ""
      },
      "updateSettings": {
        "settings": {
          "quizSettings": {
            "isQuiz": false
          }
        },
        "updateMask": ""
      }
    }
  ],
  "writeControl": {
    "requiredRevisionId": "",
    "targetRevisionId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms/:formId:batchUpdate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "includeFormInResponse": false,
  "requests": [
    {
      "createItem": {
        "item": {
          "description": "",
          "imageItem": {
            "image": {
              "altText": "",
              "contentUri": "",
              "properties": {
                "alignment": "",
                "width": 0
              },
              "sourceUri": ""
            }
          },
          "itemId": "",
          "pageBreakItem": {},
          "questionGroupItem": {
            "grid": {
              "columns": {
                "options": [
                  {
                    "goToAction": "",
                    "goToSectionId": "",
                    "image": {},
                    "isOther": false,
                    "value": ""
                  }
                ],
                "shuffle": false,
                "type": ""
              },
              "shuffleQuestions": false
            },
            "image": {},
            "questions": [
              {
                "choiceQuestion": {},
                "dateQuestion": {
                  "includeTime": false,
                  "includeYear": false
                },
                "fileUploadQuestion": {
                  "folderId": "",
                  "maxFileSize": "",
                  "maxFiles": 0,
                  "types": []
                },
                "grading": {
                  "correctAnswers": {
                    "answers": [
                      {
                        "value": ""
                      }
                    ]
                  },
                  "generalFeedback": {
                    "material": [
                      {
                        "link": {
                          "displayText": "",
                          "uri": ""
                        },
                        "video": {
                          "displayText": "",
                          "youtubeUri": ""
                        }
                      }
                    ],
                    "text": ""
                  },
                  "pointValue": 0,
                  "whenRight": {},
                  "whenWrong": {}
                },
                "questionId": "",
                "required": false,
                "rowQuestion": {
                  "title": ""
                },
                "scaleQuestion": {
                  "high": 0,
                  "highLabel": "",
                  "low": 0,
                  "lowLabel": ""
                },
                "textQuestion": {
                  "paragraph": false
                },
                "timeQuestion": {
                  "duration": false
                }
              }
            ]
          },
          "questionItem": {
            "image": {},
            "question": {}
          },
          "textItem": {},
          "title": "",
          "videoItem": {
            "caption": "",
            "video": {
              "properties": {},
              "youtubeUri": ""
            }
          }
        },
        "location": {
          "index": 0
        }
      },
      "deleteItem": {
        "location": {}
      },
      "moveItem": {
        "newLocation": {},
        "originalLocation": {}
      },
      "updateFormInfo": {
        "info": {
          "description": "",
          "documentTitle": "",
          "title": ""
        },
        "updateMask": ""
      },
      "updateItem": {
        "item": {},
        "location": {},
        "updateMask": ""
      },
      "updateSettings": {
        "settings": {
          "quizSettings": {
            "isQuiz": false
          }
        },
        "updateMask": ""
      }
    }
  ],
  "writeControl": {
    "requiredRevisionId": "",
    "targetRevisionId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/forms/:formId:batchUpdate", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms/:formId:batchUpdate"

payload = {
    "includeFormInResponse": False,
    "requests": [
        {
            "createItem": {
                "item": {
                    "description": "",
                    "imageItem": { "image": {
                            "altText": "",
                            "contentUri": "",
                            "properties": {
                                "alignment": "",
                                "width": 0
                            },
                            "sourceUri": ""
                        } },
                    "itemId": "",
                    "pageBreakItem": {},
                    "questionGroupItem": {
                        "grid": {
                            "columns": {
                                "options": [
                                    {
                                        "goToAction": "",
                                        "goToSectionId": "",
                                        "image": {},
                                        "isOther": False,
                                        "value": ""
                                    }
                                ],
                                "shuffle": False,
                                "type": ""
                            },
                            "shuffleQuestions": False
                        },
                        "image": {},
                        "questions": [
                            {
                                "choiceQuestion": {},
                                "dateQuestion": {
                                    "includeTime": False,
                                    "includeYear": False
                                },
                                "fileUploadQuestion": {
                                    "folderId": "",
                                    "maxFileSize": "",
                                    "maxFiles": 0,
                                    "types": []
                                },
                                "grading": {
                                    "correctAnswers": { "answers": [{ "value": "" }] },
                                    "generalFeedback": {
                                        "material": [
                                            {
                                                "link": {
                                                    "displayText": "",
                                                    "uri": ""
                                                },
                                                "video": {
                                                    "displayText": "",
                                                    "youtubeUri": ""
                                                }
                                            }
                                        ],
                                        "text": ""
                                    },
                                    "pointValue": 0,
                                    "whenRight": {},
                                    "whenWrong": {}
                                },
                                "questionId": "",
                                "required": False,
                                "rowQuestion": { "title": "" },
                                "scaleQuestion": {
                                    "high": 0,
                                    "highLabel": "",
                                    "low": 0,
                                    "lowLabel": ""
                                },
                                "textQuestion": { "paragraph": False },
                                "timeQuestion": { "duration": False }
                            }
                        ]
                    },
                    "questionItem": {
                        "image": {},
                        "question": {}
                    },
                    "textItem": {},
                    "title": "",
                    "videoItem": {
                        "caption": "",
                        "video": {
                            "properties": {},
                            "youtubeUri": ""
                        }
                    }
                },
                "location": { "index": 0 }
            },
            "deleteItem": { "location": {} },
            "moveItem": {
                "newLocation": {},
                "originalLocation": {}
            },
            "updateFormInfo": {
                "info": {
                    "description": "",
                    "documentTitle": "",
                    "title": ""
                },
                "updateMask": ""
            },
            "updateItem": {
                "item": {},
                "location": {},
                "updateMask": ""
            },
            "updateSettings": {
                "settings": { "quizSettings": { "isQuiz": False } },
                "updateMask": ""
            }
        }
    ],
    "writeControl": {
        "requiredRevisionId": "",
        "targetRevisionId": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms/:formId:batchUpdate"

payload <- "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms/:formId:batchUpdate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/forms/:formId:batchUpdate') do |req|
  req.body = "{\n  \"includeFormInResponse\": false,\n  \"requests\": [\n    {\n      \"createItem\": {\n        \"item\": {\n          \"description\": \"\",\n          \"imageItem\": {\n            \"image\": {\n              \"altText\": \"\",\n              \"contentUri\": \"\",\n              \"properties\": {\n                \"alignment\": \"\",\n                \"width\": 0\n              },\n              \"sourceUri\": \"\"\n            }\n          },\n          \"itemId\": \"\",\n          \"pageBreakItem\": {},\n          \"questionGroupItem\": {\n            \"grid\": {\n              \"columns\": {\n                \"options\": [\n                  {\n                    \"goToAction\": \"\",\n                    \"goToSectionId\": \"\",\n                    \"image\": {},\n                    \"isOther\": false,\n                    \"value\": \"\"\n                  }\n                ],\n                \"shuffle\": false,\n                \"type\": \"\"\n              },\n              \"shuffleQuestions\": false\n            },\n            \"image\": {},\n            \"questions\": [\n              {\n                \"choiceQuestion\": {},\n                \"dateQuestion\": {\n                  \"includeTime\": false,\n                  \"includeYear\": false\n                },\n                \"fileUploadQuestion\": {\n                  \"folderId\": \"\",\n                  \"maxFileSize\": \"\",\n                  \"maxFiles\": 0,\n                  \"types\": []\n                },\n                \"grading\": {\n                  \"correctAnswers\": {\n                    \"answers\": [\n                      {\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"generalFeedback\": {\n                    \"material\": [\n                      {\n                        \"link\": {\n                          \"displayText\": \"\",\n                          \"uri\": \"\"\n                        },\n                        \"video\": {\n                          \"displayText\": \"\",\n                          \"youtubeUri\": \"\"\n                        }\n                      }\n                    ],\n                    \"text\": \"\"\n                  },\n                  \"pointValue\": 0,\n                  \"whenRight\": {},\n                  \"whenWrong\": {}\n                },\n                \"questionId\": \"\",\n                \"required\": false,\n                \"rowQuestion\": {\n                  \"title\": \"\"\n                },\n                \"scaleQuestion\": {\n                  \"high\": 0,\n                  \"highLabel\": \"\",\n                  \"low\": 0,\n                  \"lowLabel\": \"\"\n                },\n                \"textQuestion\": {\n                  \"paragraph\": false\n                },\n                \"timeQuestion\": {\n                  \"duration\": false\n                }\n              }\n            ]\n          },\n          \"questionItem\": {\n            \"image\": {},\n            \"question\": {}\n          },\n          \"textItem\": {},\n          \"title\": \"\",\n          \"videoItem\": {\n            \"caption\": \"\",\n            \"video\": {\n              \"properties\": {},\n              \"youtubeUri\": \"\"\n            }\n          }\n        },\n        \"location\": {\n          \"index\": 0\n        }\n      },\n      \"deleteItem\": {\n        \"location\": {}\n      },\n      \"moveItem\": {\n        \"newLocation\": {},\n        \"originalLocation\": {}\n      },\n      \"updateFormInfo\": {\n        \"info\": {\n          \"description\": \"\",\n          \"documentTitle\": \"\",\n          \"title\": \"\"\n        },\n        \"updateMask\": \"\"\n      },\n      \"updateItem\": {\n        \"item\": {},\n        \"location\": {},\n        \"updateMask\": \"\"\n      },\n      \"updateSettings\": {\n        \"settings\": {\n          \"quizSettings\": {\n            \"isQuiz\": false\n          }\n        },\n        \"updateMask\": \"\"\n      }\n    }\n  ],\n  \"writeControl\": {\n    \"requiredRevisionId\": \"\",\n    \"targetRevisionId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms/:formId:batchUpdate";

    let payload = json!({
        "includeFormInResponse": false,
        "requests": (
            json!({
                "createItem": json!({
                    "item": json!({
                        "description": "",
                        "imageItem": json!({"image": json!({
                                "altText": "",
                                "contentUri": "",
                                "properties": json!({
                                    "alignment": "",
                                    "width": 0
                                }),
                                "sourceUri": ""
                            })}),
                        "itemId": "",
                        "pageBreakItem": json!({}),
                        "questionGroupItem": json!({
                            "grid": json!({
                                "columns": json!({
                                    "options": (
                                        json!({
                                            "goToAction": "",
                                            "goToSectionId": "",
                                            "image": json!({}),
                                            "isOther": false,
                                            "value": ""
                                        })
                                    ),
                                    "shuffle": false,
                                    "type": ""
                                }),
                                "shuffleQuestions": false
                            }),
                            "image": json!({}),
                            "questions": (
                                json!({
                                    "choiceQuestion": json!({}),
                                    "dateQuestion": json!({
                                        "includeTime": false,
                                        "includeYear": false
                                    }),
                                    "fileUploadQuestion": json!({
                                        "folderId": "",
                                        "maxFileSize": "",
                                        "maxFiles": 0,
                                        "types": ()
                                    }),
                                    "grading": json!({
                                        "correctAnswers": json!({"answers": (json!({"value": ""}))}),
                                        "generalFeedback": json!({
                                            "material": (
                                                json!({
                                                    "link": json!({
                                                        "displayText": "",
                                                        "uri": ""
                                                    }),
                                                    "video": json!({
                                                        "displayText": "",
                                                        "youtubeUri": ""
                                                    })
                                                })
                                            ),
                                            "text": ""
                                        }),
                                        "pointValue": 0,
                                        "whenRight": json!({}),
                                        "whenWrong": json!({})
                                    }),
                                    "questionId": "",
                                    "required": false,
                                    "rowQuestion": json!({"title": ""}),
                                    "scaleQuestion": json!({
                                        "high": 0,
                                        "highLabel": "",
                                        "low": 0,
                                        "lowLabel": ""
                                    }),
                                    "textQuestion": json!({"paragraph": false}),
                                    "timeQuestion": json!({"duration": false})
                                })
                            )
                        }),
                        "questionItem": json!({
                            "image": json!({}),
                            "question": json!({})
                        }),
                        "textItem": json!({}),
                        "title": "",
                        "videoItem": json!({
                            "caption": "",
                            "video": json!({
                                "properties": json!({}),
                                "youtubeUri": ""
                            })
                        })
                    }),
                    "location": json!({"index": 0})
                }),
                "deleteItem": json!({"location": json!({})}),
                "moveItem": json!({
                    "newLocation": json!({}),
                    "originalLocation": json!({})
                }),
                "updateFormInfo": json!({
                    "info": json!({
                        "description": "",
                        "documentTitle": "",
                        "title": ""
                    }),
                    "updateMask": ""
                }),
                "updateItem": json!({
                    "item": json!({}),
                    "location": json!({}),
                    "updateMask": ""
                }),
                "updateSettings": json!({
                    "settings": json!({"quizSettings": json!({"isQuiz": false})}),
                    "updateMask": ""
                })
            })
        ),
        "writeControl": json!({
            "requiredRevisionId": "",
            "targetRevisionId": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/forms/:formId:batchUpdate \
  --header 'content-type: application/json' \
  --data '{
  "includeFormInResponse": false,
  "requests": [
    {
      "createItem": {
        "item": {
          "description": "",
          "imageItem": {
            "image": {
              "altText": "",
              "contentUri": "",
              "properties": {
                "alignment": "",
                "width": 0
              },
              "sourceUri": ""
            }
          },
          "itemId": "",
          "pageBreakItem": {},
          "questionGroupItem": {
            "grid": {
              "columns": {
                "options": [
                  {
                    "goToAction": "",
                    "goToSectionId": "",
                    "image": {},
                    "isOther": false,
                    "value": ""
                  }
                ],
                "shuffle": false,
                "type": ""
              },
              "shuffleQuestions": false
            },
            "image": {},
            "questions": [
              {
                "choiceQuestion": {},
                "dateQuestion": {
                  "includeTime": false,
                  "includeYear": false
                },
                "fileUploadQuestion": {
                  "folderId": "",
                  "maxFileSize": "",
                  "maxFiles": 0,
                  "types": []
                },
                "grading": {
                  "correctAnswers": {
                    "answers": [
                      {
                        "value": ""
                      }
                    ]
                  },
                  "generalFeedback": {
                    "material": [
                      {
                        "link": {
                          "displayText": "",
                          "uri": ""
                        },
                        "video": {
                          "displayText": "",
                          "youtubeUri": ""
                        }
                      }
                    ],
                    "text": ""
                  },
                  "pointValue": 0,
                  "whenRight": {},
                  "whenWrong": {}
                },
                "questionId": "",
                "required": false,
                "rowQuestion": {
                  "title": ""
                },
                "scaleQuestion": {
                  "high": 0,
                  "highLabel": "",
                  "low": 0,
                  "lowLabel": ""
                },
                "textQuestion": {
                  "paragraph": false
                },
                "timeQuestion": {
                  "duration": false
                }
              }
            ]
          },
          "questionItem": {
            "image": {},
            "question": {}
          },
          "textItem": {},
          "title": "",
          "videoItem": {
            "caption": "",
            "video": {
              "properties": {},
              "youtubeUri": ""
            }
          }
        },
        "location": {
          "index": 0
        }
      },
      "deleteItem": {
        "location": {}
      },
      "moveItem": {
        "newLocation": {},
        "originalLocation": {}
      },
      "updateFormInfo": {
        "info": {
          "description": "",
          "documentTitle": "",
          "title": ""
        },
        "updateMask": ""
      },
      "updateItem": {
        "item": {},
        "location": {},
        "updateMask": ""
      },
      "updateSettings": {
        "settings": {
          "quizSettings": {
            "isQuiz": false
          }
        },
        "updateMask": ""
      }
    }
  ],
  "writeControl": {
    "requiredRevisionId": "",
    "targetRevisionId": ""
  }
}'
echo '{
  "includeFormInResponse": false,
  "requests": [
    {
      "createItem": {
        "item": {
          "description": "",
          "imageItem": {
            "image": {
              "altText": "",
              "contentUri": "",
              "properties": {
                "alignment": "",
                "width": 0
              },
              "sourceUri": ""
            }
          },
          "itemId": "",
          "pageBreakItem": {},
          "questionGroupItem": {
            "grid": {
              "columns": {
                "options": [
                  {
                    "goToAction": "",
                    "goToSectionId": "",
                    "image": {},
                    "isOther": false,
                    "value": ""
                  }
                ],
                "shuffle": false,
                "type": ""
              },
              "shuffleQuestions": false
            },
            "image": {},
            "questions": [
              {
                "choiceQuestion": {},
                "dateQuestion": {
                  "includeTime": false,
                  "includeYear": false
                },
                "fileUploadQuestion": {
                  "folderId": "",
                  "maxFileSize": "",
                  "maxFiles": 0,
                  "types": []
                },
                "grading": {
                  "correctAnswers": {
                    "answers": [
                      {
                        "value": ""
                      }
                    ]
                  },
                  "generalFeedback": {
                    "material": [
                      {
                        "link": {
                          "displayText": "",
                          "uri": ""
                        },
                        "video": {
                          "displayText": "",
                          "youtubeUri": ""
                        }
                      }
                    ],
                    "text": ""
                  },
                  "pointValue": 0,
                  "whenRight": {},
                  "whenWrong": {}
                },
                "questionId": "",
                "required": false,
                "rowQuestion": {
                  "title": ""
                },
                "scaleQuestion": {
                  "high": 0,
                  "highLabel": "",
                  "low": 0,
                  "lowLabel": ""
                },
                "textQuestion": {
                  "paragraph": false
                },
                "timeQuestion": {
                  "duration": false
                }
              }
            ]
          },
          "questionItem": {
            "image": {},
            "question": {}
          },
          "textItem": {},
          "title": "",
          "videoItem": {
            "caption": "",
            "video": {
              "properties": {},
              "youtubeUri": ""
            }
          }
        },
        "location": {
          "index": 0
        }
      },
      "deleteItem": {
        "location": {}
      },
      "moveItem": {
        "newLocation": {},
        "originalLocation": {}
      },
      "updateFormInfo": {
        "info": {
          "description": "",
          "documentTitle": "",
          "title": ""
        },
        "updateMask": ""
      },
      "updateItem": {
        "item": {},
        "location": {},
        "updateMask": ""
      },
      "updateSettings": {
        "settings": {
          "quizSettings": {
            "isQuiz": false
          }
        },
        "updateMask": ""
      }
    }
  ],
  "writeControl": {
    "requiredRevisionId": "",
    "targetRevisionId": ""
  }
}' |  \
  http POST {{baseUrl}}/v1/forms/:formId:batchUpdate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "includeFormInResponse": false,\n  "requests": [\n    {\n      "createItem": {\n        "item": {\n          "description": "",\n          "imageItem": {\n            "image": {\n              "altText": "",\n              "contentUri": "",\n              "properties": {\n                "alignment": "",\n                "width": 0\n              },\n              "sourceUri": ""\n            }\n          },\n          "itemId": "",\n          "pageBreakItem": {},\n          "questionGroupItem": {\n            "grid": {\n              "columns": {\n                "options": [\n                  {\n                    "goToAction": "",\n                    "goToSectionId": "",\n                    "image": {},\n                    "isOther": false,\n                    "value": ""\n                  }\n                ],\n                "shuffle": false,\n                "type": ""\n              },\n              "shuffleQuestions": false\n            },\n            "image": {},\n            "questions": [\n              {\n                "choiceQuestion": {},\n                "dateQuestion": {\n                  "includeTime": false,\n                  "includeYear": false\n                },\n                "fileUploadQuestion": {\n                  "folderId": "",\n                  "maxFileSize": "",\n                  "maxFiles": 0,\n                  "types": []\n                },\n                "grading": {\n                  "correctAnswers": {\n                    "answers": [\n                      {\n                        "value": ""\n                      }\n                    ]\n                  },\n                  "generalFeedback": {\n                    "material": [\n                      {\n                        "link": {\n                          "displayText": "",\n                          "uri": ""\n                        },\n                        "video": {\n                          "displayText": "",\n                          "youtubeUri": ""\n                        }\n                      }\n                    ],\n                    "text": ""\n                  },\n                  "pointValue": 0,\n                  "whenRight": {},\n                  "whenWrong": {}\n                },\n                "questionId": "",\n                "required": false,\n                "rowQuestion": {\n                  "title": ""\n                },\n                "scaleQuestion": {\n                  "high": 0,\n                  "highLabel": "",\n                  "low": 0,\n                  "lowLabel": ""\n                },\n                "textQuestion": {\n                  "paragraph": false\n                },\n                "timeQuestion": {\n                  "duration": false\n                }\n              }\n            ]\n          },\n          "questionItem": {\n            "image": {},\n            "question": {}\n          },\n          "textItem": {},\n          "title": "",\n          "videoItem": {\n            "caption": "",\n            "video": {\n              "properties": {},\n              "youtubeUri": ""\n            }\n          }\n        },\n        "location": {\n          "index": 0\n        }\n      },\n      "deleteItem": {\n        "location": {}\n      },\n      "moveItem": {\n        "newLocation": {},\n        "originalLocation": {}\n      },\n      "updateFormInfo": {\n        "info": {\n          "description": "",\n          "documentTitle": "",\n          "title": ""\n        },\n        "updateMask": ""\n      },\n      "updateItem": {\n        "item": {},\n        "location": {},\n        "updateMask": ""\n      },\n      "updateSettings": {\n        "settings": {\n          "quizSettings": {\n            "isQuiz": false\n          }\n        },\n        "updateMask": ""\n      }\n    }\n  ],\n  "writeControl": {\n    "requiredRevisionId": "",\n    "targetRevisionId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/forms/:formId:batchUpdate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "includeFormInResponse": false,
  "requests": [
    [
      "createItem": [
        "item": [
          "description": "",
          "imageItem": ["image": [
              "altText": "",
              "contentUri": "",
              "properties": [
                "alignment": "",
                "width": 0
              ],
              "sourceUri": ""
            ]],
          "itemId": "",
          "pageBreakItem": [],
          "questionGroupItem": [
            "grid": [
              "columns": [
                "options": [
                  [
                    "goToAction": "",
                    "goToSectionId": "",
                    "image": [],
                    "isOther": false,
                    "value": ""
                  ]
                ],
                "shuffle": false,
                "type": ""
              ],
              "shuffleQuestions": false
            ],
            "image": [],
            "questions": [
              [
                "choiceQuestion": [],
                "dateQuestion": [
                  "includeTime": false,
                  "includeYear": false
                ],
                "fileUploadQuestion": [
                  "folderId": "",
                  "maxFileSize": "",
                  "maxFiles": 0,
                  "types": []
                ],
                "grading": [
                  "correctAnswers": ["answers": [["value": ""]]],
                  "generalFeedback": [
                    "material": [
                      [
                        "link": [
                          "displayText": "",
                          "uri": ""
                        ],
                        "video": [
                          "displayText": "",
                          "youtubeUri": ""
                        ]
                      ]
                    ],
                    "text": ""
                  ],
                  "pointValue": 0,
                  "whenRight": [],
                  "whenWrong": []
                ],
                "questionId": "",
                "required": false,
                "rowQuestion": ["title": ""],
                "scaleQuestion": [
                  "high": 0,
                  "highLabel": "",
                  "low": 0,
                  "lowLabel": ""
                ],
                "textQuestion": ["paragraph": false],
                "timeQuestion": ["duration": false]
              ]
            ]
          ],
          "questionItem": [
            "image": [],
            "question": []
          ],
          "textItem": [],
          "title": "",
          "videoItem": [
            "caption": "",
            "video": [
              "properties": [],
              "youtubeUri": ""
            ]
          ]
        ],
        "location": ["index": 0]
      ],
      "deleteItem": ["location": []],
      "moveItem": [
        "newLocation": [],
        "originalLocation": []
      ],
      "updateFormInfo": [
        "info": [
          "description": "",
          "documentTitle": "",
          "title": ""
        ],
        "updateMask": ""
      ],
      "updateItem": [
        "item": [],
        "location": [],
        "updateMask": ""
      ],
      "updateSettings": [
        "settings": ["quizSettings": ["isQuiz": false]],
        "updateMask": ""
      ]
    ]
  ],
  "writeControl": [
    "requiredRevisionId": "",
    "targetRevisionId": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms/:formId:batchUpdate")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST forms.forms.create
{{baseUrl}}/v1/forms
BODY json

{
  "formId": "",
  "info": {
    "description": "",
    "documentTitle": "",
    "title": ""
  },
  "items": [
    {
      "description": "",
      "imageItem": {
        "image": {
          "altText": "",
          "contentUri": "",
          "properties": {
            "alignment": "",
            "width": 0
          },
          "sourceUri": ""
        }
      },
      "itemId": "",
      "pageBreakItem": {},
      "questionGroupItem": {
        "grid": {
          "columns": {
            "options": [
              {
                "goToAction": "",
                "goToSectionId": "",
                "image": {},
                "isOther": false,
                "value": ""
              }
            ],
            "shuffle": false,
            "type": ""
          },
          "shuffleQuestions": false
        },
        "image": {},
        "questions": [
          {
            "choiceQuestion": {},
            "dateQuestion": {
              "includeTime": false,
              "includeYear": false
            },
            "fileUploadQuestion": {
              "folderId": "",
              "maxFileSize": "",
              "maxFiles": 0,
              "types": []
            },
            "grading": {
              "correctAnswers": {
                "answers": [
                  {
                    "value": ""
                  }
                ]
              },
              "generalFeedback": {
                "material": [
                  {
                    "link": {
                      "displayText": "",
                      "uri": ""
                    },
                    "video": {
                      "displayText": "",
                      "youtubeUri": ""
                    }
                  }
                ],
                "text": ""
              },
              "pointValue": 0,
              "whenRight": {},
              "whenWrong": {}
            },
            "questionId": "",
            "required": false,
            "rowQuestion": {
              "title": ""
            },
            "scaleQuestion": {
              "high": 0,
              "highLabel": "",
              "low": 0,
              "lowLabel": ""
            },
            "textQuestion": {
              "paragraph": false
            },
            "timeQuestion": {
              "duration": false
            }
          }
        ]
      },
      "questionItem": {
        "image": {},
        "question": {}
      },
      "textItem": {},
      "title": "",
      "videoItem": {
        "caption": "",
        "video": {
          "properties": {},
          "youtubeUri": ""
        }
      }
    }
  ],
  "linkedSheetId": "",
  "responderUri": "",
  "revisionId": "",
  "settings": {
    "quizSettings": {
      "isQuiz": false
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/forms" {:content-type :json
                                                     :form-params {:formId ""
                                                                   :info {:description ""
                                                                          :documentTitle ""
                                                                          :title ""}
                                                                   :items [{:description ""
                                                                            :imageItem {:image {:altText ""
                                                                                                :contentUri ""
                                                                                                :properties {:alignment ""
                                                                                                             :width 0}
                                                                                                :sourceUri ""}}
                                                                            :itemId ""
                                                                            :pageBreakItem {}
                                                                            :questionGroupItem {:grid {:columns {:options [{:goToAction ""
                                                                                                                            :goToSectionId ""
                                                                                                                            :image {}
                                                                                                                            :isOther false
                                                                                                                            :value ""}]
                                                                                                                 :shuffle false
                                                                                                                 :type ""}
                                                                                                       :shuffleQuestions false}
                                                                                                :image {}
                                                                                                :questions [{:choiceQuestion {}
                                                                                                             :dateQuestion {:includeTime false
                                                                                                                            :includeYear false}
                                                                                                             :fileUploadQuestion {:folderId ""
                                                                                                                                  :maxFileSize ""
                                                                                                                                  :maxFiles 0
                                                                                                                                  :types []}
                                                                                                             :grading {:correctAnswers {:answers [{:value ""}]}
                                                                                                                       :generalFeedback {:material [{:link {:displayText ""
                                                                                                                                                            :uri ""}
                                                                                                                                                     :video {:displayText ""
                                                                                                                                                             :youtubeUri ""}}]
                                                                                                                                         :text ""}
                                                                                                                       :pointValue 0
                                                                                                                       :whenRight {}
                                                                                                                       :whenWrong {}}
                                                                                                             :questionId ""
                                                                                                             :required false
                                                                                                             :rowQuestion {:title ""}
                                                                                                             :scaleQuestion {:high 0
                                                                                                                             :highLabel ""
                                                                                                                             :low 0
                                                                                                                             :lowLabel ""}
                                                                                                             :textQuestion {:paragraph false}
                                                                                                             :timeQuestion {:duration false}}]}
                                                                            :questionItem {:image {}
                                                                                           :question {}}
                                                                            :textItem {}
                                                                            :title ""
                                                                            :videoItem {:caption ""
                                                                                        :video {:properties {}
                                                                                                :youtubeUri ""}}}]
                                                                   :linkedSheetId ""
                                                                   :responderUri ""
                                                                   :revisionId ""
                                                                   :settings {:quizSettings {:isQuiz false}}}})
require "http/client"

url = "{{baseUrl}}/v1/forms"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/forms"),
    Content = new StringContent("{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms"

	payload := strings.NewReader("{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/forms HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2812

{
  "formId": "",
  "info": {
    "description": "",
    "documentTitle": "",
    "title": ""
  },
  "items": [
    {
      "description": "",
      "imageItem": {
        "image": {
          "altText": "",
          "contentUri": "",
          "properties": {
            "alignment": "",
            "width": 0
          },
          "sourceUri": ""
        }
      },
      "itemId": "",
      "pageBreakItem": {},
      "questionGroupItem": {
        "grid": {
          "columns": {
            "options": [
              {
                "goToAction": "",
                "goToSectionId": "",
                "image": {},
                "isOther": false,
                "value": ""
              }
            ],
            "shuffle": false,
            "type": ""
          },
          "shuffleQuestions": false
        },
        "image": {},
        "questions": [
          {
            "choiceQuestion": {},
            "dateQuestion": {
              "includeTime": false,
              "includeYear": false
            },
            "fileUploadQuestion": {
              "folderId": "",
              "maxFileSize": "",
              "maxFiles": 0,
              "types": []
            },
            "grading": {
              "correctAnswers": {
                "answers": [
                  {
                    "value": ""
                  }
                ]
              },
              "generalFeedback": {
                "material": [
                  {
                    "link": {
                      "displayText": "",
                      "uri": ""
                    },
                    "video": {
                      "displayText": "",
                      "youtubeUri": ""
                    }
                  }
                ],
                "text": ""
              },
              "pointValue": 0,
              "whenRight": {},
              "whenWrong": {}
            },
            "questionId": "",
            "required": false,
            "rowQuestion": {
              "title": ""
            },
            "scaleQuestion": {
              "high": 0,
              "highLabel": "",
              "low": 0,
              "lowLabel": ""
            },
            "textQuestion": {
              "paragraph": false
            },
            "timeQuestion": {
              "duration": false
            }
          }
        ]
      },
      "questionItem": {
        "image": {},
        "question": {}
      },
      "textItem": {},
      "title": "",
      "videoItem": {
        "caption": "",
        "video": {
          "properties": {},
          "youtubeUri": ""
        }
      }
    }
  ],
  "linkedSheetId": "",
  "responderUri": "",
  "revisionId": "",
  "settings": {
    "quizSettings": {
      "isQuiz": false
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/forms")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/forms")
  .header("content-type", "application/json")
  .body("{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  formId: '',
  info: {
    description: '',
    documentTitle: '',
    title: ''
  },
  items: [
    {
      description: '',
      imageItem: {
        image: {
          altText: '',
          contentUri: '',
          properties: {
            alignment: '',
            width: 0
          },
          sourceUri: ''
        }
      },
      itemId: '',
      pageBreakItem: {},
      questionGroupItem: {
        grid: {
          columns: {
            options: [
              {
                goToAction: '',
                goToSectionId: '',
                image: {},
                isOther: false,
                value: ''
              }
            ],
            shuffle: false,
            type: ''
          },
          shuffleQuestions: false
        },
        image: {},
        questions: [
          {
            choiceQuestion: {},
            dateQuestion: {
              includeTime: false,
              includeYear: false
            },
            fileUploadQuestion: {
              folderId: '',
              maxFileSize: '',
              maxFiles: 0,
              types: []
            },
            grading: {
              correctAnswers: {
                answers: [
                  {
                    value: ''
                  }
                ]
              },
              generalFeedback: {
                material: [
                  {
                    link: {
                      displayText: '',
                      uri: ''
                    },
                    video: {
                      displayText: '',
                      youtubeUri: ''
                    }
                  }
                ],
                text: ''
              },
              pointValue: 0,
              whenRight: {},
              whenWrong: {}
            },
            questionId: '',
            required: false,
            rowQuestion: {
              title: ''
            },
            scaleQuestion: {
              high: 0,
              highLabel: '',
              low: 0,
              lowLabel: ''
            },
            textQuestion: {
              paragraph: false
            },
            timeQuestion: {
              duration: false
            }
          }
        ]
      },
      questionItem: {
        image: {},
        question: {}
      },
      textItem: {},
      title: '',
      videoItem: {
        caption: '',
        video: {
          properties: {},
          youtubeUri: ''
        }
      }
    }
  ],
  linkedSheetId: '',
  responderUri: '',
  revisionId: '',
  settings: {
    quizSettings: {
      isQuiz: false
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/forms');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms',
  headers: {'content-type': 'application/json'},
  data: {
    formId: '',
    info: {description: '', documentTitle: '', title: ''},
    items: [
      {
        description: '',
        imageItem: {
          image: {
            altText: '',
            contentUri: '',
            properties: {alignment: '', width: 0},
            sourceUri: ''
          }
        },
        itemId: '',
        pageBreakItem: {},
        questionGroupItem: {
          grid: {
            columns: {
              options: [{goToAction: '', goToSectionId: '', image: {}, isOther: false, value: ''}],
              shuffle: false,
              type: ''
            },
            shuffleQuestions: false
          },
          image: {},
          questions: [
            {
              choiceQuestion: {},
              dateQuestion: {includeTime: false, includeYear: false},
              fileUploadQuestion: {folderId: '', maxFileSize: '', maxFiles: 0, types: []},
              grading: {
                correctAnswers: {answers: [{value: ''}]},
                generalFeedback: {
                  material: [{link: {displayText: '', uri: ''}, video: {displayText: '', youtubeUri: ''}}],
                  text: ''
                },
                pointValue: 0,
                whenRight: {},
                whenWrong: {}
              },
              questionId: '',
              required: false,
              rowQuestion: {title: ''},
              scaleQuestion: {high: 0, highLabel: '', low: 0, lowLabel: ''},
              textQuestion: {paragraph: false},
              timeQuestion: {duration: false}
            }
          ]
        },
        questionItem: {image: {}, question: {}},
        textItem: {},
        title: '',
        videoItem: {caption: '', video: {properties: {}, youtubeUri: ''}}
      }
    ],
    linkedSheetId: '',
    responderUri: '',
    revisionId: '',
    settings: {quizSettings: {isQuiz: false}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"formId":"","info":{"description":"","documentTitle":"","title":""},"items":[{"description":"","imageItem":{"image":{"altText":"","contentUri":"","properties":{"alignment":"","width":0},"sourceUri":""}},"itemId":"","pageBreakItem":{},"questionGroupItem":{"grid":{"columns":{"options":[{"goToAction":"","goToSectionId":"","image":{},"isOther":false,"value":""}],"shuffle":false,"type":""},"shuffleQuestions":false},"image":{},"questions":[{"choiceQuestion":{},"dateQuestion":{"includeTime":false,"includeYear":false},"fileUploadQuestion":{"folderId":"","maxFileSize":"","maxFiles":0,"types":[]},"grading":{"correctAnswers":{"answers":[{"value":""}]},"generalFeedback":{"material":[{"link":{"displayText":"","uri":""},"video":{"displayText":"","youtubeUri":""}}],"text":""},"pointValue":0,"whenRight":{},"whenWrong":{}},"questionId":"","required":false,"rowQuestion":{"title":""},"scaleQuestion":{"high":0,"highLabel":"","low":0,"lowLabel":""},"textQuestion":{"paragraph":false},"timeQuestion":{"duration":false}}]},"questionItem":{"image":{},"question":{}},"textItem":{},"title":"","videoItem":{"caption":"","video":{"properties":{},"youtubeUri":""}}}],"linkedSheetId":"","responderUri":"","revisionId":"","settings":{"quizSettings":{"isQuiz":false}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "formId": "",\n  "info": {\n    "description": "",\n    "documentTitle": "",\n    "title": ""\n  },\n  "items": [\n    {\n      "description": "",\n      "imageItem": {\n        "image": {\n          "altText": "",\n          "contentUri": "",\n          "properties": {\n            "alignment": "",\n            "width": 0\n          },\n          "sourceUri": ""\n        }\n      },\n      "itemId": "",\n      "pageBreakItem": {},\n      "questionGroupItem": {\n        "grid": {\n          "columns": {\n            "options": [\n              {\n                "goToAction": "",\n                "goToSectionId": "",\n                "image": {},\n                "isOther": false,\n                "value": ""\n              }\n            ],\n            "shuffle": false,\n            "type": ""\n          },\n          "shuffleQuestions": false\n        },\n        "image": {},\n        "questions": [\n          {\n            "choiceQuestion": {},\n            "dateQuestion": {\n              "includeTime": false,\n              "includeYear": false\n            },\n            "fileUploadQuestion": {\n              "folderId": "",\n              "maxFileSize": "",\n              "maxFiles": 0,\n              "types": []\n            },\n            "grading": {\n              "correctAnswers": {\n                "answers": [\n                  {\n                    "value": ""\n                  }\n                ]\n              },\n              "generalFeedback": {\n                "material": [\n                  {\n                    "link": {\n                      "displayText": "",\n                      "uri": ""\n                    },\n                    "video": {\n                      "displayText": "",\n                      "youtubeUri": ""\n                    }\n                  }\n                ],\n                "text": ""\n              },\n              "pointValue": 0,\n              "whenRight": {},\n              "whenWrong": {}\n            },\n            "questionId": "",\n            "required": false,\n            "rowQuestion": {\n              "title": ""\n            },\n            "scaleQuestion": {\n              "high": 0,\n              "highLabel": "",\n              "low": 0,\n              "lowLabel": ""\n            },\n            "textQuestion": {\n              "paragraph": false\n            },\n            "timeQuestion": {\n              "duration": false\n            }\n          }\n        ]\n      },\n      "questionItem": {\n        "image": {},\n        "question": {}\n      },\n      "textItem": {},\n      "title": "",\n      "videoItem": {\n        "caption": "",\n        "video": {\n          "properties": {},\n          "youtubeUri": ""\n        }\n      }\n    }\n  ],\n  "linkedSheetId": "",\n  "responderUri": "",\n  "revisionId": "",\n  "settings": {\n    "quizSettings": {\n      "isQuiz": false\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  formId: '',
  info: {description: '', documentTitle: '', title: ''},
  items: [
    {
      description: '',
      imageItem: {
        image: {
          altText: '',
          contentUri: '',
          properties: {alignment: '', width: 0},
          sourceUri: ''
        }
      },
      itemId: '',
      pageBreakItem: {},
      questionGroupItem: {
        grid: {
          columns: {
            options: [{goToAction: '', goToSectionId: '', image: {}, isOther: false, value: ''}],
            shuffle: false,
            type: ''
          },
          shuffleQuestions: false
        },
        image: {},
        questions: [
          {
            choiceQuestion: {},
            dateQuestion: {includeTime: false, includeYear: false},
            fileUploadQuestion: {folderId: '', maxFileSize: '', maxFiles: 0, types: []},
            grading: {
              correctAnswers: {answers: [{value: ''}]},
              generalFeedback: {
                material: [{link: {displayText: '', uri: ''}, video: {displayText: '', youtubeUri: ''}}],
                text: ''
              },
              pointValue: 0,
              whenRight: {},
              whenWrong: {}
            },
            questionId: '',
            required: false,
            rowQuestion: {title: ''},
            scaleQuestion: {high: 0, highLabel: '', low: 0, lowLabel: ''},
            textQuestion: {paragraph: false},
            timeQuestion: {duration: false}
          }
        ]
      },
      questionItem: {image: {}, question: {}},
      textItem: {},
      title: '',
      videoItem: {caption: '', video: {properties: {}, youtubeUri: ''}}
    }
  ],
  linkedSheetId: '',
  responderUri: '',
  revisionId: '',
  settings: {quizSettings: {isQuiz: false}}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms',
  headers: {'content-type': 'application/json'},
  body: {
    formId: '',
    info: {description: '', documentTitle: '', title: ''},
    items: [
      {
        description: '',
        imageItem: {
          image: {
            altText: '',
            contentUri: '',
            properties: {alignment: '', width: 0},
            sourceUri: ''
          }
        },
        itemId: '',
        pageBreakItem: {},
        questionGroupItem: {
          grid: {
            columns: {
              options: [{goToAction: '', goToSectionId: '', image: {}, isOther: false, value: ''}],
              shuffle: false,
              type: ''
            },
            shuffleQuestions: false
          },
          image: {},
          questions: [
            {
              choiceQuestion: {},
              dateQuestion: {includeTime: false, includeYear: false},
              fileUploadQuestion: {folderId: '', maxFileSize: '', maxFiles: 0, types: []},
              grading: {
                correctAnswers: {answers: [{value: ''}]},
                generalFeedback: {
                  material: [{link: {displayText: '', uri: ''}, video: {displayText: '', youtubeUri: ''}}],
                  text: ''
                },
                pointValue: 0,
                whenRight: {},
                whenWrong: {}
              },
              questionId: '',
              required: false,
              rowQuestion: {title: ''},
              scaleQuestion: {high: 0, highLabel: '', low: 0, lowLabel: ''},
              textQuestion: {paragraph: false},
              timeQuestion: {duration: false}
            }
          ]
        },
        questionItem: {image: {}, question: {}},
        textItem: {},
        title: '',
        videoItem: {caption: '', video: {properties: {}, youtubeUri: ''}}
      }
    ],
    linkedSheetId: '',
    responderUri: '',
    revisionId: '',
    settings: {quizSettings: {isQuiz: false}}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/forms');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  formId: '',
  info: {
    description: '',
    documentTitle: '',
    title: ''
  },
  items: [
    {
      description: '',
      imageItem: {
        image: {
          altText: '',
          contentUri: '',
          properties: {
            alignment: '',
            width: 0
          },
          sourceUri: ''
        }
      },
      itemId: '',
      pageBreakItem: {},
      questionGroupItem: {
        grid: {
          columns: {
            options: [
              {
                goToAction: '',
                goToSectionId: '',
                image: {},
                isOther: false,
                value: ''
              }
            ],
            shuffle: false,
            type: ''
          },
          shuffleQuestions: false
        },
        image: {},
        questions: [
          {
            choiceQuestion: {},
            dateQuestion: {
              includeTime: false,
              includeYear: false
            },
            fileUploadQuestion: {
              folderId: '',
              maxFileSize: '',
              maxFiles: 0,
              types: []
            },
            grading: {
              correctAnswers: {
                answers: [
                  {
                    value: ''
                  }
                ]
              },
              generalFeedback: {
                material: [
                  {
                    link: {
                      displayText: '',
                      uri: ''
                    },
                    video: {
                      displayText: '',
                      youtubeUri: ''
                    }
                  }
                ],
                text: ''
              },
              pointValue: 0,
              whenRight: {},
              whenWrong: {}
            },
            questionId: '',
            required: false,
            rowQuestion: {
              title: ''
            },
            scaleQuestion: {
              high: 0,
              highLabel: '',
              low: 0,
              lowLabel: ''
            },
            textQuestion: {
              paragraph: false
            },
            timeQuestion: {
              duration: false
            }
          }
        ]
      },
      questionItem: {
        image: {},
        question: {}
      },
      textItem: {},
      title: '',
      videoItem: {
        caption: '',
        video: {
          properties: {},
          youtubeUri: ''
        }
      }
    }
  ],
  linkedSheetId: '',
  responderUri: '',
  revisionId: '',
  settings: {
    quizSettings: {
      isQuiz: false
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms',
  headers: {'content-type': 'application/json'},
  data: {
    formId: '',
    info: {description: '', documentTitle: '', title: ''},
    items: [
      {
        description: '',
        imageItem: {
          image: {
            altText: '',
            contentUri: '',
            properties: {alignment: '', width: 0},
            sourceUri: ''
          }
        },
        itemId: '',
        pageBreakItem: {},
        questionGroupItem: {
          grid: {
            columns: {
              options: [{goToAction: '', goToSectionId: '', image: {}, isOther: false, value: ''}],
              shuffle: false,
              type: ''
            },
            shuffleQuestions: false
          },
          image: {},
          questions: [
            {
              choiceQuestion: {},
              dateQuestion: {includeTime: false, includeYear: false},
              fileUploadQuestion: {folderId: '', maxFileSize: '', maxFiles: 0, types: []},
              grading: {
                correctAnswers: {answers: [{value: ''}]},
                generalFeedback: {
                  material: [{link: {displayText: '', uri: ''}, video: {displayText: '', youtubeUri: ''}}],
                  text: ''
                },
                pointValue: 0,
                whenRight: {},
                whenWrong: {}
              },
              questionId: '',
              required: false,
              rowQuestion: {title: ''},
              scaleQuestion: {high: 0, highLabel: '', low: 0, lowLabel: ''},
              textQuestion: {paragraph: false},
              timeQuestion: {duration: false}
            }
          ]
        },
        questionItem: {image: {}, question: {}},
        textItem: {},
        title: '',
        videoItem: {caption: '', video: {properties: {}, youtubeUri: ''}}
      }
    ],
    linkedSheetId: '',
    responderUri: '',
    revisionId: '',
    settings: {quizSettings: {isQuiz: false}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"formId":"","info":{"description":"","documentTitle":"","title":""},"items":[{"description":"","imageItem":{"image":{"altText":"","contentUri":"","properties":{"alignment":"","width":0},"sourceUri":""}},"itemId":"","pageBreakItem":{},"questionGroupItem":{"grid":{"columns":{"options":[{"goToAction":"","goToSectionId":"","image":{},"isOther":false,"value":""}],"shuffle":false,"type":""},"shuffleQuestions":false},"image":{},"questions":[{"choiceQuestion":{},"dateQuestion":{"includeTime":false,"includeYear":false},"fileUploadQuestion":{"folderId":"","maxFileSize":"","maxFiles":0,"types":[]},"grading":{"correctAnswers":{"answers":[{"value":""}]},"generalFeedback":{"material":[{"link":{"displayText":"","uri":""},"video":{"displayText":"","youtubeUri":""}}],"text":""},"pointValue":0,"whenRight":{},"whenWrong":{}},"questionId":"","required":false,"rowQuestion":{"title":""},"scaleQuestion":{"high":0,"highLabel":"","low":0,"lowLabel":""},"textQuestion":{"paragraph":false},"timeQuestion":{"duration":false}}]},"questionItem":{"image":{},"question":{}},"textItem":{},"title":"","videoItem":{"caption":"","video":{"properties":{},"youtubeUri":""}}}],"linkedSheetId":"","responderUri":"","revisionId":"","settings":{"quizSettings":{"isQuiz":false}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"formId": @"",
                              @"info": @{ @"description": @"", @"documentTitle": @"", @"title": @"" },
                              @"items": @[ @{ @"description": @"", @"imageItem": @{ @"image": @{ @"altText": @"", @"contentUri": @"", @"properties": @{ @"alignment": @"", @"width": @0 }, @"sourceUri": @"" } }, @"itemId": @"", @"pageBreakItem": @{  }, @"questionGroupItem": @{ @"grid": @{ @"columns": @{ @"options": @[ @{ @"goToAction": @"", @"goToSectionId": @"", @"image": @{  }, @"isOther": @NO, @"value": @"" } ], @"shuffle": @NO, @"type": @"" }, @"shuffleQuestions": @NO }, @"image": @{  }, @"questions": @[ @{ @"choiceQuestion": @{  }, @"dateQuestion": @{ @"includeTime": @NO, @"includeYear": @NO }, @"fileUploadQuestion": @{ @"folderId": @"", @"maxFileSize": @"", @"maxFiles": @0, @"types": @[  ] }, @"grading": @{ @"correctAnswers": @{ @"answers": @[ @{ @"value": @"" } ] }, @"generalFeedback": @{ @"material": @[ @{ @"link": @{ @"displayText": @"", @"uri": @"" }, @"video": @{ @"displayText": @"", @"youtubeUri": @"" } } ], @"text": @"" }, @"pointValue": @0, @"whenRight": @{  }, @"whenWrong": @{  } }, @"questionId": @"", @"required": @NO, @"rowQuestion": @{ @"title": @"" }, @"scaleQuestion": @{ @"high": @0, @"highLabel": @"", @"low": @0, @"lowLabel": @"" }, @"textQuestion": @{ @"paragraph": @NO }, @"timeQuestion": @{ @"duration": @NO } } ] }, @"questionItem": @{ @"image": @{  }, @"question": @{  } }, @"textItem": @{  }, @"title": @"", @"videoItem": @{ @"caption": @"", @"video": @{ @"properties": @{  }, @"youtubeUri": @"" } } } ],
                              @"linkedSheetId": @"",
                              @"responderUri": @"",
                              @"revisionId": @"",
                              @"settings": @{ @"quizSettings": @{ @"isQuiz": @NO } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'formId' => '',
    'info' => [
        'description' => '',
        'documentTitle' => '',
        'title' => ''
    ],
    'items' => [
        [
                'description' => '',
                'imageItem' => [
                                'image' => [
                                                                'altText' => '',
                                                                'contentUri' => '',
                                                                'properties' => [
                                                                                                                                'alignment' => '',
                                                                                                                                'width' => 0
                                                                ],
                                                                'sourceUri' => ''
                                ]
                ],
                'itemId' => '',
                'pageBreakItem' => [
                                
                ],
                'questionGroupItem' => [
                                'grid' => [
                                                                'columns' => [
                                                                                                                                'options' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'goToAction' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'goToSectionId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'isOther' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'shuffle' => null,
                                                                                                                                'type' => ''
                                                                ],
                                                                'shuffleQuestions' => null
                                ],
                                'image' => [
                                                                
                                ],
                                'questions' => [
                                                                [
                                                                                                                                'choiceQuestion' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'dateQuestion' => [
                                                                                                                                                                                                                                                                'includeTime' => null,
                                                                                                                                                                                                                                                                'includeYear' => null
                                                                                                                                ],
                                                                                                                                'fileUploadQuestion' => [
                                                                                                                                                                                                                                                                'folderId' => '',
                                                                                                                                                                                                                                                                'maxFileSize' => '',
                                                                                                                                                                                                                                                                'maxFiles' => 0,
                                                                                                                                                                                                                                                                'types' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'grading' => [
                                                                                                                                                                                                                                                                'correctAnswers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'answers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'generalFeedback' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'material' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'link' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'video' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'youtubeUri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'text' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'pointValue' => 0,
                                                                                                                                                                                                                                                                'whenRight' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'whenWrong' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'questionId' => '',
                                                                                                                                'required' => null,
                                                                                                                                'rowQuestion' => [
                                                                                                                                                                                                                                                                'title' => ''
                                                                                                                                ],
                                                                                                                                'scaleQuestion' => [
                                                                                                                                                                                                                                                                'high' => 0,
                                                                                                                                                                                                                                                                'highLabel' => '',
                                                                                                                                                                                                                                                                'low' => 0,
                                                                                                                                                                                                                                                                'lowLabel' => ''
                                                                                                                                ],
                                                                                                                                'textQuestion' => [
                                                                                                                                                                                                                                                                'paragraph' => null
                                                                                                                                ],
                                                                                                                                'timeQuestion' => [
                                                                                                                                                                                                                                                                'duration' => null
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'questionItem' => [
                                'image' => [
                                                                
                                ],
                                'question' => [
                                                                
                                ]
                ],
                'textItem' => [
                                
                ],
                'title' => '',
                'videoItem' => [
                                'caption' => '',
                                'video' => [
                                                                'properties' => [
                                                                                                                                
                                                                ],
                                                                'youtubeUri' => ''
                                ]
                ]
        ]
    ],
    'linkedSheetId' => '',
    'responderUri' => '',
    'revisionId' => '',
    'settings' => [
        'quizSettings' => [
                'isQuiz' => null
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/forms', [
  'body' => '{
  "formId": "",
  "info": {
    "description": "",
    "documentTitle": "",
    "title": ""
  },
  "items": [
    {
      "description": "",
      "imageItem": {
        "image": {
          "altText": "",
          "contentUri": "",
          "properties": {
            "alignment": "",
            "width": 0
          },
          "sourceUri": ""
        }
      },
      "itemId": "",
      "pageBreakItem": {},
      "questionGroupItem": {
        "grid": {
          "columns": {
            "options": [
              {
                "goToAction": "",
                "goToSectionId": "",
                "image": {},
                "isOther": false,
                "value": ""
              }
            ],
            "shuffle": false,
            "type": ""
          },
          "shuffleQuestions": false
        },
        "image": {},
        "questions": [
          {
            "choiceQuestion": {},
            "dateQuestion": {
              "includeTime": false,
              "includeYear": false
            },
            "fileUploadQuestion": {
              "folderId": "",
              "maxFileSize": "",
              "maxFiles": 0,
              "types": []
            },
            "grading": {
              "correctAnswers": {
                "answers": [
                  {
                    "value": ""
                  }
                ]
              },
              "generalFeedback": {
                "material": [
                  {
                    "link": {
                      "displayText": "",
                      "uri": ""
                    },
                    "video": {
                      "displayText": "",
                      "youtubeUri": ""
                    }
                  }
                ],
                "text": ""
              },
              "pointValue": 0,
              "whenRight": {},
              "whenWrong": {}
            },
            "questionId": "",
            "required": false,
            "rowQuestion": {
              "title": ""
            },
            "scaleQuestion": {
              "high": 0,
              "highLabel": "",
              "low": 0,
              "lowLabel": ""
            },
            "textQuestion": {
              "paragraph": false
            },
            "timeQuestion": {
              "duration": false
            }
          }
        ]
      },
      "questionItem": {
        "image": {},
        "question": {}
      },
      "textItem": {},
      "title": "",
      "videoItem": {
        "caption": "",
        "video": {
          "properties": {},
          "youtubeUri": ""
        }
      }
    }
  ],
  "linkedSheetId": "",
  "responderUri": "",
  "revisionId": "",
  "settings": {
    "quizSettings": {
      "isQuiz": false
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'formId' => '',
  'info' => [
    'description' => '',
    'documentTitle' => '',
    'title' => ''
  ],
  'items' => [
    [
        'description' => '',
        'imageItem' => [
                'image' => [
                                'altText' => '',
                                'contentUri' => '',
                                'properties' => [
                                                                'alignment' => '',
                                                                'width' => 0
                                ],
                                'sourceUri' => ''
                ]
        ],
        'itemId' => '',
        'pageBreakItem' => [
                
        ],
        'questionGroupItem' => [
                'grid' => [
                                'columns' => [
                                                                'options' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'goToAction' => '',
                                                                                                                                                                                                                                                                'goToSectionId' => '',
                                                                                                                                                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'isOther' => null,
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ]
                                                                ],
                                                                'shuffle' => null,
                                                                'type' => ''
                                ],
                                'shuffleQuestions' => null
                ],
                'image' => [
                                
                ],
                'questions' => [
                                [
                                                                'choiceQuestion' => [
                                                                                                                                
                                                                ],
                                                                'dateQuestion' => [
                                                                                                                                'includeTime' => null,
                                                                                                                                'includeYear' => null
                                                                ],
                                                                'fileUploadQuestion' => [
                                                                                                                                'folderId' => '',
                                                                                                                                'maxFileSize' => '',
                                                                                                                                'maxFiles' => 0,
                                                                                                                                'types' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'grading' => [
                                                                                                                                'correctAnswers' => [
                                                                                                                                                                                                                                                                'answers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'generalFeedback' => [
                                                                                                                                                                                                                                                                'material' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'link' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'video' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'youtubeUri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'text' => ''
                                                                                                                                ],
                                                                                                                                'pointValue' => 0,
                                                                                                                                'whenRight' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'whenWrong' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'questionId' => '',
                                                                'required' => null,
                                                                'rowQuestion' => [
                                                                                                                                'title' => ''
                                                                ],
                                                                'scaleQuestion' => [
                                                                                                                                'high' => 0,
                                                                                                                                'highLabel' => '',
                                                                                                                                'low' => 0,
                                                                                                                                'lowLabel' => ''
                                                                ],
                                                                'textQuestion' => [
                                                                                                                                'paragraph' => null
                                                                ],
                                                                'timeQuestion' => [
                                                                                                                                'duration' => null
                                                                ]
                                ]
                ]
        ],
        'questionItem' => [
                'image' => [
                                
                ],
                'question' => [
                                
                ]
        ],
        'textItem' => [
                
        ],
        'title' => '',
        'videoItem' => [
                'caption' => '',
                'video' => [
                                'properties' => [
                                                                
                                ],
                                'youtubeUri' => ''
                ]
        ]
    ]
  ],
  'linkedSheetId' => '',
  'responderUri' => '',
  'revisionId' => '',
  'settings' => [
    'quizSettings' => [
        'isQuiz' => null
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'formId' => '',
  'info' => [
    'description' => '',
    'documentTitle' => '',
    'title' => ''
  ],
  'items' => [
    [
        'description' => '',
        'imageItem' => [
                'image' => [
                                'altText' => '',
                                'contentUri' => '',
                                'properties' => [
                                                                'alignment' => '',
                                                                'width' => 0
                                ],
                                'sourceUri' => ''
                ]
        ],
        'itemId' => '',
        'pageBreakItem' => [
                
        ],
        'questionGroupItem' => [
                'grid' => [
                                'columns' => [
                                                                'options' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'goToAction' => '',
                                                                                                                                                                                                                                                                'goToSectionId' => '',
                                                                                                                                                                                                                                                                'image' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'isOther' => null,
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ]
                                                                ],
                                                                'shuffle' => null,
                                                                'type' => ''
                                ],
                                'shuffleQuestions' => null
                ],
                'image' => [
                                
                ],
                'questions' => [
                                [
                                                                'choiceQuestion' => [
                                                                                                                                
                                                                ],
                                                                'dateQuestion' => [
                                                                                                                                'includeTime' => null,
                                                                                                                                'includeYear' => null
                                                                ],
                                                                'fileUploadQuestion' => [
                                                                                                                                'folderId' => '',
                                                                                                                                'maxFileSize' => '',
                                                                                                                                'maxFiles' => 0,
                                                                                                                                'types' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'grading' => [
                                                                                                                                'correctAnswers' => [
                                                                                                                                                                                                                                                                'answers' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'generalFeedback' => [
                                                                                                                                                                                                                                                                'material' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'link' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'video' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayText' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'youtubeUri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'text' => ''
                                                                                                                                ],
                                                                                                                                'pointValue' => 0,
                                                                                                                                'whenRight' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'whenWrong' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'questionId' => '',
                                                                'required' => null,
                                                                'rowQuestion' => [
                                                                                                                                'title' => ''
                                                                ],
                                                                'scaleQuestion' => [
                                                                                                                                'high' => 0,
                                                                                                                                'highLabel' => '',
                                                                                                                                'low' => 0,
                                                                                                                                'lowLabel' => ''
                                                                ],
                                                                'textQuestion' => [
                                                                                                                                'paragraph' => null
                                                                ],
                                                                'timeQuestion' => [
                                                                                                                                'duration' => null
                                                                ]
                                ]
                ]
        ],
        'questionItem' => [
                'image' => [
                                
                ],
                'question' => [
                                
                ]
        ],
        'textItem' => [
                
        ],
        'title' => '',
        'videoItem' => [
                'caption' => '',
                'video' => [
                                'properties' => [
                                                                
                                ],
                                'youtubeUri' => ''
                ]
        ]
    ]
  ],
  'linkedSheetId' => '',
  'responderUri' => '',
  'revisionId' => '',
  'settings' => [
    'quizSettings' => [
        'isQuiz' => null
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/forms');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "formId": "",
  "info": {
    "description": "",
    "documentTitle": "",
    "title": ""
  },
  "items": [
    {
      "description": "",
      "imageItem": {
        "image": {
          "altText": "",
          "contentUri": "",
          "properties": {
            "alignment": "",
            "width": 0
          },
          "sourceUri": ""
        }
      },
      "itemId": "",
      "pageBreakItem": {},
      "questionGroupItem": {
        "grid": {
          "columns": {
            "options": [
              {
                "goToAction": "",
                "goToSectionId": "",
                "image": {},
                "isOther": false,
                "value": ""
              }
            ],
            "shuffle": false,
            "type": ""
          },
          "shuffleQuestions": false
        },
        "image": {},
        "questions": [
          {
            "choiceQuestion": {},
            "dateQuestion": {
              "includeTime": false,
              "includeYear": false
            },
            "fileUploadQuestion": {
              "folderId": "",
              "maxFileSize": "",
              "maxFiles": 0,
              "types": []
            },
            "grading": {
              "correctAnswers": {
                "answers": [
                  {
                    "value": ""
                  }
                ]
              },
              "generalFeedback": {
                "material": [
                  {
                    "link": {
                      "displayText": "",
                      "uri": ""
                    },
                    "video": {
                      "displayText": "",
                      "youtubeUri": ""
                    }
                  }
                ],
                "text": ""
              },
              "pointValue": 0,
              "whenRight": {},
              "whenWrong": {}
            },
            "questionId": "",
            "required": false,
            "rowQuestion": {
              "title": ""
            },
            "scaleQuestion": {
              "high": 0,
              "highLabel": "",
              "low": 0,
              "lowLabel": ""
            },
            "textQuestion": {
              "paragraph": false
            },
            "timeQuestion": {
              "duration": false
            }
          }
        ]
      },
      "questionItem": {
        "image": {},
        "question": {}
      },
      "textItem": {},
      "title": "",
      "videoItem": {
        "caption": "",
        "video": {
          "properties": {},
          "youtubeUri": ""
        }
      }
    }
  ],
  "linkedSheetId": "",
  "responderUri": "",
  "revisionId": "",
  "settings": {
    "quizSettings": {
      "isQuiz": false
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "formId": "",
  "info": {
    "description": "",
    "documentTitle": "",
    "title": ""
  },
  "items": [
    {
      "description": "",
      "imageItem": {
        "image": {
          "altText": "",
          "contentUri": "",
          "properties": {
            "alignment": "",
            "width": 0
          },
          "sourceUri": ""
        }
      },
      "itemId": "",
      "pageBreakItem": {},
      "questionGroupItem": {
        "grid": {
          "columns": {
            "options": [
              {
                "goToAction": "",
                "goToSectionId": "",
                "image": {},
                "isOther": false,
                "value": ""
              }
            ],
            "shuffle": false,
            "type": ""
          },
          "shuffleQuestions": false
        },
        "image": {},
        "questions": [
          {
            "choiceQuestion": {},
            "dateQuestion": {
              "includeTime": false,
              "includeYear": false
            },
            "fileUploadQuestion": {
              "folderId": "",
              "maxFileSize": "",
              "maxFiles": 0,
              "types": []
            },
            "grading": {
              "correctAnswers": {
                "answers": [
                  {
                    "value": ""
                  }
                ]
              },
              "generalFeedback": {
                "material": [
                  {
                    "link": {
                      "displayText": "",
                      "uri": ""
                    },
                    "video": {
                      "displayText": "",
                      "youtubeUri": ""
                    }
                  }
                ],
                "text": ""
              },
              "pointValue": 0,
              "whenRight": {},
              "whenWrong": {}
            },
            "questionId": "",
            "required": false,
            "rowQuestion": {
              "title": ""
            },
            "scaleQuestion": {
              "high": 0,
              "highLabel": "",
              "low": 0,
              "lowLabel": ""
            },
            "textQuestion": {
              "paragraph": false
            },
            "timeQuestion": {
              "duration": false
            }
          }
        ]
      },
      "questionItem": {
        "image": {},
        "question": {}
      },
      "textItem": {},
      "title": "",
      "videoItem": {
        "caption": "",
        "video": {
          "properties": {},
          "youtubeUri": ""
        }
      }
    }
  ],
  "linkedSheetId": "",
  "responderUri": "",
  "revisionId": "",
  "settings": {
    "quizSettings": {
      "isQuiz": false
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/forms", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms"

payload = {
    "formId": "",
    "info": {
        "description": "",
        "documentTitle": "",
        "title": ""
    },
    "items": [
        {
            "description": "",
            "imageItem": { "image": {
                    "altText": "",
                    "contentUri": "",
                    "properties": {
                        "alignment": "",
                        "width": 0
                    },
                    "sourceUri": ""
                } },
            "itemId": "",
            "pageBreakItem": {},
            "questionGroupItem": {
                "grid": {
                    "columns": {
                        "options": [
                            {
                                "goToAction": "",
                                "goToSectionId": "",
                                "image": {},
                                "isOther": False,
                                "value": ""
                            }
                        ],
                        "shuffle": False,
                        "type": ""
                    },
                    "shuffleQuestions": False
                },
                "image": {},
                "questions": [
                    {
                        "choiceQuestion": {},
                        "dateQuestion": {
                            "includeTime": False,
                            "includeYear": False
                        },
                        "fileUploadQuestion": {
                            "folderId": "",
                            "maxFileSize": "",
                            "maxFiles": 0,
                            "types": []
                        },
                        "grading": {
                            "correctAnswers": { "answers": [{ "value": "" }] },
                            "generalFeedback": {
                                "material": [
                                    {
                                        "link": {
                                            "displayText": "",
                                            "uri": ""
                                        },
                                        "video": {
                                            "displayText": "",
                                            "youtubeUri": ""
                                        }
                                    }
                                ],
                                "text": ""
                            },
                            "pointValue": 0,
                            "whenRight": {},
                            "whenWrong": {}
                        },
                        "questionId": "",
                        "required": False,
                        "rowQuestion": { "title": "" },
                        "scaleQuestion": {
                            "high": 0,
                            "highLabel": "",
                            "low": 0,
                            "lowLabel": ""
                        },
                        "textQuestion": { "paragraph": False },
                        "timeQuestion": { "duration": False }
                    }
                ]
            },
            "questionItem": {
                "image": {},
                "question": {}
            },
            "textItem": {},
            "title": "",
            "videoItem": {
                "caption": "",
                "video": {
                    "properties": {},
                    "youtubeUri": ""
                }
            }
        }
    ],
    "linkedSheetId": "",
    "responderUri": "",
    "revisionId": "",
    "settings": { "quizSettings": { "isQuiz": False } }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms"

payload <- "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/forms') do |req|
  req.body = "{\n  \"formId\": \"\",\n  \"info\": {\n    \"description\": \"\",\n    \"documentTitle\": \"\",\n    \"title\": \"\"\n  },\n  \"items\": [\n    {\n      \"description\": \"\",\n      \"imageItem\": {\n        \"image\": {\n          \"altText\": \"\",\n          \"contentUri\": \"\",\n          \"properties\": {\n            \"alignment\": \"\",\n            \"width\": 0\n          },\n          \"sourceUri\": \"\"\n        }\n      },\n      \"itemId\": \"\",\n      \"pageBreakItem\": {},\n      \"questionGroupItem\": {\n        \"grid\": {\n          \"columns\": {\n            \"options\": [\n              {\n                \"goToAction\": \"\",\n                \"goToSectionId\": \"\",\n                \"image\": {},\n                \"isOther\": false,\n                \"value\": \"\"\n              }\n            ],\n            \"shuffle\": false,\n            \"type\": \"\"\n          },\n          \"shuffleQuestions\": false\n        },\n        \"image\": {},\n        \"questions\": [\n          {\n            \"choiceQuestion\": {},\n            \"dateQuestion\": {\n              \"includeTime\": false,\n              \"includeYear\": false\n            },\n            \"fileUploadQuestion\": {\n              \"folderId\": \"\",\n              \"maxFileSize\": \"\",\n              \"maxFiles\": 0,\n              \"types\": []\n            },\n            \"grading\": {\n              \"correctAnswers\": {\n                \"answers\": [\n                  {\n                    \"value\": \"\"\n                  }\n                ]\n              },\n              \"generalFeedback\": {\n                \"material\": [\n                  {\n                    \"link\": {\n                      \"displayText\": \"\",\n                      \"uri\": \"\"\n                    },\n                    \"video\": {\n                      \"displayText\": \"\",\n                      \"youtubeUri\": \"\"\n                    }\n                  }\n                ],\n                \"text\": \"\"\n              },\n              \"pointValue\": 0,\n              \"whenRight\": {},\n              \"whenWrong\": {}\n            },\n            \"questionId\": \"\",\n            \"required\": false,\n            \"rowQuestion\": {\n              \"title\": \"\"\n            },\n            \"scaleQuestion\": {\n              \"high\": 0,\n              \"highLabel\": \"\",\n              \"low\": 0,\n              \"lowLabel\": \"\"\n            },\n            \"textQuestion\": {\n              \"paragraph\": false\n            },\n            \"timeQuestion\": {\n              \"duration\": false\n            }\n          }\n        ]\n      },\n      \"questionItem\": {\n        \"image\": {},\n        \"question\": {}\n      },\n      \"textItem\": {},\n      \"title\": \"\",\n      \"videoItem\": {\n        \"caption\": \"\",\n        \"video\": {\n          \"properties\": {},\n          \"youtubeUri\": \"\"\n        }\n      }\n    }\n  ],\n  \"linkedSheetId\": \"\",\n  \"responderUri\": \"\",\n  \"revisionId\": \"\",\n  \"settings\": {\n    \"quizSettings\": {\n      \"isQuiz\": false\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms";

    let payload = json!({
        "formId": "",
        "info": json!({
            "description": "",
            "documentTitle": "",
            "title": ""
        }),
        "items": (
            json!({
                "description": "",
                "imageItem": json!({"image": json!({
                        "altText": "",
                        "contentUri": "",
                        "properties": json!({
                            "alignment": "",
                            "width": 0
                        }),
                        "sourceUri": ""
                    })}),
                "itemId": "",
                "pageBreakItem": json!({}),
                "questionGroupItem": json!({
                    "grid": json!({
                        "columns": json!({
                            "options": (
                                json!({
                                    "goToAction": "",
                                    "goToSectionId": "",
                                    "image": json!({}),
                                    "isOther": false,
                                    "value": ""
                                })
                            ),
                            "shuffle": false,
                            "type": ""
                        }),
                        "shuffleQuestions": false
                    }),
                    "image": json!({}),
                    "questions": (
                        json!({
                            "choiceQuestion": json!({}),
                            "dateQuestion": json!({
                                "includeTime": false,
                                "includeYear": false
                            }),
                            "fileUploadQuestion": json!({
                                "folderId": "",
                                "maxFileSize": "",
                                "maxFiles": 0,
                                "types": ()
                            }),
                            "grading": json!({
                                "correctAnswers": json!({"answers": (json!({"value": ""}))}),
                                "generalFeedback": json!({
                                    "material": (
                                        json!({
                                            "link": json!({
                                                "displayText": "",
                                                "uri": ""
                                            }),
                                            "video": json!({
                                                "displayText": "",
                                                "youtubeUri": ""
                                            })
                                        })
                                    ),
                                    "text": ""
                                }),
                                "pointValue": 0,
                                "whenRight": json!({}),
                                "whenWrong": json!({})
                            }),
                            "questionId": "",
                            "required": false,
                            "rowQuestion": json!({"title": ""}),
                            "scaleQuestion": json!({
                                "high": 0,
                                "highLabel": "",
                                "low": 0,
                                "lowLabel": ""
                            }),
                            "textQuestion": json!({"paragraph": false}),
                            "timeQuestion": json!({"duration": false})
                        })
                    )
                }),
                "questionItem": json!({
                    "image": json!({}),
                    "question": json!({})
                }),
                "textItem": json!({}),
                "title": "",
                "videoItem": json!({
                    "caption": "",
                    "video": json!({
                        "properties": json!({}),
                        "youtubeUri": ""
                    })
                })
            })
        ),
        "linkedSheetId": "",
        "responderUri": "",
        "revisionId": "",
        "settings": json!({"quizSettings": json!({"isQuiz": false})})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/forms \
  --header 'content-type: application/json' \
  --data '{
  "formId": "",
  "info": {
    "description": "",
    "documentTitle": "",
    "title": ""
  },
  "items": [
    {
      "description": "",
      "imageItem": {
        "image": {
          "altText": "",
          "contentUri": "",
          "properties": {
            "alignment": "",
            "width": 0
          },
          "sourceUri": ""
        }
      },
      "itemId": "",
      "pageBreakItem": {},
      "questionGroupItem": {
        "grid": {
          "columns": {
            "options": [
              {
                "goToAction": "",
                "goToSectionId": "",
                "image": {},
                "isOther": false,
                "value": ""
              }
            ],
            "shuffle": false,
            "type": ""
          },
          "shuffleQuestions": false
        },
        "image": {},
        "questions": [
          {
            "choiceQuestion": {},
            "dateQuestion": {
              "includeTime": false,
              "includeYear": false
            },
            "fileUploadQuestion": {
              "folderId": "",
              "maxFileSize": "",
              "maxFiles": 0,
              "types": []
            },
            "grading": {
              "correctAnswers": {
                "answers": [
                  {
                    "value": ""
                  }
                ]
              },
              "generalFeedback": {
                "material": [
                  {
                    "link": {
                      "displayText": "",
                      "uri": ""
                    },
                    "video": {
                      "displayText": "",
                      "youtubeUri": ""
                    }
                  }
                ],
                "text": ""
              },
              "pointValue": 0,
              "whenRight": {},
              "whenWrong": {}
            },
            "questionId": "",
            "required": false,
            "rowQuestion": {
              "title": ""
            },
            "scaleQuestion": {
              "high": 0,
              "highLabel": "",
              "low": 0,
              "lowLabel": ""
            },
            "textQuestion": {
              "paragraph": false
            },
            "timeQuestion": {
              "duration": false
            }
          }
        ]
      },
      "questionItem": {
        "image": {},
        "question": {}
      },
      "textItem": {},
      "title": "",
      "videoItem": {
        "caption": "",
        "video": {
          "properties": {},
          "youtubeUri": ""
        }
      }
    }
  ],
  "linkedSheetId": "",
  "responderUri": "",
  "revisionId": "",
  "settings": {
    "quizSettings": {
      "isQuiz": false
    }
  }
}'
echo '{
  "formId": "",
  "info": {
    "description": "",
    "documentTitle": "",
    "title": ""
  },
  "items": [
    {
      "description": "",
      "imageItem": {
        "image": {
          "altText": "",
          "contentUri": "",
          "properties": {
            "alignment": "",
            "width": 0
          },
          "sourceUri": ""
        }
      },
      "itemId": "",
      "pageBreakItem": {},
      "questionGroupItem": {
        "grid": {
          "columns": {
            "options": [
              {
                "goToAction": "",
                "goToSectionId": "",
                "image": {},
                "isOther": false,
                "value": ""
              }
            ],
            "shuffle": false,
            "type": ""
          },
          "shuffleQuestions": false
        },
        "image": {},
        "questions": [
          {
            "choiceQuestion": {},
            "dateQuestion": {
              "includeTime": false,
              "includeYear": false
            },
            "fileUploadQuestion": {
              "folderId": "",
              "maxFileSize": "",
              "maxFiles": 0,
              "types": []
            },
            "grading": {
              "correctAnswers": {
                "answers": [
                  {
                    "value": ""
                  }
                ]
              },
              "generalFeedback": {
                "material": [
                  {
                    "link": {
                      "displayText": "",
                      "uri": ""
                    },
                    "video": {
                      "displayText": "",
                      "youtubeUri": ""
                    }
                  }
                ],
                "text": ""
              },
              "pointValue": 0,
              "whenRight": {},
              "whenWrong": {}
            },
            "questionId": "",
            "required": false,
            "rowQuestion": {
              "title": ""
            },
            "scaleQuestion": {
              "high": 0,
              "highLabel": "",
              "low": 0,
              "lowLabel": ""
            },
            "textQuestion": {
              "paragraph": false
            },
            "timeQuestion": {
              "duration": false
            }
          }
        ]
      },
      "questionItem": {
        "image": {},
        "question": {}
      },
      "textItem": {},
      "title": "",
      "videoItem": {
        "caption": "",
        "video": {
          "properties": {},
          "youtubeUri": ""
        }
      }
    }
  ],
  "linkedSheetId": "",
  "responderUri": "",
  "revisionId": "",
  "settings": {
    "quizSettings": {
      "isQuiz": false
    }
  }
}' |  \
  http POST {{baseUrl}}/v1/forms \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "formId": "",\n  "info": {\n    "description": "",\n    "documentTitle": "",\n    "title": ""\n  },\n  "items": [\n    {\n      "description": "",\n      "imageItem": {\n        "image": {\n          "altText": "",\n          "contentUri": "",\n          "properties": {\n            "alignment": "",\n            "width": 0\n          },\n          "sourceUri": ""\n        }\n      },\n      "itemId": "",\n      "pageBreakItem": {},\n      "questionGroupItem": {\n        "grid": {\n          "columns": {\n            "options": [\n              {\n                "goToAction": "",\n                "goToSectionId": "",\n                "image": {},\n                "isOther": false,\n                "value": ""\n              }\n            ],\n            "shuffle": false,\n            "type": ""\n          },\n          "shuffleQuestions": false\n        },\n        "image": {},\n        "questions": [\n          {\n            "choiceQuestion": {},\n            "dateQuestion": {\n              "includeTime": false,\n              "includeYear": false\n            },\n            "fileUploadQuestion": {\n              "folderId": "",\n              "maxFileSize": "",\n              "maxFiles": 0,\n              "types": []\n            },\n            "grading": {\n              "correctAnswers": {\n                "answers": [\n                  {\n                    "value": ""\n                  }\n                ]\n              },\n              "generalFeedback": {\n                "material": [\n                  {\n                    "link": {\n                      "displayText": "",\n                      "uri": ""\n                    },\n                    "video": {\n                      "displayText": "",\n                      "youtubeUri": ""\n                    }\n                  }\n                ],\n                "text": ""\n              },\n              "pointValue": 0,\n              "whenRight": {},\n              "whenWrong": {}\n            },\n            "questionId": "",\n            "required": false,\n            "rowQuestion": {\n              "title": ""\n            },\n            "scaleQuestion": {\n              "high": 0,\n              "highLabel": "",\n              "low": 0,\n              "lowLabel": ""\n            },\n            "textQuestion": {\n              "paragraph": false\n            },\n            "timeQuestion": {\n              "duration": false\n            }\n          }\n        ]\n      },\n      "questionItem": {\n        "image": {},\n        "question": {}\n      },\n      "textItem": {},\n      "title": "",\n      "videoItem": {\n        "caption": "",\n        "video": {\n          "properties": {},\n          "youtubeUri": ""\n        }\n      }\n    }\n  ],\n  "linkedSheetId": "",\n  "responderUri": "",\n  "revisionId": "",\n  "settings": {\n    "quizSettings": {\n      "isQuiz": false\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/forms
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "formId": "",
  "info": [
    "description": "",
    "documentTitle": "",
    "title": ""
  ],
  "items": [
    [
      "description": "",
      "imageItem": ["image": [
          "altText": "",
          "contentUri": "",
          "properties": [
            "alignment": "",
            "width": 0
          ],
          "sourceUri": ""
        ]],
      "itemId": "",
      "pageBreakItem": [],
      "questionGroupItem": [
        "grid": [
          "columns": [
            "options": [
              [
                "goToAction": "",
                "goToSectionId": "",
                "image": [],
                "isOther": false,
                "value": ""
              ]
            ],
            "shuffle": false,
            "type": ""
          ],
          "shuffleQuestions": false
        ],
        "image": [],
        "questions": [
          [
            "choiceQuestion": [],
            "dateQuestion": [
              "includeTime": false,
              "includeYear": false
            ],
            "fileUploadQuestion": [
              "folderId": "",
              "maxFileSize": "",
              "maxFiles": 0,
              "types": []
            ],
            "grading": [
              "correctAnswers": ["answers": [["value": ""]]],
              "generalFeedback": [
                "material": [
                  [
                    "link": [
                      "displayText": "",
                      "uri": ""
                    ],
                    "video": [
                      "displayText": "",
                      "youtubeUri": ""
                    ]
                  ]
                ],
                "text": ""
              ],
              "pointValue": 0,
              "whenRight": [],
              "whenWrong": []
            ],
            "questionId": "",
            "required": false,
            "rowQuestion": ["title": ""],
            "scaleQuestion": [
              "high": 0,
              "highLabel": "",
              "low": 0,
              "lowLabel": ""
            ],
            "textQuestion": ["paragraph": false],
            "timeQuestion": ["duration": false]
          ]
        ]
      ],
      "questionItem": [
        "image": [],
        "question": []
      ],
      "textItem": [],
      "title": "",
      "videoItem": [
        "caption": "",
        "video": [
          "properties": [],
          "youtubeUri": ""
        ]
      ]
    ]
  ],
  "linkedSheetId": "",
  "responderUri": "",
  "revisionId": "",
  "settings": ["quizSettings": ["isQuiz": false]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET forms.forms.get
{{baseUrl}}/v1/forms/:formId
QUERY PARAMS

formId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms/:formId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/forms/:formId")
require "http/client"

url = "{{baseUrl}}/v1/forms/:formId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/forms/:formId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms/:formId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms/:formId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/forms/:formId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/forms/:formId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms/:formId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/forms/:formId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/forms/:formId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms/:formId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms/:formId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms/:formId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/forms/:formId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms/:formId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms/:formId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms/:formId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms/:formId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/forms/:formId');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms/:formId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/forms/:formId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms/:formId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms/:formId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/forms/:formId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms/:formId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms/:formId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms/:formId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/forms/:formId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms/:formId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/forms/:formId
http GET {{baseUrl}}/v1/forms/:formId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/forms/:formId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms/:formId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET forms.forms.responses.get
{{baseUrl}}/v1/forms/:formId/responses/:responseId
QUERY PARAMS

formId
responseId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms/:formId/responses/:responseId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/forms/:formId/responses/:responseId")
require "http/client"

url = "{{baseUrl}}/v1/forms/:formId/responses/:responseId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/forms/:formId/responses/:responseId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms/:formId/responses/:responseId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms/:formId/responses/:responseId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/forms/:formId/responses/:responseId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/forms/:formId/responses/:responseId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms/:formId/responses/:responseId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/responses/:responseId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/forms/:formId/responses/:responseId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/forms/:formId/responses/:responseId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/forms/:formId/responses/:responseId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms/:formId/responses/:responseId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms/:formId/responses/:responseId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/responses/:responseId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms/:formId/responses/:responseId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/forms/:formId/responses/:responseId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/forms/:formId/responses/:responseId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/forms/:formId/responses/:responseId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms/:formId/responses/:responseId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms/:formId/responses/:responseId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms/:formId/responses/:responseId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms/:formId/responses/:responseId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/forms/:formId/responses/:responseId');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms/:formId/responses/:responseId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/forms/:formId/responses/:responseId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms/:formId/responses/:responseId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms/:formId/responses/:responseId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/forms/:formId/responses/:responseId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms/:formId/responses/:responseId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms/:formId/responses/:responseId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms/:formId/responses/:responseId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/forms/:formId/responses/:responseId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms/:formId/responses/:responseId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/forms/:formId/responses/:responseId
http GET {{baseUrl}}/v1/forms/:formId/responses/:responseId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/forms/:formId/responses/:responseId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms/:formId/responses/:responseId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET forms.forms.responses.list
{{baseUrl}}/v1/forms/:formId/responses
QUERY PARAMS

formId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms/:formId/responses");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/forms/:formId/responses")
require "http/client"

url = "{{baseUrl}}/v1/forms/:formId/responses"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/forms/:formId/responses"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms/:formId/responses");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms/:formId/responses"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/forms/:formId/responses HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/forms/:formId/responses")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms/:formId/responses"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/responses")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/forms/:formId/responses")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/forms/:formId/responses');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId/responses'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms/:formId/responses';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms/:formId/responses',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/responses")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms/:formId/responses',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId/responses'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/forms/:formId/responses');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId/responses'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms/:formId/responses';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms/:formId/responses"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms/:formId/responses" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms/:formId/responses",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/forms/:formId/responses');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms/:formId/responses');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/forms/:formId/responses');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms/:formId/responses' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms/:formId/responses' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/forms/:formId/responses")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms/:formId/responses"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms/:formId/responses"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms/:formId/responses")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/forms/:formId/responses') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms/:formId/responses";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/forms/:formId/responses
http GET {{baseUrl}}/v1/forms/:formId/responses
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/forms/:formId/responses
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms/:formId/responses")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST forms.forms.watches.create
{{baseUrl}}/v1/forms/:formId/watches
QUERY PARAMS

formId
BODY json

{
  "watch": {
    "createTime": "",
    "errorType": "",
    "eventType": "",
    "expireTime": "",
    "id": "",
    "state": "",
    "target": {
      "topic": {
        "topicName": ""
      }
    }
  },
  "watchId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms/:formId/watches");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/forms/:formId/watches" {:content-type :json
                                                                     :form-params {:watch {:createTime ""
                                                                                           :errorType ""
                                                                                           :eventType ""
                                                                                           :expireTime ""
                                                                                           :id ""
                                                                                           :state ""
                                                                                           :target {:topic {:topicName ""}}}
                                                                                   :watchId ""}})
require "http/client"

url = "{{baseUrl}}/v1/forms/:formId/watches"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/forms/:formId/watches"),
    Content = new StringContent("{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms/:formId/watches");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms/:formId/watches"

	payload := strings.NewReader("{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/forms/:formId/watches HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 225

{
  "watch": {
    "createTime": "",
    "errorType": "",
    "eventType": "",
    "expireTime": "",
    "id": "",
    "state": "",
    "target": {
      "topic": {
        "topicName": ""
      }
    }
  },
  "watchId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/forms/:formId/watches")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms/:formId/watches"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/watches")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/forms/:formId/watches")
  .header("content-type", "application/json")
  .body("{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  watch: {
    createTime: '',
    errorType: '',
    eventType: '',
    expireTime: '',
    id: '',
    state: '',
    target: {
      topic: {
        topicName: ''
      }
    }
  },
  watchId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/forms/:formId/watches');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId/watches',
  headers: {'content-type': 'application/json'},
  data: {
    watch: {
      createTime: '',
      errorType: '',
      eventType: '',
      expireTime: '',
      id: '',
      state: '',
      target: {topic: {topicName: ''}}
    },
    watchId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms/:formId/watches';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"watch":{"createTime":"","errorType":"","eventType":"","expireTime":"","id":"","state":"","target":{"topic":{"topicName":""}}},"watchId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms/:formId/watches',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "watch": {\n    "createTime": "",\n    "errorType": "",\n    "eventType": "",\n    "expireTime": "",\n    "id": "",\n    "state": "",\n    "target": {\n      "topic": {\n        "topicName": ""\n      }\n    }\n  },\n  "watchId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/watches")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms/:formId/watches',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  watch: {
    createTime: '',
    errorType: '',
    eventType: '',
    expireTime: '',
    id: '',
    state: '',
    target: {topic: {topicName: ''}}
  },
  watchId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId/watches',
  headers: {'content-type': 'application/json'},
  body: {
    watch: {
      createTime: '',
      errorType: '',
      eventType: '',
      expireTime: '',
      id: '',
      state: '',
      target: {topic: {topicName: ''}}
    },
    watchId: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/forms/:formId/watches');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  watch: {
    createTime: '',
    errorType: '',
    eventType: '',
    expireTime: '',
    id: '',
    state: '',
    target: {
      topic: {
        topicName: ''
      }
    }
  },
  watchId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId/watches',
  headers: {'content-type': 'application/json'},
  data: {
    watch: {
      createTime: '',
      errorType: '',
      eventType: '',
      expireTime: '',
      id: '',
      state: '',
      target: {topic: {topicName: ''}}
    },
    watchId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms/:formId/watches';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"watch":{"createTime":"","errorType":"","eventType":"","expireTime":"","id":"","state":"","target":{"topic":{"topicName":""}}},"watchId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"watch": @{ @"createTime": @"", @"errorType": @"", @"eventType": @"", @"expireTime": @"", @"id": @"", @"state": @"", @"target": @{ @"topic": @{ @"topicName": @"" } } },
                              @"watchId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms/:formId/watches"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms/:formId/watches" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms/:formId/watches",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'watch' => [
        'createTime' => '',
        'errorType' => '',
        'eventType' => '',
        'expireTime' => '',
        'id' => '',
        'state' => '',
        'target' => [
                'topic' => [
                                'topicName' => ''
                ]
        ]
    ],
    'watchId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/forms/:formId/watches', [
  'body' => '{
  "watch": {
    "createTime": "",
    "errorType": "",
    "eventType": "",
    "expireTime": "",
    "id": "",
    "state": "",
    "target": {
      "topic": {
        "topicName": ""
      }
    }
  },
  "watchId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms/:formId/watches');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'watch' => [
    'createTime' => '',
    'errorType' => '',
    'eventType' => '',
    'expireTime' => '',
    'id' => '',
    'state' => '',
    'target' => [
        'topic' => [
                'topicName' => ''
        ]
    ]
  ],
  'watchId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'watch' => [
    'createTime' => '',
    'errorType' => '',
    'eventType' => '',
    'expireTime' => '',
    'id' => '',
    'state' => '',
    'target' => [
        'topic' => [
                'topicName' => ''
        ]
    ]
  ],
  'watchId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/forms/:formId/watches');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms/:formId/watches' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "watch": {
    "createTime": "",
    "errorType": "",
    "eventType": "",
    "expireTime": "",
    "id": "",
    "state": "",
    "target": {
      "topic": {
        "topicName": ""
      }
    }
  },
  "watchId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms/:formId/watches' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "watch": {
    "createTime": "",
    "errorType": "",
    "eventType": "",
    "expireTime": "",
    "id": "",
    "state": "",
    "target": {
      "topic": {
        "topicName": ""
      }
    }
  },
  "watchId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/forms/:formId/watches", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms/:formId/watches"

payload = {
    "watch": {
        "createTime": "",
        "errorType": "",
        "eventType": "",
        "expireTime": "",
        "id": "",
        "state": "",
        "target": { "topic": { "topicName": "" } }
    },
    "watchId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms/:formId/watches"

payload <- "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms/:formId/watches")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/forms/:formId/watches') do |req|
  req.body = "{\n  \"watch\": {\n    \"createTime\": \"\",\n    \"errorType\": \"\",\n    \"eventType\": \"\",\n    \"expireTime\": \"\",\n    \"id\": \"\",\n    \"state\": \"\",\n    \"target\": {\n      \"topic\": {\n        \"topicName\": \"\"\n      }\n    }\n  },\n  \"watchId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms/:formId/watches";

    let payload = json!({
        "watch": json!({
            "createTime": "",
            "errorType": "",
            "eventType": "",
            "expireTime": "",
            "id": "",
            "state": "",
            "target": json!({"topic": json!({"topicName": ""})})
        }),
        "watchId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/forms/:formId/watches \
  --header 'content-type: application/json' \
  --data '{
  "watch": {
    "createTime": "",
    "errorType": "",
    "eventType": "",
    "expireTime": "",
    "id": "",
    "state": "",
    "target": {
      "topic": {
        "topicName": ""
      }
    }
  },
  "watchId": ""
}'
echo '{
  "watch": {
    "createTime": "",
    "errorType": "",
    "eventType": "",
    "expireTime": "",
    "id": "",
    "state": "",
    "target": {
      "topic": {
        "topicName": ""
      }
    }
  },
  "watchId": ""
}' |  \
  http POST {{baseUrl}}/v1/forms/:formId/watches \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "watch": {\n    "createTime": "",\n    "errorType": "",\n    "eventType": "",\n    "expireTime": "",\n    "id": "",\n    "state": "",\n    "target": {\n      "topic": {\n        "topicName": ""\n      }\n    }\n  },\n  "watchId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/forms/:formId/watches
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "watch": [
    "createTime": "",
    "errorType": "",
    "eventType": "",
    "expireTime": "",
    "id": "",
    "state": "",
    "target": ["topic": ["topicName": ""]]
  ],
  "watchId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms/:formId/watches")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE forms.forms.watches.delete
{{baseUrl}}/v1/forms/:formId/watches/:watchId
QUERY PARAMS

formId
watchId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms/:formId/watches/:watchId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v1/forms/:formId/watches/:watchId")
require "http/client"

url = "{{baseUrl}}/v1/forms/:formId/watches/:watchId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/v1/forms/:formId/watches/:watchId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms/:formId/watches/:watchId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms/:formId/watches/:watchId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/v1/forms/:formId/watches/:watchId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1/forms/:formId/watches/:watchId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms/:formId/watches/:watchId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/watches/:watchId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/forms/:formId/watches/:watchId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/v1/forms/:formId/watches/:watchId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v1/forms/:formId/watches/:watchId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms/:formId/watches/:watchId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms/:formId/watches/:watchId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/watches/:watchId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms/:formId/watches/:watchId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v1/forms/:formId/watches/:watchId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v1/forms/:formId/watches/:watchId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v1/forms/:formId/watches/:watchId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms/:formId/watches/:watchId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms/:formId/watches/:watchId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms/:formId/watches/:watchId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms/:formId/watches/:watchId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/v1/forms/:formId/watches/:watchId');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms/:formId/watches/:watchId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/forms/:formId/watches/:watchId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms/:formId/watches/:watchId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms/:formId/watches/:watchId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v1/forms/:formId/watches/:watchId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms/:formId/watches/:watchId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms/:formId/watches/:watchId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms/:formId/watches/:watchId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/v1/forms/:formId/watches/:watchId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms/:formId/watches/:watchId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/v1/forms/:formId/watches/:watchId
http DELETE {{baseUrl}}/v1/forms/:formId/watches/:watchId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v1/forms/:formId/watches/:watchId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms/:formId/watches/:watchId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET forms.forms.watches.list
{{baseUrl}}/v1/forms/:formId/watches
QUERY PARAMS

formId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms/:formId/watches");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/forms/:formId/watches")
require "http/client"

url = "{{baseUrl}}/v1/forms/:formId/watches"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/forms/:formId/watches"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms/:formId/watches");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms/:formId/watches"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/forms/:formId/watches HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/forms/:formId/watches")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms/:formId/watches"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/watches")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/forms/:formId/watches")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/forms/:formId/watches');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId/watches'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms/:formId/watches';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms/:formId/watches',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/watches")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms/:formId/watches',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId/watches'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/forms/:formId/watches');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/forms/:formId/watches'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms/:formId/watches';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms/:formId/watches"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms/:formId/watches" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms/:formId/watches",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/forms/:formId/watches');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms/:formId/watches');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/forms/:formId/watches');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms/:formId/watches' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms/:formId/watches' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/forms/:formId/watches")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms/:formId/watches"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms/:formId/watches"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms/:formId/watches")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/forms/:formId/watches') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms/:formId/watches";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/forms/:formId/watches
http GET {{baseUrl}}/v1/forms/:formId/watches
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/forms/:formId/watches
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms/:formId/watches")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST forms.forms.watches.renew
{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew
QUERY PARAMS

formId
watchId
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/forms/:formId/watches/:watchId:renew HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/forms/:formId/watches/:watchId:renew',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/forms/:formId/watches/:watchId:renew", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/forms/:formId/watches/:watchId:renew') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/forms/:formId/watches/:watchId:renew \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1/forms/:formId/watches/:watchId:renew \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1/forms/:formId/watches/:watchId:renew
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/forms/:formId/watches/:watchId:renew")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()