POST datalabeling.projects.annotationSpecSets.create
{{baseUrl}}/v1beta1/:parent/annotationSpecSets
QUERY PARAMS

parent
BODY json

{
  "annotationSpecSet": {
    "annotationSpecs": [
      {
        "description": "",
        "displayName": "",
        "index": 0
      }
    ],
    "blockingResources": [],
    "description": "",
    "displayName": "",
    "name": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/annotationSpecSets");

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  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/annotationSpecSets" {:content-type :json
                                                                               :form-params {:annotationSpecSet {:annotationSpecs [{:description ""
                                                                                                                                    :displayName ""
                                                                                                                                    :index 0}]
                                                                                                                 :blockingResources []
                                                                                                                 :description ""
                                                                                                                 :displayName ""
                                                                                                                 :name ""}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/annotationSpecSets"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\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}}/v1beta1/:parent/annotationSpecSets"),
    Content = new StringContent("{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\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}}/v1beta1/:parent/annotationSpecSets");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/annotationSpecSets"

	payload := strings.NewReader("{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\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/v1beta1/:parent/annotationSpecSets HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 243

{
  "annotationSpecSet": {
    "annotationSpecs": [
      {
        "description": "",
        "displayName": "",
        "index": 0
      }
    ],
    "blockingResources": [],
    "description": "",
    "displayName": "",
    "name": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/annotationSpecSets")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/annotationSpecSets"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\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  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/annotationSpecSets")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/annotationSpecSets")
  .header("content-type", "application/json")
  .body("{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  annotationSpecSet: {
    annotationSpecs: [
      {
        description: '',
        displayName: '',
        index: 0
      }
    ],
    blockingResources: [],
    description: '',
    displayName: '',
    name: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/annotationSpecSets');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/annotationSpecSets',
  headers: {'content-type': 'application/json'},
  data: {
    annotationSpecSet: {
      annotationSpecs: [{description: '', displayName: '', index: 0}],
      blockingResources: [],
      description: '',
      displayName: '',
      name: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/annotationSpecSets';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"annotationSpecSet":{"annotationSpecs":[{"description":"","displayName":"","index":0}],"blockingResources":[],"description":"","displayName":"","name":""}}'
};

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}}/v1beta1/:parent/annotationSpecSets',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "annotationSpecSet": {\n    "annotationSpecs": [\n      {\n        "description": "",\n        "displayName": "",\n        "index": 0\n      }\n    ],\n    "blockingResources": [],\n    "description": "",\n    "displayName": "",\n    "name": ""\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  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/annotationSpecSets")
  .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/v1beta1/:parent/annotationSpecSets',
  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({
  annotationSpecSet: {
    annotationSpecs: [{description: '', displayName: '', index: 0}],
    blockingResources: [],
    description: '',
    displayName: '',
    name: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/annotationSpecSets',
  headers: {'content-type': 'application/json'},
  body: {
    annotationSpecSet: {
      annotationSpecs: [{description: '', displayName: '', index: 0}],
      blockingResources: [],
      description: '',
      displayName: '',
      name: ''
    }
  },
  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}}/v1beta1/:parent/annotationSpecSets');

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

req.type('json');
req.send({
  annotationSpecSet: {
    annotationSpecs: [
      {
        description: '',
        displayName: '',
        index: 0
      }
    ],
    blockingResources: [],
    description: '',
    displayName: '',
    name: ''
  }
});

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}}/v1beta1/:parent/annotationSpecSets',
  headers: {'content-type': 'application/json'},
  data: {
    annotationSpecSet: {
      annotationSpecs: [{description: '', displayName: '', index: 0}],
      blockingResources: [],
      description: '',
      displayName: '',
      name: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/annotationSpecSets';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"annotationSpecSet":{"annotationSpecs":[{"description":"","displayName":"","index":0}],"blockingResources":[],"description":"","displayName":"","name":""}}'
};

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 = @{ @"annotationSpecSet": @{ @"annotationSpecs": @[ @{ @"description": @"", @"displayName": @"", @"index": @0 } ], @"blockingResources": @[  ], @"description": @"", @"displayName": @"", @"name": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/annotationSpecSets"]
                                                       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}}/v1beta1/:parent/annotationSpecSets" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/annotationSpecSets",
  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([
    'annotationSpecSet' => [
        'annotationSpecs' => [
                [
                                'description' => '',
                                'displayName' => '',
                                'index' => 0
                ]
        ],
        'blockingResources' => [
                
        ],
        'description' => '',
        'displayName' => '',
        'name' => ''
    ]
  ]),
  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}}/v1beta1/:parent/annotationSpecSets', [
  'body' => '{
  "annotationSpecSet": {
    "annotationSpecs": [
      {
        "description": "",
        "displayName": "",
        "index": 0
      }
    ],
    "blockingResources": [],
    "description": "",
    "displayName": "",
    "name": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/annotationSpecSets');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'annotationSpecSet' => [
    'annotationSpecs' => [
        [
                'description' => '',
                'displayName' => '',
                'index' => 0
        ]
    ],
    'blockingResources' => [
        
    ],
    'description' => '',
    'displayName' => '',
    'name' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'annotationSpecSet' => [
    'annotationSpecs' => [
        [
                'description' => '',
                'displayName' => '',
                'index' => 0
        ]
    ],
    'blockingResources' => [
        
    ],
    'description' => '',
    'displayName' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/annotationSpecSets');
$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}}/v1beta1/:parent/annotationSpecSets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "annotationSpecSet": {
    "annotationSpecs": [
      {
        "description": "",
        "displayName": "",
        "index": 0
      }
    ],
    "blockingResources": [],
    "description": "",
    "displayName": "",
    "name": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/annotationSpecSets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "annotationSpecSet": {
    "annotationSpecs": [
      {
        "description": "",
        "displayName": "",
        "index": 0
      }
    ],
    "blockingResources": [],
    "description": "",
    "displayName": "",
    "name": ""
  }
}'
import http.client

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

payload = "{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/annotationSpecSets", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/annotationSpecSets"

payload = { "annotationSpecSet": {
        "annotationSpecs": [
            {
                "description": "",
                "displayName": "",
                "index": 0
            }
        ],
        "blockingResources": [],
        "description": "",
        "displayName": "",
        "name": ""
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/annotationSpecSets"

payload <- "{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\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}}/v1beta1/:parent/annotationSpecSets")

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  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\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/v1beta1/:parent/annotationSpecSets') do |req|
  req.body = "{\n  \"annotationSpecSet\": {\n    \"annotationSpecs\": [\n      {\n        \"description\": \"\",\n        \"displayName\": \"\",\n        \"index\": 0\n      }\n    ],\n    \"blockingResources\": [],\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\"\n  }\n}"
end

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

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

    let payload = json!({"annotationSpecSet": json!({
            "annotationSpecs": (
                json!({
                    "description": "",
                    "displayName": "",
                    "index": 0
                })
            ),
            "blockingResources": (),
            "description": "",
            "displayName": "",
            "name": ""
        })});

    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}}/v1beta1/:parent/annotationSpecSets \
  --header 'content-type: application/json' \
  --data '{
  "annotationSpecSet": {
    "annotationSpecs": [
      {
        "description": "",
        "displayName": "",
        "index": 0
      }
    ],
    "blockingResources": [],
    "description": "",
    "displayName": "",
    "name": ""
  }
}'
echo '{
  "annotationSpecSet": {
    "annotationSpecs": [
      {
        "description": "",
        "displayName": "",
        "index": 0
      }
    ],
    "blockingResources": [],
    "description": "",
    "displayName": "",
    "name": ""
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/annotationSpecSets \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "annotationSpecSet": {\n    "annotationSpecs": [\n      {\n        "description": "",\n        "displayName": "",\n        "index": 0\n      }\n    ],\n    "blockingResources": [],\n    "description": "",\n    "displayName": "",\n    "name": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/annotationSpecSets
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["annotationSpecSet": [
    "annotationSpecs": [
      [
        "description": "",
        "displayName": "",
        "index": 0
      ]
    ],
    "blockingResources": [],
    "description": "",
    "displayName": "",
    "name": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/annotationSpecSets")! 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 datalabeling.projects.annotationSpecSets.list
{{baseUrl}}/v1beta1/:parent/annotationSpecSets
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/annotationSpecSets");

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

(client/get "{{baseUrl}}/v1beta1/:parent/annotationSpecSets")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/annotationSpecSets"

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}}/v1beta1/:parent/annotationSpecSets"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/annotationSpecSets");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/annotationSpecSets"

	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/v1beta1/:parent/annotationSpecSets HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/annotationSpecSets"))
    .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}}/v1beta1/:parent/annotationSpecSets")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/annotationSpecSets")
  .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}}/v1beta1/:parent/annotationSpecSets');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta1/:parent/annotationSpecSets'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/annotationSpecSets';
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}}/v1beta1/:parent/annotationSpecSets',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/annotationSpecSets")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/annotationSpecSets',
  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}}/v1beta1/:parent/annotationSpecSets'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/annotationSpecSets');

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}}/v1beta1/:parent/annotationSpecSets'
};

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

const url = '{{baseUrl}}/v1beta1/:parent/annotationSpecSets';
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}}/v1beta1/:parent/annotationSpecSets"]
                                                       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}}/v1beta1/:parent/annotationSpecSets" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/annotationSpecSets",
  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}}/v1beta1/:parent/annotationSpecSets');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/annotationSpecSets');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/annotationSpecSets")

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

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

url = "{{baseUrl}}/v1beta1/:parent/annotationSpecSets"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/annotationSpecSets"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/annotationSpecSets")

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/v1beta1/:parent/annotationSpecSets') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/annotationSpecSets
http GET {{baseUrl}}/v1beta1/:parent/annotationSpecSets
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/annotationSpecSets
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/annotationSpecSets")! 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 datalabeling.projects.datasets.annotatedDatasets.examples.list
{{baseUrl}}/v1beta1/:parent/examples
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/examples");

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

(client/get "{{baseUrl}}/v1beta1/:parent/examples")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/examples"

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}}/v1beta1/:parent/examples"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/examples");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/examples"

	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/v1beta1/:parent/examples HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/examples"))
    .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}}/v1beta1/:parent/examples")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/examples")
  .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}}/v1beta1/:parent/examples');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/examples'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/examples';
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}}/v1beta1/:parent/examples',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/examples")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/examples',
  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}}/v1beta1/:parent/examples'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/examples');

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}}/v1beta1/:parent/examples'};

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

const url = '{{baseUrl}}/v1beta1/:parent/examples';
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}}/v1beta1/:parent/examples"]
                                                       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}}/v1beta1/:parent/examples" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/examples",
  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}}/v1beta1/:parent/examples');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/examples');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/examples")

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

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

url = "{{baseUrl}}/v1beta1/:parent/examples"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/examples"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/examples")

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/v1beta1/:parent/examples') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/examples
http GET {{baseUrl}}/v1beta1/:parent/examples
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/examples
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/examples")! 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 datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.create
{{baseUrl}}/v1beta1/:parent/feedbackMessages
QUERY PARAMS

parent
BODY json

{
  "body": "",
  "createTime": "",
  "image": "",
  "name": "",
  "operatorFeedbackMetadata": {},
  "requesterFeedbackMetadata": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/feedbackMessages");

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  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/feedbackMessages" {:content-type :json
                                                                             :form-params {:body ""
                                                                                           :createTime ""
                                                                                           :image ""
                                                                                           :name ""
                                                                                           :operatorFeedbackMetadata {}
                                                                                           :requesterFeedbackMetadata {}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/feedbackMessages"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\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}}/v1beta1/:parent/feedbackMessages"),
    Content = new StringContent("{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\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}}/v1beta1/:parent/feedbackMessages");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/feedbackMessages"

	payload := strings.NewReader("{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\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/v1beta1/:parent/feedbackMessages HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 134

{
  "body": "",
  "createTime": "",
  "image": "",
  "name": "",
  "operatorFeedbackMetadata": {},
  "requesterFeedbackMetadata": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/feedbackMessages")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/feedbackMessages"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\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  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/feedbackMessages")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/feedbackMessages")
  .header("content-type", "application/json")
  .body("{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}")
  .asString();
const data = JSON.stringify({
  body: '',
  createTime: '',
  image: '',
  name: '',
  operatorFeedbackMetadata: {},
  requesterFeedbackMetadata: {}
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/feedbackMessages');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/feedbackMessages',
  headers: {'content-type': 'application/json'},
  data: {
    body: '',
    createTime: '',
    image: '',
    name: '',
    operatorFeedbackMetadata: {},
    requesterFeedbackMetadata: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/feedbackMessages';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"body":"","createTime":"","image":"","name":"","operatorFeedbackMetadata":{},"requesterFeedbackMetadata":{}}'
};

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}}/v1beta1/:parent/feedbackMessages',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "body": "",\n  "createTime": "",\n  "image": "",\n  "name": "",\n  "operatorFeedbackMetadata": {},\n  "requesterFeedbackMetadata": {}\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/feedbackMessages")
  .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/v1beta1/:parent/feedbackMessages',
  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({
  body: '',
  createTime: '',
  image: '',
  name: '',
  operatorFeedbackMetadata: {},
  requesterFeedbackMetadata: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/feedbackMessages',
  headers: {'content-type': 'application/json'},
  body: {
    body: '',
    createTime: '',
    image: '',
    name: '',
    operatorFeedbackMetadata: {},
    requesterFeedbackMetadata: {}
  },
  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}}/v1beta1/:parent/feedbackMessages');

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

req.type('json');
req.send({
  body: '',
  createTime: '',
  image: '',
  name: '',
  operatorFeedbackMetadata: {},
  requesterFeedbackMetadata: {}
});

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}}/v1beta1/:parent/feedbackMessages',
  headers: {'content-type': 'application/json'},
  data: {
    body: '',
    createTime: '',
    image: '',
    name: '',
    operatorFeedbackMetadata: {},
    requesterFeedbackMetadata: {}
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/feedbackMessages';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"body":"","createTime":"","image":"","name":"","operatorFeedbackMetadata":{},"requesterFeedbackMetadata":{}}'
};

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 = @{ @"body": @"",
                              @"createTime": @"",
                              @"image": @"",
                              @"name": @"",
                              @"operatorFeedbackMetadata": @{  },
                              @"requesterFeedbackMetadata": @{  } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/feedbackMessages"]
                                                       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}}/v1beta1/:parent/feedbackMessages" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/feedbackMessages",
  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([
    'body' => '',
    'createTime' => '',
    'image' => '',
    'name' => '',
    'operatorFeedbackMetadata' => [
        
    ],
    'requesterFeedbackMetadata' => [
        
    ]
  ]),
  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}}/v1beta1/:parent/feedbackMessages', [
  'body' => '{
  "body": "",
  "createTime": "",
  "image": "",
  "name": "",
  "operatorFeedbackMetadata": {},
  "requesterFeedbackMetadata": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/feedbackMessages');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'body' => '',
  'createTime' => '',
  'image' => '',
  'name' => '',
  'operatorFeedbackMetadata' => [
    
  ],
  'requesterFeedbackMetadata' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'body' => '',
  'createTime' => '',
  'image' => '',
  'name' => '',
  'operatorFeedbackMetadata' => [
    
  ],
  'requesterFeedbackMetadata' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/feedbackMessages');
$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}}/v1beta1/:parent/feedbackMessages' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "body": "",
  "createTime": "",
  "image": "",
  "name": "",
  "operatorFeedbackMetadata": {},
  "requesterFeedbackMetadata": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/feedbackMessages' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "body": "",
  "createTime": "",
  "image": "",
  "name": "",
  "operatorFeedbackMetadata": {},
  "requesterFeedbackMetadata": {}
}'
import http.client

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

payload = "{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/feedbackMessages", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/feedbackMessages"

payload = {
    "body": "",
    "createTime": "",
    "image": "",
    "name": "",
    "operatorFeedbackMetadata": {},
    "requesterFeedbackMetadata": {}
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/feedbackMessages"

payload <- "{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\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}}/v1beta1/:parent/feedbackMessages")

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  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\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/v1beta1/:parent/feedbackMessages') do |req|
  req.body = "{\n  \"body\": \"\",\n  \"createTime\": \"\",\n  \"image\": \"\",\n  \"name\": \"\",\n  \"operatorFeedbackMetadata\": {},\n  \"requesterFeedbackMetadata\": {}\n}"
end

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

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

    let payload = json!({
        "body": "",
        "createTime": "",
        "image": "",
        "name": "",
        "operatorFeedbackMetadata": json!({}),
        "requesterFeedbackMetadata": 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}}/v1beta1/:parent/feedbackMessages \
  --header 'content-type: application/json' \
  --data '{
  "body": "",
  "createTime": "",
  "image": "",
  "name": "",
  "operatorFeedbackMetadata": {},
  "requesterFeedbackMetadata": {}
}'
echo '{
  "body": "",
  "createTime": "",
  "image": "",
  "name": "",
  "operatorFeedbackMetadata": {},
  "requesterFeedbackMetadata": {}
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/feedbackMessages \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "body": "",\n  "createTime": "",\n  "image": "",\n  "name": "",\n  "operatorFeedbackMetadata": {},\n  "requesterFeedbackMetadata": {}\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/feedbackMessages
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "body": "",
  "createTime": "",
  "image": "",
  "name": "",
  "operatorFeedbackMetadata": [],
  "requesterFeedbackMetadata": []
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/feedbackMessages")! 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 datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.list
{{baseUrl}}/v1beta1/:parent/feedbackMessages
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/feedbackMessages");

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

(client/get "{{baseUrl}}/v1beta1/:parent/feedbackMessages")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/feedbackMessages"

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}}/v1beta1/:parent/feedbackMessages"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/feedbackMessages");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/feedbackMessages"

	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/v1beta1/:parent/feedbackMessages HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/feedbackMessages"))
    .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}}/v1beta1/:parent/feedbackMessages")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/feedbackMessages")
  .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}}/v1beta1/:parent/feedbackMessages');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta1/:parent/feedbackMessages'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/feedbackMessages';
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}}/v1beta1/:parent/feedbackMessages',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/feedbackMessages")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/feedbackMessages',
  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}}/v1beta1/:parent/feedbackMessages'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/feedbackMessages');

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}}/v1beta1/:parent/feedbackMessages'
};

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

const url = '{{baseUrl}}/v1beta1/:parent/feedbackMessages';
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}}/v1beta1/:parent/feedbackMessages"]
                                                       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}}/v1beta1/:parent/feedbackMessages" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/feedbackMessages",
  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}}/v1beta1/:parent/feedbackMessages');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/feedbackMessages');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/feedbackMessages")

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

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

url = "{{baseUrl}}/v1beta1/:parent/feedbackMessages"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/feedbackMessages"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/feedbackMessages")

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/v1beta1/:parent/feedbackMessages') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/feedbackMessages
http GET {{baseUrl}}/v1beta1/:parent/feedbackMessages
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/feedbackMessages
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/feedbackMessages")! 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 datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.list
{{baseUrl}}/v1beta1/:parent/feedbackThreads
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/feedbackThreads");

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

(client/get "{{baseUrl}}/v1beta1/:parent/feedbackThreads")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/feedbackThreads"

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}}/v1beta1/:parent/feedbackThreads"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/feedbackThreads");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/feedbackThreads"

	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/v1beta1/:parent/feedbackThreads HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/feedbackThreads"))
    .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}}/v1beta1/:parent/feedbackThreads")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/feedbackThreads")
  .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}}/v1beta1/:parent/feedbackThreads');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta1/:parent/feedbackThreads'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/feedbackThreads';
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}}/v1beta1/:parent/feedbackThreads',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/feedbackThreads")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/feedbackThreads',
  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}}/v1beta1/:parent/feedbackThreads'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/feedbackThreads');

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}}/v1beta1/:parent/feedbackThreads'
};

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

const url = '{{baseUrl}}/v1beta1/:parent/feedbackThreads';
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}}/v1beta1/:parent/feedbackThreads"]
                                                       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}}/v1beta1/:parent/feedbackThreads" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/feedbackThreads",
  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}}/v1beta1/:parent/feedbackThreads');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/feedbackThreads');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/feedbackThreads")

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

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

url = "{{baseUrl}}/v1beta1/:parent/feedbackThreads"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/feedbackThreads"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/feedbackThreads")

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/v1beta1/:parent/feedbackThreads') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/feedbackThreads
http GET {{baseUrl}}/v1beta1/:parent/feedbackThreads
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/feedbackThreads
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/feedbackThreads")! 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 datalabeling.projects.datasets.annotatedDatasets.list
{{baseUrl}}/v1beta1/:parent/annotatedDatasets
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/annotatedDatasets");

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

(client/get "{{baseUrl}}/v1beta1/:parent/annotatedDatasets")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/annotatedDatasets"

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}}/v1beta1/:parent/annotatedDatasets"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/annotatedDatasets");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/annotatedDatasets"

	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/v1beta1/:parent/annotatedDatasets HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/annotatedDatasets"))
    .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}}/v1beta1/:parent/annotatedDatasets")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/annotatedDatasets")
  .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}}/v1beta1/:parent/annotatedDatasets');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta1/:parent/annotatedDatasets'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/annotatedDatasets';
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}}/v1beta1/:parent/annotatedDatasets',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/annotatedDatasets")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/annotatedDatasets',
  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}}/v1beta1/:parent/annotatedDatasets'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/annotatedDatasets');

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}}/v1beta1/:parent/annotatedDatasets'
};

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

const url = '{{baseUrl}}/v1beta1/:parent/annotatedDatasets';
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}}/v1beta1/:parent/annotatedDatasets"]
                                                       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}}/v1beta1/:parent/annotatedDatasets" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/annotatedDatasets",
  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}}/v1beta1/:parent/annotatedDatasets');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/annotatedDatasets');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/annotatedDatasets")

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

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

url = "{{baseUrl}}/v1beta1/:parent/annotatedDatasets"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/annotatedDatasets"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/annotatedDatasets")

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/v1beta1/:parent/annotatedDatasets') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/annotatedDatasets
http GET {{baseUrl}}/v1beta1/:parent/annotatedDatasets
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/annotatedDatasets
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/annotatedDatasets")! 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 datalabeling.projects.datasets.create
{{baseUrl}}/v1beta1/:parent/datasets
QUERY PARAMS

parent
BODY json

{
  "dataset": {
    "blockingResources": [],
    "createTime": "",
    "dataItemCount": "",
    "description": "",
    "displayName": "",
    "inputConfigs": [
      {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      }
    ],
    "lastMigrateTime": "",
    "name": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/datasets");

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  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/datasets" {:content-type :json
                                                                     :form-params {:dataset {:blockingResources []
                                                                                             :createTime ""
                                                                                             :dataItemCount ""
                                                                                             :description ""
                                                                                             :displayName ""
                                                                                             :inputConfigs [{:annotationType ""
                                                                                                             :bigquerySource {:inputUri ""}
                                                                                                             :classificationMetadata {:isMultiLabel false}
                                                                                                             :dataType ""
                                                                                                             :gcsSource {:inputUri ""
                                                                                                                         :mimeType ""}
                                                                                                             :textMetadata {:languageCode ""}}]
                                                                                             :lastMigrateTime ""
                                                                                             :name ""}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/datasets"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\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}}/v1beta1/:parent/datasets"),
    Content = new StringContent("{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\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}}/v1beta1/:parent/datasets");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/datasets"

	payload := strings.NewReader("{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\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/v1beta1/:parent/datasets HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 578

{
  "dataset": {
    "blockingResources": [],
    "createTime": "",
    "dataItemCount": "",
    "description": "",
    "displayName": "",
    "inputConfigs": [
      {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      }
    ],
    "lastMigrateTime": "",
    "name": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/datasets")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/datasets"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\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  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/datasets")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/datasets")
  .header("content-type", "application/json")
  .body("{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  dataset: {
    blockingResources: [],
    createTime: '',
    dataItemCount: '',
    description: '',
    displayName: '',
    inputConfigs: [
      {
        annotationType: '',
        bigquerySource: {
          inputUri: ''
        },
        classificationMetadata: {
          isMultiLabel: false
        },
        dataType: '',
        gcsSource: {
          inputUri: '',
          mimeType: ''
        },
        textMetadata: {
          languageCode: ''
        }
      }
    ],
    lastMigrateTime: '',
    name: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/datasets');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/datasets',
  headers: {'content-type': 'application/json'},
  data: {
    dataset: {
      blockingResources: [],
      createTime: '',
      dataItemCount: '',
      description: '',
      displayName: '',
      inputConfigs: [
        {
          annotationType: '',
          bigquerySource: {inputUri: ''},
          classificationMetadata: {isMultiLabel: false},
          dataType: '',
          gcsSource: {inputUri: '', mimeType: ''},
          textMetadata: {languageCode: ''}
        }
      ],
      lastMigrateTime: '',
      name: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/datasets';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"dataset":{"blockingResources":[],"createTime":"","dataItemCount":"","description":"","displayName":"","inputConfigs":[{"annotationType":"","bigquerySource":{"inputUri":""},"classificationMetadata":{"isMultiLabel":false},"dataType":"","gcsSource":{"inputUri":"","mimeType":""},"textMetadata":{"languageCode":""}}],"lastMigrateTime":"","name":""}}'
};

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}}/v1beta1/:parent/datasets',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "dataset": {\n    "blockingResources": [],\n    "createTime": "",\n    "dataItemCount": "",\n    "description": "",\n    "displayName": "",\n    "inputConfigs": [\n      {\n        "annotationType": "",\n        "bigquerySource": {\n          "inputUri": ""\n        },\n        "classificationMetadata": {\n          "isMultiLabel": false\n        },\n        "dataType": "",\n        "gcsSource": {\n          "inputUri": "",\n          "mimeType": ""\n        },\n        "textMetadata": {\n          "languageCode": ""\n        }\n      }\n    ],\n    "lastMigrateTime": "",\n    "name": ""\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  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/datasets")
  .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/v1beta1/:parent/datasets',
  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({
  dataset: {
    blockingResources: [],
    createTime: '',
    dataItemCount: '',
    description: '',
    displayName: '',
    inputConfigs: [
      {
        annotationType: '',
        bigquerySource: {inputUri: ''},
        classificationMetadata: {isMultiLabel: false},
        dataType: '',
        gcsSource: {inputUri: '', mimeType: ''},
        textMetadata: {languageCode: ''}
      }
    ],
    lastMigrateTime: '',
    name: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/datasets',
  headers: {'content-type': 'application/json'},
  body: {
    dataset: {
      blockingResources: [],
      createTime: '',
      dataItemCount: '',
      description: '',
      displayName: '',
      inputConfigs: [
        {
          annotationType: '',
          bigquerySource: {inputUri: ''},
          classificationMetadata: {isMultiLabel: false},
          dataType: '',
          gcsSource: {inputUri: '', mimeType: ''},
          textMetadata: {languageCode: ''}
        }
      ],
      lastMigrateTime: '',
      name: ''
    }
  },
  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}}/v1beta1/:parent/datasets');

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

req.type('json');
req.send({
  dataset: {
    blockingResources: [],
    createTime: '',
    dataItemCount: '',
    description: '',
    displayName: '',
    inputConfigs: [
      {
        annotationType: '',
        bigquerySource: {
          inputUri: ''
        },
        classificationMetadata: {
          isMultiLabel: false
        },
        dataType: '',
        gcsSource: {
          inputUri: '',
          mimeType: ''
        },
        textMetadata: {
          languageCode: ''
        }
      }
    ],
    lastMigrateTime: '',
    name: ''
  }
});

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}}/v1beta1/:parent/datasets',
  headers: {'content-type': 'application/json'},
  data: {
    dataset: {
      blockingResources: [],
      createTime: '',
      dataItemCount: '',
      description: '',
      displayName: '',
      inputConfigs: [
        {
          annotationType: '',
          bigquerySource: {inputUri: ''},
          classificationMetadata: {isMultiLabel: false},
          dataType: '',
          gcsSource: {inputUri: '', mimeType: ''},
          textMetadata: {languageCode: ''}
        }
      ],
      lastMigrateTime: '',
      name: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/datasets';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"dataset":{"blockingResources":[],"createTime":"","dataItemCount":"","description":"","displayName":"","inputConfigs":[{"annotationType":"","bigquerySource":{"inputUri":""},"classificationMetadata":{"isMultiLabel":false},"dataType":"","gcsSource":{"inputUri":"","mimeType":""},"textMetadata":{"languageCode":""}}],"lastMigrateTime":"","name":""}}'
};

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 = @{ @"dataset": @{ @"blockingResources": @[  ], @"createTime": @"", @"dataItemCount": @"", @"description": @"", @"displayName": @"", @"inputConfigs": @[ @{ @"annotationType": @"", @"bigquerySource": @{ @"inputUri": @"" }, @"classificationMetadata": @{ @"isMultiLabel": @NO }, @"dataType": @"", @"gcsSource": @{ @"inputUri": @"", @"mimeType": @"" }, @"textMetadata": @{ @"languageCode": @"" } } ], @"lastMigrateTime": @"", @"name": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/datasets"]
                                                       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}}/v1beta1/:parent/datasets" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/datasets",
  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([
    'dataset' => [
        'blockingResources' => [
                
        ],
        'createTime' => '',
        'dataItemCount' => '',
        'description' => '',
        'displayName' => '',
        'inputConfigs' => [
                [
                                'annotationType' => '',
                                'bigquerySource' => [
                                                                'inputUri' => ''
                                ],
                                'classificationMetadata' => [
                                                                'isMultiLabel' => null
                                ],
                                'dataType' => '',
                                'gcsSource' => [
                                                                'inputUri' => '',
                                                                'mimeType' => ''
                                ],
                                'textMetadata' => [
                                                                'languageCode' => ''
                                ]
                ]
        ],
        'lastMigrateTime' => '',
        'name' => ''
    ]
  ]),
  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}}/v1beta1/:parent/datasets', [
  'body' => '{
  "dataset": {
    "blockingResources": [],
    "createTime": "",
    "dataItemCount": "",
    "description": "",
    "displayName": "",
    "inputConfigs": [
      {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      }
    ],
    "lastMigrateTime": "",
    "name": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/datasets');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'dataset' => [
    'blockingResources' => [
        
    ],
    'createTime' => '',
    'dataItemCount' => '',
    'description' => '',
    'displayName' => '',
    'inputConfigs' => [
        [
                'annotationType' => '',
                'bigquerySource' => [
                                'inputUri' => ''
                ],
                'classificationMetadata' => [
                                'isMultiLabel' => null
                ],
                'dataType' => '',
                'gcsSource' => [
                                'inputUri' => '',
                                'mimeType' => ''
                ],
                'textMetadata' => [
                                'languageCode' => ''
                ]
        ]
    ],
    'lastMigrateTime' => '',
    'name' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'dataset' => [
    'blockingResources' => [
        
    ],
    'createTime' => '',
    'dataItemCount' => '',
    'description' => '',
    'displayName' => '',
    'inputConfigs' => [
        [
                'annotationType' => '',
                'bigquerySource' => [
                                'inputUri' => ''
                ],
                'classificationMetadata' => [
                                'isMultiLabel' => null
                ],
                'dataType' => '',
                'gcsSource' => [
                                'inputUri' => '',
                                'mimeType' => ''
                ],
                'textMetadata' => [
                                'languageCode' => ''
                ]
        ]
    ],
    'lastMigrateTime' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/datasets');
$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}}/v1beta1/:parent/datasets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "dataset": {
    "blockingResources": [],
    "createTime": "",
    "dataItemCount": "",
    "description": "",
    "displayName": "",
    "inputConfigs": [
      {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      }
    ],
    "lastMigrateTime": "",
    "name": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/datasets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "dataset": {
    "blockingResources": [],
    "createTime": "",
    "dataItemCount": "",
    "description": "",
    "displayName": "",
    "inputConfigs": [
      {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      }
    ],
    "lastMigrateTime": "",
    "name": ""
  }
}'
import http.client

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

payload = "{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/datasets", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/datasets"

payload = { "dataset": {
        "blockingResources": [],
        "createTime": "",
        "dataItemCount": "",
        "description": "",
        "displayName": "",
        "inputConfigs": [
            {
                "annotationType": "",
                "bigquerySource": { "inputUri": "" },
                "classificationMetadata": { "isMultiLabel": False },
                "dataType": "",
                "gcsSource": {
                    "inputUri": "",
                    "mimeType": ""
                },
                "textMetadata": { "languageCode": "" }
            }
        ],
        "lastMigrateTime": "",
        "name": ""
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/datasets"

payload <- "{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\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}}/v1beta1/:parent/datasets")

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  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\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/v1beta1/:parent/datasets') do |req|
  req.body = "{\n  \"dataset\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"dataItemCount\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"inputConfigs\": [\n      {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      }\n    ],\n    \"lastMigrateTime\": \"\",\n    \"name\": \"\"\n  }\n}"
end

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

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

    let payload = json!({"dataset": json!({
            "blockingResources": (),
            "createTime": "",
            "dataItemCount": "",
            "description": "",
            "displayName": "",
            "inputConfigs": (
                json!({
                    "annotationType": "",
                    "bigquerySource": json!({"inputUri": ""}),
                    "classificationMetadata": json!({"isMultiLabel": false}),
                    "dataType": "",
                    "gcsSource": json!({
                        "inputUri": "",
                        "mimeType": ""
                    }),
                    "textMetadata": json!({"languageCode": ""})
                })
            ),
            "lastMigrateTime": "",
            "name": ""
        })});

    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}}/v1beta1/:parent/datasets \
  --header 'content-type: application/json' \
  --data '{
  "dataset": {
    "blockingResources": [],
    "createTime": "",
    "dataItemCount": "",
    "description": "",
    "displayName": "",
    "inputConfigs": [
      {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      }
    ],
    "lastMigrateTime": "",
    "name": ""
  }
}'
echo '{
  "dataset": {
    "blockingResources": [],
    "createTime": "",
    "dataItemCount": "",
    "description": "",
    "displayName": "",
    "inputConfigs": [
      {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      }
    ],
    "lastMigrateTime": "",
    "name": ""
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/datasets \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "dataset": {\n    "blockingResources": [],\n    "createTime": "",\n    "dataItemCount": "",\n    "description": "",\n    "displayName": "",\n    "inputConfigs": [\n      {\n        "annotationType": "",\n        "bigquerySource": {\n          "inputUri": ""\n        },\n        "classificationMetadata": {\n          "isMultiLabel": false\n        },\n        "dataType": "",\n        "gcsSource": {\n          "inputUri": "",\n          "mimeType": ""\n        },\n        "textMetadata": {\n          "languageCode": ""\n        }\n      }\n    ],\n    "lastMigrateTime": "",\n    "name": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/datasets
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["dataset": [
    "blockingResources": [],
    "createTime": "",
    "dataItemCount": "",
    "description": "",
    "displayName": "",
    "inputConfigs": [
      [
        "annotationType": "",
        "bigquerySource": ["inputUri": ""],
        "classificationMetadata": ["isMultiLabel": false],
        "dataType": "",
        "gcsSource": [
          "inputUri": "",
          "mimeType": ""
        ],
        "textMetadata": ["languageCode": ""]
      ]
    ],
    "lastMigrateTime": "",
    "name": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/datasets")! 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 datalabeling.projects.datasets.dataItems.list
{{baseUrl}}/v1beta1/:parent/dataItems
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/dataItems");

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

(client/get "{{baseUrl}}/v1beta1/:parent/dataItems")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/dataItems"

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}}/v1beta1/:parent/dataItems"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/dataItems");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/dataItems"

	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/v1beta1/:parent/dataItems HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/dataItems"))
    .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}}/v1beta1/:parent/dataItems")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/dataItems")
  .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}}/v1beta1/:parent/dataItems');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/dataItems'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/dataItems';
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}}/v1beta1/:parent/dataItems',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/dataItems")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/dataItems',
  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}}/v1beta1/:parent/dataItems'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/dataItems');

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}}/v1beta1/:parent/dataItems'};

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

const url = '{{baseUrl}}/v1beta1/:parent/dataItems';
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}}/v1beta1/:parent/dataItems"]
                                                       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}}/v1beta1/:parent/dataItems" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/dataItems",
  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}}/v1beta1/:parent/dataItems');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/dataItems');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/dataItems")

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

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

url = "{{baseUrl}}/v1beta1/:parent/dataItems"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/dataItems"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/dataItems")

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/v1beta1/:parent/dataItems') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/dataItems
http GET {{baseUrl}}/v1beta1/:parent/dataItems
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/dataItems
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/dataItems")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search");

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  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search" {:content-type :json
                                                                                      :form-params {:pageSize 0
                                                                                                    :pageToken ""}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\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}}/v1beta1/:parent/exampleComparisons:search"),
    Content = new StringContent("{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\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}}/v1beta1/:parent/exampleComparisons:search");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search"

	payload := strings.NewReader("{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\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/v1beta1/:parent/exampleComparisons:search HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 38

{
  "pageSize": 0,
  "pageToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/exampleComparisons:search"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\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  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/exampleComparisons:search")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/exampleComparisons:search")
  .header("content-type", "application/json")
  .body("{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  pageSize: 0,
  pageToken: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/exampleComparisons:search');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/exampleComparisons:search',
  headers: {'content-type': 'application/json'},
  data: {pageSize: 0, pageToken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/exampleComparisons:search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"pageSize":0,"pageToken":""}'
};

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}}/v1beta1/:parent/exampleComparisons:search',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "pageSize": 0,\n  "pageToken": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/exampleComparisons:search")
  .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/v1beta1/:parent/exampleComparisons:search',
  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({pageSize: 0, pageToken: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/exampleComparisons:search',
  headers: {'content-type': 'application/json'},
  body: {pageSize: 0, pageToken: ''},
  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}}/v1beta1/:parent/exampleComparisons:search');

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

req.type('json');
req.send({
  pageSize: 0,
  pageToken: ''
});

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}}/v1beta1/:parent/exampleComparisons:search',
  headers: {'content-type': 'application/json'},
  data: {pageSize: 0, pageToken: ''}
};

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

const url = '{{baseUrl}}/v1beta1/:parent/exampleComparisons:search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"pageSize":0,"pageToken":""}'
};

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 = @{ @"pageSize": @0,
                              @"pageToken": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/exampleComparisons:search"]
                                                       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}}/v1beta1/:parent/exampleComparisons:search" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search",
  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([
    'pageSize' => 0,
    'pageToken' => ''
  ]),
  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}}/v1beta1/:parent/exampleComparisons:search', [
  'body' => '{
  "pageSize": 0,
  "pageToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/exampleComparisons:search');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'pageSize' => 0,
  'pageToken' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'pageSize' => 0,
  'pageToken' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/exampleComparisons:search');
$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}}/v1beta1/:parent/exampleComparisons:search' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "pageSize": 0,
  "pageToken": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/exampleComparisons:search' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "pageSize": 0,
  "pageToken": ""
}'
import http.client

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

payload = "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/exampleComparisons:search", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search"

payload = {
    "pageSize": 0,
    "pageToken": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search"

payload <- "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\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}}/v1beta1/:parent/exampleComparisons:search")

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  \"pageSize\": 0,\n  \"pageToken\": \"\"\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/v1beta1/:parent/exampleComparisons:search') do |req|
  req.body = "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search";

    let payload = json!({
        "pageSize": 0,
        "pageToken": ""
    });

    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}}/v1beta1/:parent/exampleComparisons:search \
  --header 'content-type: application/json' \
  --data '{
  "pageSize": 0,
  "pageToken": ""
}'
echo '{
  "pageSize": 0,
  "pageToken": ""
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/exampleComparisons:search \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "pageSize": 0,\n  "pageToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/exampleComparisons:search
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/exampleComparisons:search")! 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 datalabeling.projects.datasets.exportData
{{baseUrl}}/v1beta1/:name:exportData
QUERY PARAMS

name
BODY json

{
  "annotatedDataset": "",
  "filter": "",
  "outputConfig": {
    "gcsDestination": {
      "mimeType": "",
      "outputUri": ""
    },
    "gcsFolderDestination": {
      "outputFolderUri": ""
    }
  },
  "userEmailAddress": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name:exportData");

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  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1beta1/:name:exportData" {:content-type :json
                                                                     :form-params {:annotatedDataset ""
                                                                                   :filter ""
                                                                                   :outputConfig {:gcsDestination {:mimeType ""
                                                                                                                   :outputUri ""}
                                                                                                  :gcsFolderDestination {:outputFolderUri ""}}
                                                                                   :userEmailAddress ""}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:name:exportData"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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}}/v1beta1/:name:exportData"),
    Content = new StringContent("{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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}}/v1beta1/:name:exportData");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name:exportData"

	payload := strings.NewReader("{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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/v1beta1/:name:exportData HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 234

{
  "annotatedDataset": "",
  "filter": "",
  "outputConfig": {
    "gcsDestination": {
      "mimeType": "",
      "outputUri": ""
    },
    "gcsFolderDestination": {
      "outputFolderUri": ""
    }
  },
  "userEmailAddress": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:name:exportData")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name:exportData"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name:exportData")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:name:exportData")
  .header("content-type", "application/json")
  .body("{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  annotatedDataset: '',
  filter: '',
  outputConfig: {
    gcsDestination: {
      mimeType: '',
      outputUri: ''
    },
    gcsFolderDestination: {
      outputFolderUri: ''
    }
  },
  userEmailAddress: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:name:exportData');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:name:exportData',
  headers: {'content-type': 'application/json'},
  data: {
    annotatedDataset: '',
    filter: '',
    outputConfig: {
      gcsDestination: {mimeType: '', outputUri: ''},
      gcsFolderDestination: {outputFolderUri: ''}
    },
    userEmailAddress: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name:exportData';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"annotatedDataset":"","filter":"","outputConfig":{"gcsDestination":{"mimeType":"","outputUri":""},"gcsFolderDestination":{"outputFolderUri":""}},"userEmailAddress":""}'
};

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}}/v1beta1/:name:exportData',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "annotatedDataset": "",\n  "filter": "",\n  "outputConfig": {\n    "gcsDestination": {\n      "mimeType": "",\n      "outputUri": ""\n    },\n    "gcsFolderDestination": {\n      "outputFolderUri": ""\n    }\n  },\n  "userEmailAddress": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name:exportData")
  .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/v1beta1/:name:exportData',
  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({
  annotatedDataset: '',
  filter: '',
  outputConfig: {
    gcsDestination: {mimeType: '', outputUri: ''},
    gcsFolderDestination: {outputFolderUri: ''}
  },
  userEmailAddress: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:name:exportData',
  headers: {'content-type': 'application/json'},
  body: {
    annotatedDataset: '',
    filter: '',
    outputConfig: {
      gcsDestination: {mimeType: '', outputUri: ''},
      gcsFolderDestination: {outputFolderUri: ''}
    },
    userEmailAddress: ''
  },
  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}}/v1beta1/:name:exportData');

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

req.type('json');
req.send({
  annotatedDataset: '',
  filter: '',
  outputConfig: {
    gcsDestination: {
      mimeType: '',
      outputUri: ''
    },
    gcsFolderDestination: {
      outputFolderUri: ''
    }
  },
  userEmailAddress: ''
});

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}}/v1beta1/:name:exportData',
  headers: {'content-type': 'application/json'},
  data: {
    annotatedDataset: '',
    filter: '',
    outputConfig: {
      gcsDestination: {mimeType: '', outputUri: ''},
      gcsFolderDestination: {outputFolderUri: ''}
    },
    userEmailAddress: ''
  }
};

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

const url = '{{baseUrl}}/v1beta1/:name:exportData';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"annotatedDataset":"","filter":"","outputConfig":{"gcsDestination":{"mimeType":"","outputUri":""},"gcsFolderDestination":{"outputFolderUri":""}},"userEmailAddress":""}'
};

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 = @{ @"annotatedDataset": @"",
                              @"filter": @"",
                              @"outputConfig": @{ @"gcsDestination": @{ @"mimeType": @"", @"outputUri": @"" }, @"gcsFolderDestination": @{ @"outputFolderUri": @"" } },
                              @"userEmailAddress": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:name:exportData"]
                                                       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}}/v1beta1/:name:exportData" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:name:exportData",
  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([
    'annotatedDataset' => '',
    'filter' => '',
    'outputConfig' => [
        'gcsDestination' => [
                'mimeType' => '',
                'outputUri' => ''
        ],
        'gcsFolderDestination' => [
                'outputFolderUri' => ''
        ]
    ],
    'userEmailAddress' => ''
  ]),
  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}}/v1beta1/:name:exportData', [
  'body' => '{
  "annotatedDataset": "",
  "filter": "",
  "outputConfig": {
    "gcsDestination": {
      "mimeType": "",
      "outputUri": ""
    },
    "gcsFolderDestination": {
      "outputFolderUri": ""
    }
  },
  "userEmailAddress": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name:exportData');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'annotatedDataset' => '',
  'filter' => '',
  'outputConfig' => [
    'gcsDestination' => [
        'mimeType' => '',
        'outputUri' => ''
    ],
    'gcsFolderDestination' => [
        'outputFolderUri' => ''
    ]
  ],
  'userEmailAddress' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'annotatedDataset' => '',
  'filter' => '',
  'outputConfig' => [
    'gcsDestination' => [
        'mimeType' => '',
        'outputUri' => ''
    ],
    'gcsFolderDestination' => [
        'outputFolderUri' => ''
    ]
  ],
  'userEmailAddress' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:name:exportData');
$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}}/v1beta1/:name:exportData' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "annotatedDataset": "",
  "filter": "",
  "outputConfig": {
    "gcsDestination": {
      "mimeType": "",
      "outputUri": ""
    },
    "gcsFolderDestination": {
      "outputFolderUri": ""
    }
  },
  "userEmailAddress": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name:exportData' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "annotatedDataset": "",
  "filter": "",
  "outputConfig": {
    "gcsDestination": {
      "mimeType": "",
      "outputUri": ""
    },
    "gcsFolderDestination": {
      "outputFolderUri": ""
    }
  },
  "userEmailAddress": ""
}'
import http.client

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

payload = "{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:name:exportData", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:name:exportData"

payload = {
    "annotatedDataset": "",
    "filter": "",
    "outputConfig": {
        "gcsDestination": {
            "mimeType": "",
            "outputUri": ""
        },
        "gcsFolderDestination": { "outputFolderUri": "" }
    },
    "userEmailAddress": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:name:exportData"

payload <- "{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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}}/v1beta1/:name:exportData")

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  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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/v1beta1/:name:exportData') do |req|
  req.body = "{\n  \"annotatedDataset\": \"\",\n  \"filter\": \"\",\n  \"outputConfig\": {\n    \"gcsDestination\": {\n      \"mimeType\": \"\",\n      \"outputUri\": \"\"\n    },\n    \"gcsFolderDestination\": {\n      \"outputFolderUri\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}"
end

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

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

    let payload = json!({
        "annotatedDataset": "",
        "filter": "",
        "outputConfig": json!({
            "gcsDestination": json!({
                "mimeType": "",
                "outputUri": ""
            }),
            "gcsFolderDestination": json!({"outputFolderUri": ""})
        }),
        "userEmailAddress": ""
    });

    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}}/v1beta1/:name:exportData \
  --header 'content-type: application/json' \
  --data '{
  "annotatedDataset": "",
  "filter": "",
  "outputConfig": {
    "gcsDestination": {
      "mimeType": "",
      "outputUri": ""
    },
    "gcsFolderDestination": {
      "outputFolderUri": ""
    }
  },
  "userEmailAddress": ""
}'
echo '{
  "annotatedDataset": "",
  "filter": "",
  "outputConfig": {
    "gcsDestination": {
      "mimeType": "",
      "outputUri": ""
    },
    "gcsFolderDestination": {
      "outputFolderUri": ""
    }
  },
  "userEmailAddress": ""
}' |  \
  http POST {{baseUrl}}/v1beta1/:name:exportData \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "annotatedDataset": "",\n  "filter": "",\n  "outputConfig": {\n    "gcsDestination": {\n      "mimeType": "",\n      "outputUri": ""\n    },\n    "gcsFolderDestination": {\n      "outputFolderUri": ""\n    }\n  },\n  "userEmailAddress": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:name:exportData
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "annotatedDataset": "",
  "filter": "",
  "outputConfig": [
    "gcsDestination": [
      "mimeType": "",
      "outputUri": ""
    ],
    "gcsFolderDestination": ["outputFolderUri": ""]
  ],
  "userEmailAddress": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name:exportData")! 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 datalabeling.projects.datasets.image.label
{{baseUrl}}/v1beta1/:parent/image:label
QUERY PARAMS

parent
BODY json

{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "boundingPolyConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "feature": "",
  "imageClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "answerAggregationType": ""
  },
  "polylineConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "segmentationConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/image:label");

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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/image:label" {:content-type :json
                                                                        :form-params {:basicConfig {:annotatedDatasetDescription ""
                                                                                                    :annotatedDatasetDisplayName ""
                                                                                                    :contributorEmails []
                                                                                                    :instruction ""
                                                                                                    :labelGroup ""
                                                                                                    :languageCode ""
                                                                                                    :questionDuration ""
                                                                                                    :replicaCount 0
                                                                                                    :userEmailAddress ""}
                                                                                      :boundingPolyConfig {:annotationSpecSet ""
                                                                                                           :instructionMessage ""}
                                                                                      :feature ""
                                                                                      :imageClassificationConfig {:allowMultiLabel false
                                                                                                                  :annotationSpecSet ""
                                                                                                                  :answerAggregationType ""}
                                                                                      :polylineConfig {:annotationSpecSet ""
                                                                                                       :instructionMessage ""}
                                                                                      :segmentationConfig {:annotationSpecSet ""
                                                                                                           :instructionMessage ""}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/image:label"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\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}}/v1beta1/:parent/image:label"),
    Content = new StringContent("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\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}}/v1beta1/:parent/image:label");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/image:label"

	payload := strings.NewReader("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\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/v1beta1/:parent/image:label HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 689

{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "boundingPolyConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "feature": "",
  "imageClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "answerAggregationType": ""
  },
  "polylineConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "segmentationConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/image:label")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/image:label"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/image:label")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/image:label")
  .header("content-type", "application/json")
  .body("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  boundingPolyConfig: {
    annotationSpecSet: '',
    instructionMessage: ''
  },
  feature: '',
  imageClassificationConfig: {
    allowMultiLabel: false,
    annotationSpecSet: '',
    answerAggregationType: ''
  },
  polylineConfig: {
    annotationSpecSet: '',
    instructionMessage: ''
  },
  segmentationConfig: {
    annotationSpecSet: '',
    instructionMessage: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/image:label');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/image:label',
  headers: {'content-type': 'application/json'},
  data: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
    feature: '',
    imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
    polylineConfig: {annotationSpecSet: '', instructionMessage: ''},
    segmentationConfig: {annotationSpecSet: '', instructionMessage: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/image:label';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"basicConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"boundingPolyConfig":{"annotationSpecSet":"","instructionMessage":""},"feature":"","imageClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","answerAggregationType":""},"polylineConfig":{"annotationSpecSet":"","instructionMessage":""},"segmentationConfig":{"annotationSpecSet":"","instructionMessage":""}}'
};

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}}/v1beta1/:parent/image:label',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "basicConfig": {\n    "annotatedDatasetDescription": "",\n    "annotatedDatasetDisplayName": "",\n    "contributorEmails": [],\n    "instruction": "",\n    "labelGroup": "",\n    "languageCode": "",\n    "questionDuration": "",\n    "replicaCount": 0,\n    "userEmailAddress": ""\n  },\n  "boundingPolyConfig": {\n    "annotationSpecSet": "",\n    "instructionMessage": ""\n  },\n  "feature": "",\n  "imageClassificationConfig": {\n    "allowMultiLabel": false,\n    "annotationSpecSet": "",\n    "answerAggregationType": ""\n  },\n  "polylineConfig": {\n    "annotationSpecSet": "",\n    "instructionMessage": ""\n  },\n  "segmentationConfig": {\n    "annotationSpecSet": "",\n    "instructionMessage": ""\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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/image:label")
  .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/v1beta1/:parent/image:label',
  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({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
  feature: '',
  imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
  polylineConfig: {annotationSpecSet: '', instructionMessage: ''},
  segmentationConfig: {annotationSpecSet: '', instructionMessage: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/image:label',
  headers: {'content-type': 'application/json'},
  body: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
    feature: '',
    imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
    polylineConfig: {annotationSpecSet: '', instructionMessage: ''},
    segmentationConfig: {annotationSpecSet: '', instructionMessage: ''}
  },
  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}}/v1beta1/:parent/image:label');

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

req.type('json');
req.send({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  boundingPolyConfig: {
    annotationSpecSet: '',
    instructionMessage: ''
  },
  feature: '',
  imageClassificationConfig: {
    allowMultiLabel: false,
    annotationSpecSet: '',
    answerAggregationType: ''
  },
  polylineConfig: {
    annotationSpecSet: '',
    instructionMessage: ''
  },
  segmentationConfig: {
    annotationSpecSet: '',
    instructionMessage: ''
  }
});

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}}/v1beta1/:parent/image:label',
  headers: {'content-type': 'application/json'},
  data: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
    feature: '',
    imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
    polylineConfig: {annotationSpecSet: '', instructionMessage: ''},
    segmentationConfig: {annotationSpecSet: '', instructionMessage: ''}
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/image:label';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"basicConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"boundingPolyConfig":{"annotationSpecSet":"","instructionMessage":""},"feature":"","imageClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","answerAggregationType":""},"polylineConfig":{"annotationSpecSet":"","instructionMessage":""},"segmentationConfig":{"annotationSpecSet":"","instructionMessage":""}}'
};

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 = @{ @"basicConfig": @{ @"annotatedDatasetDescription": @"", @"annotatedDatasetDisplayName": @"", @"contributorEmails": @[  ], @"instruction": @"", @"labelGroup": @"", @"languageCode": @"", @"questionDuration": @"", @"replicaCount": @0, @"userEmailAddress": @"" },
                              @"boundingPolyConfig": @{ @"annotationSpecSet": @"", @"instructionMessage": @"" },
                              @"feature": @"",
                              @"imageClassificationConfig": @{ @"allowMultiLabel": @NO, @"annotationSpecSet": @"", @"answerAggregationType": @"" },
                              @"polylineConfig": @{ @"annotationSpecSet": @"", @"instructionMessage": @"" },
                              @"segmentationConfig": @{ @"annotationSpecSet": @"", @"instructionMessage": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/image:label"]
                                                       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}}/v1beta1/:parent/image:label" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/image:label",
  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([
    'basicConfig' => [
        'annotatedDatasetDescription' => '',
        'annotatedDatasetDisplayName' => '',
        'contributorEmails' => [
                
        ],
        'instruction' => '',
        'labelGroup' => '',
        'languageCode' => '',
        'questionDuration' => '',
        'replicaCount' => 0,
        'userEmailAddress' => ''
    ],
    'boundingPolyConfig' => [
        'annotationSpecSet' => '',
        'instructionMessage' => ''
    ],
    'feature' => '',
    'imageClassificationConfig' => [
        'allowMultiLabel' => null,
        'annotationSpecSet' => '',
        'answerAggregationType' => ''
    ],
    'polylineConfig' => [
        'annotationSpecSet' => '',
        'instructionMessage' => ''
    ],
    'segmentationConfig' => [
        'annotationSpecSet' => '',
        'instructionMessage' => ''
    ]
  ]),
  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}}/v1beta1/:parent/image:label', [
  'body' => '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "boundingPolyConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "feature": "",
  "imageClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "answerAggregationType": ""
  },
  "polylineConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "segmentationConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/image:label');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'basicConfig' => [
    'annotatedDatasetDescription' => '',
    'annotatedDatasetDisplayName' => '',
    'contributorEmails' => [
        
    ],
    'instruction' => '',
    'labelGroup' => '',
    'languageCode' => '',
    'questionDuration' => '',
    'replicaCount' => 0,
    'userEmailAddress' => ''
  ],
  'boundingPolyConfig' => [
    'annotationSpecSet' => '',
    'instructionMessage' => ''
  ],
  'feature' => '',
  'imageClassificationConfig' => [
    'allowMultiLabel' => null,
    'annotationSpecSet' => '',
    'answerAggregationType' => ''
  ],
  'polylineConfig' => [
    'annotationSpecSet' => '',
    'instructionMessage' => ''
  ],
  'segmentationConfig' => [
    'annotationSpecSet' => '',
    'instructionMessage' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'basicConfig' => [
    'annotatedDatasetDescription' => '',
    'annotatedDatasetDisplayName' => '',
    'contributorEmails' => [
        
    ],
    'instruction' => '',
    'labelGroup' => '',
    'languageCode' => '',
    'questionDuration' => '',
    'replicaCount' => 0,
    'userEmailAddress' => ''
  ],
  'boundingPolyConfig' => [
    'annotationSpecSet' => '',
    'instructionMessage' => ''
  ],
  'feature' => '',
  'imageClassificationConfig' => [
    'allowMultiLabel' => null,
    'annotationSpecSet' => '',
    'answerAggregationType' => ''
  ],
  'polylineConfig' => [
    'annotationSpecSet' => '',
    'instructionMessage' => ''
  ],
  'segmentationConfig' => [
    'annotationSpecSet' => '',
    'instructionMessage' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/image:label');
$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}}/v1beta1/:parent/image:label' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "boundingPolyConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "feature": "",
  "imageClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "answerAggregationType": ""
  },
  "polylineConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "segmentationConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/image:label' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "boundingPolyConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "feature": "",
  "imageClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "answerAggregationType": ""
  },
  "polylineConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "segmentationConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  }
}'
import http.client

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

payload = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/image:label", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/image:label"

payload = {
    "basicConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
    },
    "boundingPolyConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
    },
    "feature": "",
    "imageClassificationConfig": {
        "allowMultiLabel": False,
        "annotationSpecSet": "",
        "answerAggregationType": ""
    },
    "polylineConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
    },
    "segmentationConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/image:label"

payload <- "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\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}}/v1beta1/:parent/image:label")

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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\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/v1beta1/:parent/image:label') do |req|
  req.body = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"boundingPolyConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"feature\": \"\",\n  \"imageClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"answerAggregationType\": \"\"\n  },\n  \"polylineConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  },\n  \"segmentationConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"instructionMessage\": \"\"\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1beta1/:parent/image:label";

    let payload = json!({
        "basicConfig": json!({
            "annotatedDatasetDescription": "",
            "annotatedDatasetDisplayName": "",
            "contributorEmails": (),
            "instruction": "",
            "labelGroup": "",
            "languageCode": "",
            "questionDuration": "",
            "replicaCount": 0,
            "userEmailAddress": ""
        }),
        "boundingPolyConfig": json!({
            "annotationSpecSet": "",
            "instructionMessage": ""
        }),
        "feature": "",
        "imageClassificationConfig": json!({
            "allowMultiLabel": false,
            "annotationSpecSet": "",
            "answerAggregationType": ""
        }),
        "polylineConfig": json!({
            "annotationSpecSet": "",
            "instructionMessage": ""
        }),
        "segmentationConfig": json!({
            "annotationSpecSet": "",
            "instructionMessage": ""
        })
    });

    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}}/v1beta1/:parent/image:label \
  --header 'content-type: application/json' \
  --data '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "boundingPolyConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "feature": "",
  "imageClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "answerAggregationType": ""
  },
  "polylineConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "segmentationConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  }
}'
echo '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "boundingPolyConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "feature": "",
  "imageClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "answerAggregationType": ""
  },
  "polylineConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  },
  "segmentationConfig": {
    "annotationSpecSet": "",
    "instructionMessage": ""
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/image:label \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "basicConfig": {\n    "annotatedDatasetDescription": "",\n    "annotatedDatasetDisplayName": "",\n    "contributorEmails": [],\n    "instruction": "",\n    "labelGroup": "",\n    "languageCode": "",\n    "questionDuration": "",\n    "replicaCount": 0,\n    "userEmailAddress": ""\n  },\n  "boundingPolyConfig": {\n    "annotationSpecSet": "",\n    "instructionMessage": ""\n  },\n  "feature": "",\n  "imageClassificationConfig": {\n    "allowMultiLabel": false,\n    "annotationSpecSet": "",\n    "answerAggregationType": ""\n  },\n  "polylineConfig": {\n    "annotationSpecSet": "",\n    "instructionMessage": ""\n  },\n  "segmentationConfig": {\n    "annotationSpecSet": "",\n    "instructionMessage": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/image:label
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "basicConfig": [
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  ],
  "boundingPolyConfig": [
    "annotationSpecSet": "",
    "instructionMessage": ""
  ],
  "feature": "",
  "imageClassificationConfig": [
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "answerAggregationType": ""
  ],
  "polylineConfig": [
    "annotationSpecSet": "",
    "instructionMessage": ""
  ],
  "segmentationConfig": [
    "annotationSpecSet": "",
    "instructionMessage": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/image:label")! 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 datalabeling.projects.datasets.importData
{{baseUrl}}/v1beta1/:name:importData
QUERY PARAMS

name
BODY json

{
  "inputConfig": {
    "annotationType": "",
    "bigquerySource": {
      "inputUri": ""
    },
    "classificationMetadata": {
      "isMultiLabel": false
    },
    "dataType": "",
    "gcsSource": {
      "inputUri": "",
      "mimeType": ""
    },
    "textMetadata": {
      "languageCode": ""
    }
  },
  "userEmailAddress": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name:importData");

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  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1beta1/:name:importData" {:content-type :json
                                                                     :form-params {:inputConfig {:annotationType ""
                                                                                                 :bigquerySource {:inputUri ""}
                                                                                                 :classificationMetadata {:isMultiLabel false}
                                                                                                 :dataType ""
                                                                                                 :gcsSource {:inputUri ""
                                                                                                             :mimeType ""}
                                                                                                 :textMetadata {:languageCode ""}}
                                                                                   :userEmailAddress ""}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:name:importData"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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}}/v1beta1/:name:importData"),
    Content = new StringContent("{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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}}/v1beta1/:name:importData");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name:importData"

	payload := strings.NewReader("{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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/v1beta1/:name:importData HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 339

{
  "inputConfig": {
    "annotationType": "",
    "bigquerySource": {
      "inputUri": ""
    },
    "classificationMetadata": {
      "isMultiLabel": false
    },
    "dataType": "",
    "gcsSource": {
      "inputUri": "",
      "mimeType": ""
    },
    "textMetadata": {
      "languageCode": ""
    }
  },
  "userEmailAddress": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:name:importData")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name:importData"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name:importData")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:name:importData")
  .header("content-type", "application/json")
  .body("{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  inputConfig: {
    annotationType: '',
    bigquerySource: {
      inputUri: ''
    },
    classificationMetadata: {
      isMultiLabel: false
    },
    dataType: '',
    gcsSource: {
      inputUri: '',
      mimeType: ''
    },
    textMetadata: {
      languageCode: ''
    }
  },
  userEmailAddress: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:name:importData');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:name:importData',
  headers: {'content-type': 'application/json'},
  data: {
    inputConfig: {
      annotationType: '',
      bigquerySource: {inputUri: ''},
      classificationMetadata: {isMultiLabel: false},
      dataType: '',
      gcsSource: {inputUri: '', mimeType: ''},
      textMetadata: {languageCode: ''}
    },
    userEmailAddress: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name:importData';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"inputConfig":{"annotationType":"","bigquerySource":{"inputUri":""},"classificationMetadata":{"isMultiLabel":false},"dataType":"","gcsSource":{"inputUri":"","mimeType":""},"textMetadata":{"languageCode":""}},"userEmailAddress":""}'
};

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}}/v1beta1/:name:importData',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "inputConfig": {\n    "annotationType": "",\n    "bigquerySource": {\n      "inputUri": ""\n    },\n    "classificationMetadata": {\n      "isMultiLabel": false\n    },\n    "dataType": "",\n    "gcsSource": {\n      "inputUri": "",\n      "mimeType": ""\n    },\n    "textMetadata": {\n      "languageCode": ""\n    }\n  },\n  "userEmailAddress": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name:importData")
  .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/v1beta1/:name:importData',
  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({
  inputConfig: {
    annotationType: '',
    bigquerySource: {inputUri: ''},
    classificationMetadata: {isMultiLabel: false},
    dataType: '',
    gcsSource: {inputUri: '', mimeType: ''},
    textMetadata: {languageCode: ''}
  },
  userEmailAddress: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:name:importData',
  headers: {'content-type': 'application/json'},
  body: {
    inputConfig: {
      annotationType: '',
      bigquerySource: {inputUri: ''},
      classificationMetadata: {isMultiLabel: false},
      dataType: '',
      gcsSource: {inputUri: '', mimeType: ''},
      textMetadata: {languageCode: ''}
    },
    userEmailAddress: ''
  },
  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}}/v1beta1/:name:importData');

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

req.type('json');
req.send({
  inputConfig: {
    annotationType: '',
    bigquerySource: {
      inputUri: ''
    },
    classificationMetadata: {
      isMultiLabel: false
    },
    dataType: '',
    gcsSource: {
      inputUri: '',
      mimeType: ''
    },
    textMetadata: {
      languageCode: ''
    }
  },
  userEmailAddress: ''
});

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}}/v1beta1/:name:importData',
  headers: {'content-type': 'application/json'},
  data: {
    inputConfig: {
      annotationType: '',
      bigquerySource: {inputUri: ''},
      classificationMetadata: {isMultiLabel: false},
      dataType: '',
      gcsSource: {inputUri: '', mimeType: ''},
      textMetadata: {languageCode: ''}
    },
    userEmailAddress: ''
  }
};

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

const url = '{{baseUrl}}/v1beta1/:name:importData';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"inputConfig":{"annotationType":"","bigquerySource":{"inputUri":""},"classificationMetadata":{"isMultiLabel":false},"dataType":"","gcsSource":{"inputUri":"","mimeType":""},"textMetadata":{"languageCode":""}},"userEmailAddress":""}'
};

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 = @{ @"inputConfig": @{ @"annotationType": @"", @"bigquerySource": @{ @"inputUri": @"" }, @"classificationMetadata": @{ @"isMultiLabel": @NO }, @"dataType": @"", @"gcsSource": @{ @"inputUri": @"", @"mimeType": @"" }, @"textMetadata": @{ @"languageCode": @"" } },
                              @"userEmailAddress": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:name:importData"]
                                                       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}}/v1beta1/:name:importData" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:name:importData",
  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([
    'inputConfig' => [
        'annotationType' => '',
        'bigquerySource' => [
                'inputUri' => ''
        ],
        'classificationMetadata' => [
                'isMultiLabel' => null
        ],
        'dataType' => '',
        'gcsSource' => [
                'inputUri' => '',
                'mimeType' => ''
        ],
        'textMetadata' => [
                'languageCode' => ''
        ]
    ],
    'userEmailAddress' => ''
  ]),
  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}}/v1beta1/:name:importData', [
  'body' => '{
  "inputConfig": {
    "annotationType": "",
    "bigquerySource": {
      "inputUri": ""
    },
    "classificationMetadata": {
      "isMultiLabel": false
    },
    "dataType": "",
    "gcsSource": {
      "inputUri": "",
      "mimeType": ""
    },
    "textMetadata": {
      "languageCode": ""
    }
  },
  "userEmailAddress": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name:importData');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'inputConfig' => [
    'annotationType' => '',
    'bigquerySource' => [
        'inputUri' => ''
    ],
    'classificationMetadata' => [
        'isMultiLabel' => null
    ],
    'dataType' => '',
    'gcsSource' => [
        'inputUri' => '',
        'mimeType' => ''
    ],
    'textMetadata' => [
        'languageCode' => ''
    ]
  ],
  'userEmailAddress' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'inputConfig' => [
    'annotationType' => '',
    'bigquerySource' => [
        'inputUri' => ''
    ],
    'classificationMetadata' => [
        'isMultiLabel' => null
    ],
    'dataType' => '',
    'gcsSource' => [
        'inputUri' => '',
        'mimeType' => ''
    ],
    'textMetadata' => [
        'languageCode' => ''
    ]
  ],
  'userEmailAddress' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:name:importData');
$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}}/v1beta1/:name:importData' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "inputConfig": {
    "annotationType": "",
    "bigquerySource": {
      "inputUri": ""
    },
    "classificationMetadata": {
      "isMultiLabel": false
    },
    "dataType": "",
    "gcsSource": {
      "inputUri": "",
      "mimeType": ""
    },
    "textMetadata": {
      "languageCode": ""
    }
  },
  "userEmailAddress": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name:importData' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "inputConfig": {
    "annotationType": "",
    "bigquerySource": {
      "inputUri": ""
    },
    "classificationMetadata": {
      "isMultiLabel": false
    },
    "dataType": "",
    "gcsSource": {
      "inputUri": "",
      "mimeType": ""
    },
    "textMetadata": {
      "languageCode": ""
    }
  },
  "userEmailAddress": ""
}'
import http.client

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

payload = "{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:name:importData", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:name:importData"

payload = {
    "inputConfig": {
        "annotationType": "",
        "bigquerySource": { "inputUri": "" },
        "classificationMetadata": { "isMultiLabel": False },
        "dataType": "",
        "gcsSource": {
            "inputUri": "",
            "mimeType": ""
        },
        "textMetadata": { "languageCode": "" }
    },
    "userEmailAddress": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:name:importData"

payload <- "{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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}}/v1beta1/:name:importData")

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  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\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/v1beta1/:name:importData') do |req|
  req.body = "{\n  \"inputConfig\": {\n    \"annotationType\": \"\",\n    \"bigquerySource\": {\n      \"inputUri\": \"\"\n    },\n    \"classificationMetadata\": {\n      \"isMultiLabel\": false\n    },\n    \"dataType\": \"\",\n    \"gcsSource\": {\n      \"inputUri\": \"\",\n      \"mimeType\": \"\"\n    },\n    \"textMetadata\": {\n      \"languageCode\": \"\"\n    }\n  },\n  \"userEmailAddress\": \"\"\n}"
end

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

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

    let payload = json!({
        "inputConfig": json!({
            "annotationType": "",
            "bigquerySource": json!({"inputUri": ""}),
            "classificationMetadata": json!({"isMultiLabel": false}),
            "dataType": "",
            "gcsSource": json!({
                "inputUri": "",
                "mimeType": ""
            }),
            "textMetadata": json!({"languageCode": ""})
        }),
        "userEmailAddress": ""
    });

    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}}/v1beta1/:name:importData \
  --header 'content-type: application/json' \
  --data '{
  "inputConfig": {
    "annotationType": "",
    "bigquerySource": {
      "inputUri": ""
    },
    "classificationMetadata": {
      "isMultiLabel": false
    },
    "dataType": "",
    "gcsSource": {
      "inputUri": "",
      "mimeType": ""
    },
    "textMetadata": {
      "languageCode": ""
    }
  },
  "userEmailAddress": ""
}'
echo '{
  "inputConfig": {
    "annotationType": "",
    "bigquerySource": {
      "inputUri": ""
    },
    "classificationMetadata": {
      "isMultiLabel": false
    },
    "dataType": "",
    "gcsSource": {
      "inputUri": "",
      "mimeType": ""
    },
    "textMetadata": {
      "languageCode": ""
    }
  },
  "userEmailAddress": ""
}' |  \
  http POST {{baseUrl}}/v1beta1/:name:importData \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "inputConfig": {\n    "annotationType": "",\n    "bigquerySource": {\n      "inputUri": ""\n    },\n    "classificationMetadata": {\n      "isMultiLabel": false\n    },\n    "dataType": "",\n    "gcsSource": {\n      "inputUri": "",\n      "mimeType": ""\n    },\n    "textMetadata": {\n      "languageCode": ""\n    }\n  },\n  "userEmailAddress": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:name:importData
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "inputConfig": [
    "annotationType": "",
    "bigquerySource": ["inputUri": ""],
    "classificationMetadata": ["isMultiLabel": false],
    "dataType": "",
    "gcsSource": [
      "inputUri": "",
      "mimeType": ""
    ],
    "textMetadata": ["languageCode": ""]
  ],
  "userEmailAddress": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name:importData")! 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 datalabeling.projects.datasets.list
{{baseUrl}}/v1beta1/:parent/datasets
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/datasets");

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

(client/get "{{baseUrl}}/v1beta1/:parent/datasets")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/datasets"

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}}/v1beta1/:parent/datasets"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/datasets");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/datasets"

	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/v1beta1/:parent/datasets HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/datasets"))
    .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}}/v1beta1/:parent/datasets")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/datasets")
  .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}}/v1beta1/:parent/datasets');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/datasets'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/datasets';
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}}/v1beta1/:parent/datasets',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/datasets")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/datasets',
  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}}/v1beta1/:parent/datasets'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/datasets');

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}}/v1beta1/:parent/datasets'};

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

const url = '{{baseUrl}}/v1beta1/:parent/datasets';
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}}/v1beta1/:parent/datasets"]
                                                       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}}/v1beta1/:parent/datasets" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/datasets",
  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}}/v1beta1/:parent/datasets');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/datasets');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/datasets")

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

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

url = "{{baseUrl}}/v1beta1/:parent/datasets"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/datasets"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/datasets")

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/v1beta1/:parent/datasets') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/datasets
http GET {{baseUrl}}/v1beta1/:parent/datasets
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/datasets
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/datasets")! 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 datalabeling.projects.datasets.text.label
{{baseUrl}}/v1beta1/:parent/text:label
QUERY PARAMS

parent
BODY json

{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "feature": "",
  "textClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "sentimentConfig": {
      "enableLabelSentimentSelection": false
    }
  },
  "textEntityExtractionConfig": {
    "annotationSpecSet": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/text:label");

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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/text:label" {:content-type :json
                                                                       :form-params {:basicConfig {:annotatedDatasetDescription ""
                                                                                                   :annotatedDatasetDisplayName ""
                                                                                                   :contributorEmails []
                                                                                                   :instruction ""
                                                                                                   :labelGroup ""
                                                                                                   :languageCode ""
                                                                                                   :questionDuration ""
                                                                                                   :replicaCount 0
                                                                                                   :userEmailAddress ""}
                                                                                     :feature ""
                                                                                     :textClassificationConfig {:allowMultiLabel false
                                                                                                                :annotationSpecSet ""
                                                                                                                :sentimentConfig {:enableLabelSentimentSelection false}}
                                                                                     :textEntityExtractionConfig {:annotationSpecSet ""}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/text:label"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\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}}/v1beta1/:parent/text:label"),
    Content = new StringContent("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\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}}/v1beta1/:parent/text:label");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/text:label"

	payload := strings.NewReader("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\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/v1beta1/:parent/text:label HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 536

{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "feature": "",
  "textClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "sentimentConfig": {
      "enableLabelSentimentSelection": false
    }
  },
  "textEntityExtractionConfig": {
    "annotationSpecSet": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/text:label")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/text:label"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/text:label")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/text:label")
  .header("content-type", "application/json")
  .body("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  feature: '',
  textClassificationConfig: {
    allowMultiLabel: false,
    annotationSpecSet: '',
    sentimentConfig: {
      enableLabelSentimentSelection: false
    }
  },
  textEntityExtractionConfig: {
    annotationSpecSet: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/text:label');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/text:label',
  headers: {'content-type': 'application/json'},
  data: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    feature: '',
    textClassificationConfig: {
      allowMultiLabel: false,
      annotationSpecSet: '',
      sentimentConfig: {enableLabelSentimentSelection: false}
    },
    textEntityExtractionConfig: {annotationSpecSet: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/text:label';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"basicConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"feature":"","textClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","sentimentConfig":{"enableLabelSentimentSelection":false}},"textEntityExtractionConfig":{"annotationSpecSet":""}}'
};

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}}/v1beta1/:parent/text:label',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "basicConfig": {\n    "annotatedDatasetDescription": "",\n    "annotatedDatasetDisplayName": "",\n    "contributorEmails": [],\n    "instruction": "",\n    "labelGroup": "",\n    "languageCode": "",\n    "questionDuration": "",\n    "replicaCount": 0,\n    "userEmailAddress": ""\n  },\n  "feature": "",\n  "textClassificationConfig": {\n    "allowMultiLabel": false,\n    "annotationSpecSet": "",\n    "sentimentConfig": {\n      "enableLabelSentimentSelection": false\n    }\n  },\n  "textEntityExtractionConfig": {\n    "annotationSpecSet": ""\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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/text:label")
  .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/v1beta1/:parent/text:label',
  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({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  feature: '',
  textClassificationConfig: {
    allowMultiLabel: false,
    annotationSpecSet: '',
    sentimentConfig: {enableLabelSentimentSelection: false}
  },
  textEntityExtractionConfig: {annotationSpecSet: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/text:label',
  headers: {'content-type': 'application/json'},
  body: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    feature: '',
    textClassificationConfig: {
      allowMultiLabel: false,
      annotationSpecSet: '',
      sentimentConfig: {enableLabelSentimentSelection: false}
    },
    textEntityExtractionConfig: {annotationSpecSet: ''}
  },
  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}}/v1beta1/:parent/text:label');

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

req.type('json');
req.send({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  feature: '',
  textClassificationConfig: {
    allowMultiLabel: false,
    annotationSpecSet: '',
    sentimentConfig: {
      enableLabelSentimentSelection: false
    }
  },
  textEntityExtractionConfig: {
    annotationSpecSet: ''
  }
});

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}}/v1beta1/:parent/text:label',
  headers: {'content-type': 'application/json'},
  data: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    feature: '',
    textClassificationConfig: {
      allowMultiLabel: false,
      annotationSpecSet: '',
      sentimentConfig: {enableLabelSentimentSelection: false}
    },
    textEntityExtractionConfig: {annotationSpecSet: ''}
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/text:label';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"basicConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"feature":"","textClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","sentimentConfig":{"enableLabelSentimentSelection":false}},"textEntityExtractionConfig":{"annotationSpecSet":""}}'
};

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 = @{ @"basicConfig": @{ @"annotatedDatasetDescription": @"", @"annotatedDatasetDisplayName": @"", @"contributorEmails": @[  ], @"instruction": @"", @"labelGroup": @"", @"languageCode": @"", @"questionDuration": @"", @"replicaCount": @0, @"userEmailAddress": @"" },
                              @"feature": @"",
                              @"textClassificationConfig": @{ @"allowMultiLabel": @NO, @"annotationSpecSet": @"", @"sentimentConfig": @{ @"enableLabelSentimentSelection": @NO } },
                              @"textEntityExtractionConfig": @{ @"annotationSpecSet": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/text:label"]
                                                       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}}/v1beta1/:parent/text:label" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/text:label",
  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([
    'basicConfig' => [
        'annotatedDatasetDescription' => '',
        'annotatedDatasetDisplayName' => '',
        'contributorEmails' => [
                
        ],
        'instruction' => '',
        'labelGroup' => '',
        'languageCode' => '',
        'questionDuration' => '',
        'replicaCount' => 0,
        'userEmailAddress' => ''
    ],
    'feature' => '',
    'textClassificationConfig' => [
        'allowMultiLabel' => null,
        'annotationSpecSet' => '',
        'sentimentConfig' => [
                'enableLabelSentimentSelection' => null
        ]
    ],
    'textEntityExtractionConfig' => [
        'annotationSpecSet' => ''
    ]
  ]),
  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}}/v1beta1/:parent/text:label', [
  'body' => '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "feature": "",
  "textClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "sentimentConfig": {
      "enableLabelSentimentSelection": false
    }
  },
  "textEntityExtractionConfig": {
    "annotationSpecSet": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/text:label');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'basicConfig' => [
    'annotatedDatasetDescription' => '',
    'annotatedDatasetDisplayName' => '',
    'contributorEmails' => [
        
    ],
    'instruction' => '',
    'labelGroup' => '',
    'languageCode' => '',
    'questionDuration' => '',
    'replicaCount' => 0,
    'userEmailAddress' => ''
  ],
  'feature' => '',
  'textClassificationConfig' => [
    'allowMultiLabel' => null,
    'annotationSpecSet' => '',
    'sentimentConfig' => [
        'enableLabelSentimentSelection' => null
    ]
  ],
  'textEntityExtractionConfig' => [
    'annotationSpecSet' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'basicConfig' => [
    'annotatedDatasetDescription' => '',
    'annotatedDatasetDisplayName' => '',
    'contributorEmails' => [
        
    ],
    'instruction' => '',
    'labelGroup' => '',
    'languageCode' => '',
    'questionDuration' => '',
    'replicaCount' => 0,
    'userEmailAddress' => ''
  ],
  'feature' => '',
  'textClassificationConfig' => [
    'allowMultiLabel' => null,
    'annotationSpecSet' => '',
    'sentimentConfig' => [
        'enableLabelSentimentSelection' => null
    ]
  ],
  'textEntityExtractionConfig' => [
    'annotationSpecSet' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/text:label');
$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}}/v1beta1/:parent/text:label' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "feature": "",
  "textClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "sentimentConfig": {
      "enableLabelSentimentSelection": false
    }
  },
  "textEntityExtractionConfig": {
    "annotationSpecSet": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/text:label' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "feature": "",
  "textClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "sentimentConfig": {
      "enableLabelSentimentSelection": false
    }
  },
  "textEntityExtractionConfig": {
    "annotationSpecSet": ""
  }
}'
import http.client

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

payload = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/text:label", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/text:label"

payload = {
    "basicConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
    },
    "feature": "",
    "textClassificationConfig": {
        "allowMultiLabel": False,
        "annotationSpecSet": "",
        "sentimentConfig": { "enableLabelSentimentSelection": False }
    },
    "textEntityExtractionConfig": { "annotationSpecSet": "" }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/text:label"

payload <- "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\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}}/v1beta1/:parent/text:label")

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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\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/v1beta1/:parent/text:label') do |req|
  req.body = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"feature\": \"\",\n  \"textClassificationConfig\": {\n    \"allowMultiLabel\": false,\n    \"annotationSpecSet\": \"\",\n    \"sentimentConfig\": {\n      \"enableLabelSentimentSelection\": false\n    }\n  },\n  \"textEntityExtractionConfig\": {\n    \"annotationSpecSet\": \"\"\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1beta1/:parent/text:label";

    let payload = json!({
        "basicConfig": json!({
            "annotatedDatasetDescription": "",
            "annotatedDatasetDisplayName": "",
            "contributorEmails": (),
            "instruction": "",
            "labelGroup": "",
            "languageCode": "",
            "questionDuration": "",
            "replicaCount": 0,
            "userEmailAddress": ""
        }),
        "feature": "",
        "textClassificationConfig": json!({
            "allowMultiLabel": false,
            "annotationSpecSet": "",
            "sentimentConfig": json!({"enableLabelSentimentSelection": false})
        }),
        "textEntityExtractionConfig": json!({"annotationSpecSet": ""})
    });

    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}}/v1beta1/:parent/text:label \
  --header 'content-type: application/json' \
  --data '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "feature": "",
  "textClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "sentimentConfig": {
      "enableLabelSentimentSelection": false
    }
  },
  "textEntityExtractionConfig": {
    "annotationSpecSet": ""
  }
}'
echo '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "feature": "",
  "textClassificationConfig": {
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "sentimentConfig": {
      "enableLabelSentimentSelection": false
    }
  },
  "textEntityExtractionConfig": {
    "annotationSpecSet": ""
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/text:label \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "basicConfig": {\n    "annotatedDatasetDescription": "",\n    "annotatedDatasetDisplayName": "",\n    "contributorEmails": [],\n    "instruction": "",\n    "labelGroup": "",\n    "languageCode": "",\n    "questionDuration": "",\n    "replicaCount": 0,\n    "userEmailAddress": ""\n  },\n  "feature": "",\n  "textClassificationConfig": {\n    "allowMultiLabel": false,\n    "annotationSpecSet": "",\n    "sentimentConfig": {\n      "enableLabelSentimentSelection": false\n    }\n  },\n  "textEntityExtractionConfig": {\n    "annotationSpecSet": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/text:label
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "basicConfig": [
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  ],
  "feature": "",
  "textClassificationConfig": [
    "allowMultiLabel": false,
    "annotationSpecSet": "",
    "sentimentConfig": ["enableLabelSentimentSelection": false]
  ],
  "textEntityExtractionConfig": ["annotationSpecSet": ""]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/text:label")! 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 datalabeling.projects.datasets.video.label
{{baseUrl}}/v1beta1/:parent/video:label
QUERY PARAMS

parent
BODY json

{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "eventConfig": {
    "annotationSpecSets": [],
    "clipLength": 0,
    "overlapLength": 0
  },
  "feature": "",
  "objectDetectionConfig": {
    "annotationSpecSet": "",
    "extractionFrameRate": ""
  },
  "objectTrackingConfig": {
    "annotationSpecSet": "",
    "clipLength": 0,
    "overlapLength": 0
  },
  "videoClassificationConfig": {
    "annotationSpecSetConfigs": [
      {
        "allowMultiLabel": false,
        "annotationSpecSet": ""
      }
    ],
    "applyShotDetection": false
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/video:label");

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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/video:label" {:content-type :json
                                                                        :form-params {:basicConfig {:annotatedDatasetDescription ""
                                                                                                    :annotatedDatasetDisplayName ""
                                                                                                    :contributorEmails []
                                                                                                    :instruction ""
                                                                                                    :labelGroup ""
                                                                                                    :languageCode ""
                                                                                                    :questionDuration ""
                                                                                                    :replicaCount 0
                                                                                                    :userEmailAddress ""}
                                                                                      :eventConfig {:annotationSpecSets []
                                                                                                    :clipLength 0
                                                                                                    :overlapLength 0}
                                                                                      :feature ""
                                                                                      :objectDetectionConfig {:annotationSpecSet ""
                                                                                                              :extractionFrameRate ""}
                                                                                      :objectTrackingConfig {:annotationSpecSet ""
                                                                                                             :clipLength 0
                                                                                                             :overlapLength 0}
                                                                                      :videoClassificationConfig {:annotationSpecSetConfigs [{:allowMultiLabel false
                                                                                                                                              :annotationSpecSet ""}]
                                                                                                                  :applyShotDetection false}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/video:label"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\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}}/v1beta1/:parent/video:label"),
    Content = new StringContent("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\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}}/v1beta1/:parent/video:label");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/video:label"

	payload := strings.NewReader("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\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/v1beta1/:parent/video:label HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 787

{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "eventConfig": {
    "annotationSpecSets": [],
    "clipLength": 0,
    "overlapLength": 0
  },
  "feature": "",
  "objectDetectionConfig": {
    "annotationSpecSet": "",
    "extractionFrameRate": ""
  },
  "objectTrackingConfig": {
    "annotationSpecSet": "",
    "clipLength": 0,
    "overlapLength": 0
  },
  "videoClassificationConfig": {
    "annotationSpecSetConfigs": [
      {
        "allowMultiLabel": false,
        "annotationSpecSet": ""
      }
    ],
    "applyShotDetection": false
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/video:label")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/video:label"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/video:label")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/video:label")
  .header("content-type", "application/json")
  .body("{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}")
  .asString();
const data = JSON.stringify({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  eventConfig: {
    annotationSpecSets: [],
    clipLength: 0,
    overlapLength: 0
  },
  feature: '',
  objectDetectionConfig: {
    annotationSpecSet: '',
    extractionFrameRate: ''
  },
  objectTrackingConfig: {
    annotationSpecSet: '',
    clipLength: 0,
    overlapLength: 0
  },
  videoClassificationConfig: {
    annotationSpecSetConfigs: [
      {
        allowMultiLabel: false,
        annotationSpecSet: ''
      }
    ],
    applyShotDetection: 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}}/v1beta1/:parent/video:label');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/video:label',
  headers: {'content-type': 'application/json'},
  data: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    eventConfig: {annotationSpecSets: [], clipLength: 0, overlapLength: 0},
    feature: '',
    objectDetectionConfig: {annotationSpecSet: '', extractionFrameRate: ''},
    objectTrackingConfig: {annotationSpecSet: '', clipLength: 0, overlapLength: 0},
    videoClassificationConfig: {
      annotationSpecSetConfigs: [{allowMultiLabel: false, annotationSpecSet: ''}],
      applyShotDetection: false
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/video:label';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"basicConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"eventConfig":{"annotationSpecSets":[],"clipLength":0,"overlapLength":0},"feature":"","objectDetectionConfig":{"annotationSpecSet":"","extractionFrameRate":""},"objectTrackingConfig":{"annotationSpecSet":"","clipLength":0,"overlapLength":0},"videoClassificationConfig":{"annotationSpecSetConfigs":[{"allowMultiLabel":false,"annotationSpecSet":""}],"applyShotDetection":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}}/v1beta1/:parent/video:label',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "basicConfig": {\n    "annotatedDatasetDescription": "",\n    "annotatedDatasetDisplayName": "",\n    "contributorEmails": [],\n    "instruction": "",\n    "labelGroup": "",\n    "languageCode": "",\n    "questionDuration": "",\n    "replicaCount": 0,\n    "userEmailAddress": ""\n  },\n  "eventConfig": {\n    "annotationSpecSets": [],\n    "clipLength": 0,\n    "overlapLength": 0\n  },\n  "feature": "",\n  "objectDetectionConfig": {\n    "annotationSpecSet": "",\n    "extractionFrameRate": ""\n  },\n  "objectTrackingConfig": {\n    "annotationSpecSet": "",\n    "clipLength": 0,\n    "overlapLength": 0\n  },\n  "videoClassificationConfig": {\n    "annotationSpecSetConfigs": [\n      {\n        "allowMultiLabel": false,\n        "annotationSpecSet": ""\n      }\n    ],\n    "applyShotDetection": false\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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/video:label")
  .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/v1beta1/:parent/video:label',
  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({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  eventConfig: {annotationSpecSets: [], clipLength: 0, overlapLength: 0},
  feature: '',
  objectDetectionConfig: {annotationSpecSet: '', extractionFrameRate: ''},
  objectTrackingConfig: {annotationSpecSet: '', clipLength: 0, overlapLength: 0},
  videoClassificationConfig: {
    annotationSpecSetConfigs: [{allowMultiLabel: false, annotationSpecSet: ''}],
    applyShotDetection: false
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/video:label',
  headers: {'content-type': 'application/json'},
  body: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    eventConfig: {annotationSpecSets: [], clipLength: 0, overlapLength: 0},
    feature: '',
    objectDetectionConfig: {annotationSpecSet: '', extractionFrameRate: ''},
    objectTrackingConfig: {annotationSpecSet: '', clipLength: 0, overlapLength: 0},
    videoClassificationConfig: {
      annotationSpecSetConfigs: [{allowMultiLabel: false, annotationSpecSet: ''}],
      applyShotDetection: 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}}/v1beta1/:parent/video:label');

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

req.type('json');
req.send({
  basicConfig: {
    annotatedDatasetDescription: '',
    annotatedDatasetDisplayName: '',
    contributorEmails: [],
    instruction: '',
    labelGroup: '',
    languageCode: '',
    questionDuration: '',
    replicaCount: 0,
    userEmailAddress: ''
  },
  eventConfig: {
    annotationSpecSets: [],
    clipLength: 0,
    overlapLength: 0
  },
  feature: '',
  objectDetectionConfig: {
    annotationSpecSet: '',
    extractionFrameRate: ''
  },
  objectTrackingConfig: {
    annotationSpecSet: '',
    clipLength: 0,
    overlapLength: 0
  },
  videoClassificationConfig: {
    annotationSpecSetConfigs: [
      {
        allowMultiLabel: false,
        annotationSpecSet: ''
      }
    ],
    applyShotDetection: 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}}/v1beta1/:parent/video:label',
  headers: {'content-type': 'application/json'},
  data: {
    basicConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    eventConfig: {annotationSpecSets: [], clipLength: 0, overlapLength: 0},
    feature: '',
    objectDetectionConfig: {annotationSpecSet: '', extractionFrameRate: ''},
    objectTrackingConfig: {annotationSpecSet: '', clipLength: 0, overlapLength: 0},
    videoClassificationConfig: {
      annotationSpecSetConfigs: [{allowMultiLabel: false, annotationSpecSet: ''}],
      applyShotDetection: false
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/video:label';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"basicConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"eventConfig":{"annotationSpecSets":[],"clipLength":0,"overlapLength":0},"feature":"","objectDetectionConfig":{"annotationSpecSet":"","extractionFrameRate":""},"objectTrackingConfig":{"annotationSpecSet":"","clipLength":0,"overlapLength":0},"videoClassificationConfig":{"annotationSpecSetConfigs":[{"allowMultiLabel":false,"annotationSpecSet":""}],"applyShotDetection":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 = @{ @"basicConfig": @{ @"annotatedDatasetDescription": @"", @"annotatedDatasetDisplayName": @"", @"contributorEmails": @[  ], @"instruction": @"", @"labelGroup": @"", @"languageCode": @"", @"questionDuration": @"", @"replicaCount": @0, @"userEmailAddress": @"" },
                              @"eventConfig": @{ @"annotationSpecSets": @[  ], @"clipLength": @0, @"overlapLength": @0 },
                              @"feature": @"",
                              @"objectDetectionConfig": @{ @"annotationSpecSet": @"", @"extractionFrameRate": @"" },
                              @"objectTrackingConfig": @{ @"annotationSpecSet": @"", @"clipLength": @0, @"overlapLength": @0 },
                              @"videoClassificationConfig": @{ @"annotationSpecSetConfigs": @[ @{ @"allowMultiLabel": @NO, @"annotationSpecSet": @"" } ], @"applyShotDetection": @NO } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/video:label"]
                                                       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}}/v1beta1/:parent/video:label" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/video:label",
  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([
    'basicConfig' => [
        'annotatedDatasetDescription' => '',
        'annotatedDatasetDisplayName' => '',
        'contributorEmails' => [
                
        ],
        'instruction' => '',
        'labelGroup' => '',
        'languageCode' => '',
        'questionDuration' => '',
        'replicaCount' => 0,
        'userEmailAddress' => ''
    ],
    'eventConfig' => [
        'annotationSpecSets' => [
                
        ],
        'clipLength' => 0,
        'overlapLength' => 0
    ],
    'feature' => '',
    'objectDetectionConfig' => [
        'annotationSpecSet' => '',
        'extractionFrameRate' => ''
    ],
    'objectTrackingConfig' => [
        'annotationSpecSet' => '',
        'clipLength' => 0,
        'overlapLength' => 0
    ],
    'videoClassificationConfig' => [
        'annotationSpecSetConfigs' => [
                [
                                'allowMultiLabel' => null,
                                'annotationSpecSet' => ''
                ]
        ],
        'applyShotDetection' => 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}}/v1beta1/:parent/video:label', [
  'body' => '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "eventConfig": {
    "annotationSpecSets": [],
    "clipLength": 0,
    "overlapLength": 0
  },
  "feature": "",
  "objectDetectionConfig": {
    "annotationSpecSet": "",
    "extractionFrameRate": ""
  },
  "objectTrackingConfig": {
    "annotationSpecSet": "",
    "clipLength": 0,
    "overlapLength": 0
  },
  "videoClassificationConfig": {
    "annotationSpecSetConfigs": [
      {
        "allowMultiLabel": false,
        "annotationSpecSet": ""
      }
    ],
    "applyShotDetection": false
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/video:label');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'basicConfig' => [
    'annotatedDatasetDescription' => '',
    'annotatedDatasetDisplayName' => '',
    'contributorEmails' => [
        
    ],
    'instruction' => '',
    'labelGroup' => '',
    'languageCode' => '',
    'questionDuration' => '',
    'replicaCount' => 0,
    'userEmailAddress' => ''
  ],
  'eventConfig' => [
    'annotationSpecSets' => [
        
    ],
    'clipLength' => 0,
    'overlapLength' => 0
  ],
  'feature' => '',
  'objectDetectionConfig' => [
    'annotationSpecSet' => '',
    'extractionFrameRate' => ''
  ],
  'objectTrackingConfig' => [
    'annotationSpecSet' => '',
    'clipLength' => 0,
    'overlapLength' => 0
  ],
  'videoClassificationConfig' => [
    'annotationSpecSetConfigs' => [
        [
                'allowMultiLabel' => null,
                'annotationSpecSet' => ''
        ]
    ],
    'applyShotDetection' => null
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'basicConfig' => [
    'annotatedDatasetDescription' => '',
    'annotatedDatasetDisplayName' => '',
    'contributorEmails' => [
        
    ],
    'instruction' => '',
    'labelGroup' => '',
    'languageCode' => '',
    'questionDuration' => '',
    'replicaCount' => 0,
    'userEmailAddress' => ''
  ],
  'eventConfig' => [
    'annotationSpecSets' => [
        
    ],
    'clipLength' => 0,
    'overlapLength' => 0
  ],
  'feature' => '',
  'objectDetectionConfig' => [
    'annotationSpecSet' => '',
    'extractionFrameRate' => ''
  ],
  'objectTrackingConfig' => [
    'annotationSpecSet' => '',
    'clipLength' => 0,
    'overlapLength' => 0
  ],
  'videoClassificationConfig' => [
    'annotationSpecSetConfigs' => [
        [
                'allowMultiLabel' => null,
                'annotationSpecSet' => ''
        ]
    ],
    'applyShotDetection' => null
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/video:label');
$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}}/v1beta1/:parent/video:label' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "eventConfig": {
    "annotationSpecSets": [],
    "clipLength": 0,
    "overlapLength": 0
  },
  "feature": "",
  "objectDetectionConfig": {
    "annotationSpecSet": "",
    "extractionFrameRate": ""
  },
  "objectTrackingConfig": {
    "annotationSpecSet": "",
    "clipLength": 0,
    "overlapLength": 0
  },
  "videoClassificationConfig": {
    "annotationSpecSetConfigs": [
      {
        "allowMultiLabel": false,
        "annotationSpecSet": ""
      }
    ],
    "applyShotDetection": false
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/video:label' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "eventConfig": {
    "annotationSpecSets": [],
    "clipLength": 0,
    "overlapLength": 0
  },
  "feature": "",
  "objectDetectionConfig": {
    "annotationSpecSet": "",
    "extractionFrameRate": ""
  },
  "objectTrackingConfig": {
    "annotationSpecSet": "",
    "clipLength": 0,
    "overlapLength": 0
  },
  "videoClassificationConfig": {
    "annotationSpecSetConfigs": [
      {
        "allowMultiLabel": false,
        "annotationSpecSet": ""
      }
    ],
    "applyShotDetection": false
  }
}'
import http.client

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

payload = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/video:label", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/video:label"

payload = {
    "basicConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
    },
    "eventConfig": {
        "annotationSpecSets": [],
        "clipLength": 0,
        "overlapLength": 0
    },
    "feature": "",
    "objectDetectionConfig": {
        "annotationSpecSet": "",
        "extractionFrameRate": ""
    },
    "objectTrackingConfig": {
        "annotationSpecSet": "",
        "clipLength": 0,
        "overlapLength": 0
    },
    "videoClassificationConfig": {
        "annotationSpecSetConfigs": [
            {
                "allowMultiLabel": False,
                "annotationSpecSet": ""
            }
        ],
        "applyShotDetection": False
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/video:label"

payload <- "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\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}}/v1beta1/:parent/video:label")

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  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\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/v1beta1/:parent/video:label') do |req|
  req.body = "{\n  \"basicConfig\": {\n    \"annotatedDatasetDescription\": \"\",\n    \"annotatedDatasetDisplayName\": \"\",\n    \"contributorEmails\": [],\n    \"instruction\": \"\",\n    \"labelGroup\": \"\",\n    \"languageCode\": \"\",\n    \"questionDuration\": \"\",\n    \"replicaCount\": 0,\n    \"userEmailAddress\": \"\"\n  },\n  \"eventConfig\": {\n    \"annotationSpecSets\": [],\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"feature\": \"\",\n  \"objectDetectionConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"extractionFrameRate\": \"\"\n  },\n  \"objectTrackingConfig\": {\n    \"annotationSpecSet\": \"\",\n    \"clipLength\": 0,\n    \"overlapLength\": 0\n  },\n  \"videoClassificationConfig\": {\n    \"annotationSpecSetConfigs\": [\n      {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\"\n      }\n    ],\n    \"applyShotDetection\": false\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1beta1/:parent/video:label";

    let payload = json!({
        "basicConfig": json!({
            "annotatedDatasetDescription": "",
            "annotatedDatasetDisplayName": "",
            "contributorEmails": (),
            "instruction": "",
            "labelGroup": "",
            "languageCode": "",
            "questionDuration": "",
            "replicaCount": 0,
            "userEmailAddress": ""
        }),
        "eventConfig": json!({
            "annotationSpecSets": (),
            "clipLength": 0,
            "overlapLength": 0
        }),
        "feature": "",
        "objectDetectionConfig": json!({
            "annotationSpecSet": "",
            "extractionFrameRate": ""
        }),
        "objectTrackingConfig": json!({
            "annotationSpecSet": "",
            "clipLength": 0,
            "overlapLength": 0
        }),
        "videoClassificationConfig": json!({
            "annotationSpecSetConfigs": (
                json!({
                    "allowMultiLabel": false,
                    "annotationSpecSet": ""
                })
            ),
            "applyShotDetection": 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}}/v1beta1/:parent/video:label \
  --header 'content-type: application/json' \
  --data '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "eventConfig": {
    "annotationSpecSets": [],
    "clipLength": 0,
    "overlapLength": 0
  },
  "feature": "",
  "objectDetectionConfig": {
    "annotationSpecSet": "",
    "extractionFrameRate": ""
  },
  "objectTrackingConfig": {
    "annotationSpecSet": "",
    "clipLength": 0,
    "overlapLength": 0
  },
  "videoClassificationConfig": {
    "annotationSpecSetConfigs": [
      {
        "allowMultiLabel": false,
        "annotationSpecSet": ""
      }
    ],
    "applyShotDetection": false
  }
}'
echo '{
  "basicConfig": {
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  },
  "eventConfig": {
    "annotationSpecSets": [],
    "clipLength": 0,
    "overlapLength": 0
  },
  "feature": "",
  "objectDetectionConfig": {
    "annotationSpecSet": "",
    "extractionFrameRate": ""
  },
  "objectTrackingConfig": {
    "annotationSpecSet": "",
    "clipLength": 0,
    "overlapLength": 0
  },
  "videoClassificationConfig": {
    "annotationSpecSetConfigs": [
      {
        "allowMultiLabel": false,
        "annotationSpecSet": ""
      }
    ],
    "applyShotDetection": false
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/video:label \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "basicConfig": {\n    "annotatedDatasetDescription": "",\n    "annotatedDatasetDisplayName": "",\n    "contributorEmails": [],\n    "instruction": "",\n    "labelGroup": "",\n    "languageCode": "",\n    "questionDuration": "",\n    "replicaCount": 0,\n    "userEmailAddress": ""\n  },\n  "eventConfig": {\n    "annotationSpecSets": [],\n    "clipLength": 0,\n    "overlapLength": 0\n  },\n  "feature": "",\n  "objectDetectionConfig": {\n    "annotationSpecSet": "",\n    "extractionFrameRate": ""\n  },\n  "objectTrackingConfig": {\n    "annotationSpecSet": "",\n    "clipLength": 0,\n    "overlapLength": 0\n  },\n  "videoClassificationConfig": {\n    "annotationSpecSetConfigs": [\n      {\n        "allowMultiLabel": false,\n        "annotationSpecSet": ""\n      }\n    ],\n    "applyShotDetection": false\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/video:label
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "basicConfig": [
    "annotatedDatasetDescription": "",
    "annotatedDatasetDisplayName": "",
    "contributorEmails": [],
    "instruction": "",
    "labelGroup": "",
    "languageCode": "",
    "questionDuration": "",
    "replicaCount": 0,
    "userEmailAddress": ""
  ],
  "eventConfig": [
    "annotationSpecSets": [],
    "clipLength": 0,
    "overlapLength": 0
  ],
  "feature": "",
  "objectDetectionConfig": [
    "annotationSpecSet": "",
    "extractionFrameRate": ""
  ],
  "objectTrackingConfig": [
    "annotationSpecSet": "",
    "clipLength": 0,
    "overlapLength": 0
  ],
  "videoClassificationConfig": [
    "annotationSpecSetConfigs": [
      [
        "allowMultiLabel": false,
        "annotationSpecSet": ""
      ]
    ],
    "applyShotDetection": false
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/video:label")! 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 datalabeling.projects.evaluationJobs.create
{{baseUrl}}/v1beta1/:parent/evaluationJobs
QUERY PARAMS

parent
BODY json

{
  "job": {
    "annotationSpecSet": "",
    "attempts": [
      {
        "attemptTime": "",
        "partialFailures": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ]
      }
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": {
      "bigqueryImportKeys": {},
      "boundingPolyConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
      },
      "evaluationConfig": {
        "boundingBoxEvaluationOptions": {
          "iouThreshold": ""
        }
      },
      "evaluationJobAlertConfig": {
        "email": "",
        "minAcceptableMeanAveragePrecision": ""
      },
      "exampleCount": 0,
      "exampleSamplePercentage": "",
      "humanAnnotationConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
      },
      "imageClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "answerAggregationType": ""
      },
      "inputConfig": {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      },
      "textClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "sentimentConfig": {
          "enableLabelSentimentSelection": false
        }
      }
    },
    "labelMissingGroundTruth": false,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/evaluationJobs");

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  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/evaluationJobs" {:content-type :json
                                                                           :form-params {:job {:annotationSpecSet ""
                                                                                               :attempts [{:attemptTime ""
                                                                                                           :partialFailures [{:code 0
                                                                                                                              :details [{}]
                                                                                                                              :message ""}]}]
                                                                                               :createTime ""
                                                                                               :description ""
                                                                                               :evaluationJobConfig {:bigqueryImportKeys {}
                                                                                                                     :boundingPolyConfig {:annotationSpecSet ""
                                                                                                                                          :instructionMessage ""}
                                                                                                                     :evaluationConfig {:boundingBoxEvaluationOptions {:iouThreshold ""}}
                                                                                                                     :evaluationJobAlertConfig {:email ""
                                                                                                                                                :minAcceptableMeanAveragePrecision ""}
                                                                                                                     :exampleCount 0
                                                                                                                     :exampleSamplePercentage ""
                                                                                                                     :humanAnnotationConfig {:annotatedDatasetDescription ""
                                                                                                                                             :annotatedDatasetDisplayName ""
                                                                                                                                             :contributorEmails []
                                                                                                                                             :instruction ""
                                                                                                                                             :labelGroup ""
                                                                                                                                             :languageCode ""
                                                                                                                                             :questionDuration ""
                                                                                                                                             :replicaCount 0
                                                                                                                                             :userEmailAddress ""}
                                                                                                                     :imageClassificationConfig {:allowMultiLabel false
                                                                                                                                                 :annotationSpecSet ""
                                                                                                                                                 :answerAggregationType ""}
                                                                                                                     :inputConfig {:annotationType ""
                                                                                                                                   :bigquerySource {:inputUri ""}
                                                                                                                                   :classificationMetadata {:isMultiLabel false}
                                                                                                                                   :dataType ""
                                                                                                                                   :gcsSource {:inputUri ""
                                                                                                                                               :mimeType ""}
                                                                                                                                   :textMetadata {:languageCode ""}}
                                                                                                                     :textClassificationConfig {:allowMultiLabel false
                                                                                                                                                :annotationSpecSet ""
                                                                                                                                                :sentimentConfig {:enableLabelSentimentSelection false}}}
                                                                                               :labelMissingGroundTruth false
                                                                                               :modelVersion ""
                                                                                               :name ""
                                                                                               :schedule ""
                                                                                               :state ""}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/evaluationJobs"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\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}}/v1beta1/:parent/evaluationJobs"),
    Content = new StringContent("{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\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}}/v1beta1/:parent/evaluationJobs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/evaluationJobs"

	payload := strings.NewReader("{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\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/v1beta1/:parent/evaluationJobs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1969

{
  "job": {
    "annotationSpecSet": "",
    "attempts": [
      {
        "attemptTime": "",
        "partialFailures": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ]
      }
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": {
      "bigqueryImportKeys": {},
      "boundingPolyConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
      },
      "evaluationConfig": {
        "boundingBoxEvaluationOptions": {
          "iouThreshold": ""
        }
      },
      "evaluationJobAlertConfig": {
        "email": "",
        "minAcceptableMeanAveragePrecision": ""
      },
      "exampleCount": 0,
      "exampleSamplePercentage": "",
      "humanAnnotationConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
      },
      "imageClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "answerAggregationType": ""
      },
      "inputConfig": {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      },
      "textClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "sentimentConfig": {
          "enableLabelSentimentSelection": false
        }
      }
    },
    "labelMissingGroundTruth": false,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/evaluationJobs")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/evaluationJobs"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\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  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/evaluationJobs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/evaluationJobs")
  .header("content-type", "application/json")
  .body("{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  job: {
    annotationSpecSet: '',
    attempts: [
      {
        attemptTime: '',
        partialFailures: [
          {
            code: 0,
            details: [
              {}
            ],
            message: ''
          }
        ]
      }
    ],
    createTime: '',
    description: '',
    evaluationJobConfig: {
      bigqueryImportKeys: {},
      boundingPolyConfig: {
        annotationSpecSet: '',
        instructionMessage: ''
      },
      evaluationConfig: {
        boundingBoxEvaluationOptions: {
          iouThreshold: ''
        }
      },
      evaluationJobAlertConfig: {
        email: '',
        minAcceptableMeanAveragePrecision: ''
      },
      exampleCount: 0,
      exampleSamplePercentage: '',
      humanAnnotationConfig: {
        annotatedDatasetDescription: '',
        annotatedDatasetDisplayName: '',
        contributorEmails: [],
        instruction: '',
        labelGroup: '',
        languageCode: '',
        questionDuration: '',
        replicaCount: 0,
        userEmailAddress: ''
      },
      imageClassificationConfig: {
        allowMultiLabel: false,
        annotationSpecSet: '',
        answerAggregationType: ''
      },
      inputConfig: {
        annotationType: '',
        bigquerySource: {
          inputUri: ''
        },
        classificationMetadata: {
          isMultiLabel: false
        },
        dataType: '',
        gcsSource: {
          inputUri: '',
          mimeType: ''
        },
        textMetadata: {
          languageCode: ''
        }
      },
      textClassificationConfig: {
        allowMultiLabel: false,
        annotationSpecSet: '',
        sentimentConfig: {
          enableLabelSentimentSelection: false
        }
      }
    },
    labelMissingGroundTruth: false,
    modelVersion: '',
    name: '',
    schedule: '',
    state: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/evaluationJobs');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/evaluationJobs',
  headers: {'content-type': 'application/json'},
  data: {
    job: {
      annotationSpecSet: '',
      attempts: [{attemptTime: '', partialFailures: [{code: 0, details: [{}], message: ''}]}],
      createTime: '',
      description: '',
      evaluationJobConfig: {
        bigqueryImportKeys: {},
        boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
        evaluationConfig: {boundingBoxEvaluationOptions: {iouThreshold: ''}},
        evaluationJobAlertConfig: {email: '', minAcceptableMeanAveragePrecision: ''},
        exampleCount: 0,
        exampleSamplePercentage: '',
        humanAnnotationConfig: {
          annotatedDatasetDescription: '',
          annotatedDatasetDisplayName: '',
          contributorEmails: [],
          instruction: '',
          labelGroup: '',
          languageCode: '',
          questionDuration: '',
          replicaCount: 0,
          userEmailAddress: ''
        },
        imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
        inputConfig: {
          annotationType: '',
          bigquerySource: {inputUri: ''},
          classificationMetadata: {isMultiLabel: false},
          dataType: '',
          gcsSource: {inputUri: '', mimeType: ''},
          textMetadata: {languageCode: ''}
        },
        textClassificationConfig: {
          allowMultiLabel: false,
          annotationSpecSet: '',
          sentimentConfig: {enableLabelSentimentSelection: false}
        }
      },
      labelMissingGroundTruth: false,
      modelVersion: '',
      name: '',
      schedule: '',
      state: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/evaluationJobs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"job":{"annotationSpecSet":"","attempts":[{"attemptTime":"","partialFailures":[{"code":0,"details":[{}],"message":""}]}],"createTime":"","description":"","evaluationJobConfig":{"bigqueryImportKeys":{},"boundingPolyConfig":{"annotationSpecSet":"","instructionMessage":""},"evaluationConfig":{"boundingBoxEvaluationOptions":{"iouThreshold":""}},"evaluationJobAlertConfig":{"email":"","minAcceptableMeanAveragePrecision":""},"exampleCount":0,"exampleSamplePercentage":"","humanAnnotationConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"imageClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","answerAggregationType":""},"inputConfig":{"annotationType":"","bigquerySource":{"inputUri":""},"classificationMetadata":{"isMultiLabel":false},"dataType":"","gcsSource":{"inputUri":"","mimeType":""},"textMetadata":{"languageCode":""}},"textClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","sentimentConfig":{"enableLabelSentimentSelection":false}}},"labelMissingGroundTruth":false,"modelVersion":"","name":"","schedule":"","state":""}}'
};

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}}/v1beta1/:parent/evaluationJobs',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "job": {\n    "annotationSpecSet": "",\n    "attempts": [\n      {\n        "attemptTime": "",\n        "partialFailures": [\n          {\n            "code": 0,\n            "details": [\n              {}\n            ],\n            "message": ""\n          }\n        ]\n      }\n    ],\n    "createTime": "",\n    "description": "",\n    "evaluationJobConfig": {\n      "bigqueryImportKeys": {},\n      "boundingPolyConfig": {\n        "annotationSpecSet": "",\n        "instructionMessage": ""\n      },\n      "evaluationConfig": {\n        "boundingBoxEvaluationOptions": {\n          "iouThreshold": ""\n        }\n      },\n      "evaluationJobAlertConfig": {\n        "email": "",\n        "minAcceptableMeanAveragePrecision": ""\n      },\n      "exampleCount": 0,\n      "exampleSamplePercentage": "",\n      "humanAnnotationConfig": {\n        "annotatedDatasetDescription": "",\n        "annotatedDatasetDisplayName": "",\n        "contributorEmails": [],\n        "instruction": "",\n        "labelGroup": "",\n        "languageCode": "",\n        "questionDuration": "",\n        "replicaCount": 0,\n        "userEmailAddress": ""\n      },\n      "imageClassificationConfig": {\n        "allowMultiLabel": false,\n        "annotationSpecSet": "",\n        "answerAggregationType": ""\n      },\n      "inputConfig": {\n        "annotationType": "",\n        "bigquerySource": {\n          "inputUri": ""\n        },\n        "classificationMetadata": {\n          "isMultiLabel": false\n        },\n        "dataType": "",\n        "gcsSource": {\n          "inputUri": "",\n          "mimeType": ""\n        },\n        "textMetadata": {\n          "languageCode": ""\n        }\n      },\n      "textClassificationConfig": {\n        "allowMultiLabel": false,\n        "annotationSpecSet": "",\n        "sentimentConfig": {\n          "enableLabelSentimentSelection": false\n        }\n      }\n    },\n    "labelMissingGroundTruth": false,\n    "modelVersion": "",\n    "name": "",\n    "schedule": "",\n    "state": ""\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  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/evaluationJobs")
  .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/v1beta1/:parent/evaluationJobs',
  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({
  job: {
    annotationSpecSet: '',
    attempts: [{attemptTime: '', partialFailures: [{code: 0, details: [{}], message: ''}]}],
    createTime: '',
    description: '',
    evaluationJobConfig: {
      bigqueryImportKeys: {},
      boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
      evaluationConfig: {boundingBoxEvaluationOptions: {iouThreshold: ''}},
      evaluationJobAlertConfig: {email: '', minAcceptableMeanAveragePrecision: ''},
      exampleCount: 0,
      exampleSamplePercentage: '',
      humanAnnotationConfig: {
        annotatedDatasetDescription: '',
        annotatedDatasetDisplayName: '',
        contributorEmails: [],
        instruction: '',
        labelGroup: '',
        languageCode: '',
        questionDuration: '',
        replicaCount: 0,
        userEmailAddress: ''
      },
      imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
      inputConfig: {
        annotationType: '',
        bigquerySource: {inputUri: ''},
        classificationMetadata: {isMultiLabel: false},
        dataType: '',
        gcsSource: {inputUri: '', mimeType: ''},
        textMetadata: {languageCode: ''}
      },
      textClassificationConfig: {
        allowMultiLabel: false,
        annotationSpecSet: '',
        sentimentConfig: {enableLabelSentimentSelection: false}
      }
    },
    labelMissingGroundTruth: false,
    modelVersion: '',
    name: '',
    schedule: '',
    state: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/evaluationJobs',
  headers: {'content-type': 'application/json'},
  body: {
    job: {
      annotationSpecSet: '',
      attempts: [{attemptTime: '', partialFailures: [{code: 0, details: [{}], message: ''}]}],
      createTime: '',
      description: '',
      evaluationJobConfig: {
        bigqueryImportKeys: {},
        boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
        evaluationConfig: {boundingBoxEvaluationOptions: {iouThreshold: ''}},
        evaluationJobAlertConfig: {email: '', minAcceptableMeanAveragePrecision: ''},
        exampleCount: 0,
        exampleSamplePercentage: '',
        humanAnnotationConfig: {
          annotatedDatasetDescription: '',
          annotatedDatasetDisplayName: '',
          contributorEmails: [],
          instruction: '',
          labelGroup: '',
          languageCode: '',
          questionDuration: '',
          replicaCount: 0,
          userEmailAddress: ''
        },
        imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
        inputConfig: {
          annotationType: '',
          bigquerySource: {inputUri: ''},
          classificationMetadata: {isMultiLabel: false},
          dataType: '',
          gcsSource: {inputUri: '', mimeType: ''},
          textMetadata: {languageCode: ''}
        },
        textClassificationConfig: {
          allowMultiLabel: false,
          annotationSpecSet: '',
          sentimentConfig: {enableLabelSentimentSelection: false}
        }
      },
      labelMissingGroundTruth: false,
      modelVersion: '',
      name: '',
      schedule: '',
      state: ''
    }
  },
  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}}/v1beta1/:parent/evaluationJobs');

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

req.type('json');
req.send({
  job: {
    annotationSpecSet: '',
    attempts: [
      {
        attemptTime: '',
        partialFailures: [
          {
            code: 0,
            details: [
              {}
            ],
            message: ''
          }
        ]
      }
    ],
    createTime: '',
    description: '',
    evaluationJobConfig: {
      bigqueryImportKeys: {},
      boundingPolyConfig: {
        annotationSpecSet: '',
        instructionMessage: ''
      },
      evaluationConfig: {
        boundingBoxEvaluationOptions: {
          iouThreshold: ''
        }
      },
      evaluationJobAlertConfig: {
        email: '',
        minAcceptableMeanAveragePrecision: ''
      },
      exampleCount: 0,
      exampleSamplePercentage: '',
      humanAnnotationConfig: {
        annotatedDatasetDescription: '',
        annotatedDatasetDisplayName: '',
        contributorEmails: [],
        instruction: '',
        labelGroup: '',
        languageCode: '',
        questionDuration: '',
        replicaCount: 0,
        userEmailAddress: ''
      },
      imageClassificationConfig: {
        allowMultiLabel: false,
        annotationSpecSet: '',
        answerAggregationType: ''
      },
      inputConfig: {
        annotationType: '',
        bigquerySource: {
          inputUri: ''
        },
        classificationMetadata: {
          isMultiLabel: false
        },
        dataType: '',
        gcsSource: {
          inputUri: '',
          mimeType: ''
        },
        textMetadata: {
          languageCode: ''
        }
      },
      textClassificationConfig: {
        allowMultiLabel: false,
        annotationSpecSet: '',
        sentimentConfig: {
          enableLabelSentimentSelection: false
        }
      }
    },
    labelMissingGroundTruth: false,
    modelVersion: '',
    name: '',
    schedule: '',
    state: ''
  }
});

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}}/v1beta1/:parent/evaluationJobs',
  headers: {'content-type': 'application/json'},
  data: {
    job: {
      annotationSpecSet: '',
      attempts: [{attemptTime: '', partialFailures: [{code: 0, details: [{}], message: ''}]}],
      createTime: '',
      description: '',
      evaluationJobConfig: {
        bigqueryImportKeys: {},
        boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
        evaluationConfig: {boundingBoxEvaluationOptions: {iouThreshold: ''}},
        evaluationJobAlertConfig: {email: '', minAcceptableMeanAveragePrecision: ''},
        exampleCount: 0,
        exampleSamplePercentage: '',
        humanAnnotationConfig: {
          annotatedDatasetDescription: '',
          annotatedDatasetDisplayName: '',
          contributorEmails: [],
          instruction: '',
          labelGroup: '',
          languageCode: '',
          questionDuration: '',
          replicaCount: 0,
          userEmailAddress: ''
        },
        imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
        inputConfig: {
          annotationType: '',
          bigquerySource: {inputUri: ''},
          classificationMetadata: {isMultiLabel: false},
          dataType: '',
          gcsSource: {inputUri: '', mimeType: ''},
          textMetadata: {languageCode: ''}
        },
        textClassificationConfig: {
          allowMultiLabel: false,
          annotationSpecSet: '',
          sentimentConfig: {enableLabelSentimentSelection: false}
        }
      },
      labelMissingGroundTruth: false,
      modelVersion: '',
      name: '',
      schedule: '',
      state: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/evaluationJobs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"job":{"annotationSpecSet":"","attempts":[{"attemptTime":"","partialFailures":[{"code":0,"details":[{}],"message":""}]}],"createTime":"","description":"","evaluationJobConfig":{"bigqueryImportKeys":{},"boundingPolyConfig":{"annotationSpecSet":"","instructionMessage":""},"evaluationConfig":{"boundingBoxEvaluationOptions":{"iouThreshold":""}},"evaluationJobAlertConfig":{"email":"","minAcceptableMeanAveragePrecision":""},"exampleCount":0,"exampleSamplePercentage":"","humanAnnotationConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"imageClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","answerAggregationType":""},"inputConfig":{"annotationType":"","bigquerySource":{"inputUri":""},"classificationMetadata":{"isMultiLabel":false},"dataType":"","gcsSource":{"inputUri":"","mimeType":""},"textMetadata":{"languageCode":""}},"textClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","sentimentConfig":{"enableLabelSentimentSelection":false}}},"labelMissingGroundTruth":false,"modelVersion":"","name":"","schedule":"","state":""}}'
};

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 = @{ @"job": @{ @"annotationSpecSet": @"", @"attempts": @[ @{ @"attemptTime": @"", @"partialFailures": @[ @{ @"code": @0, @"details": @[ @{  } ], @"message": @"" } ] } ], @"createTime": @"", @"description": @"", @"evaluationJobConfig": @{ @"bigqueryImportKeys": @{  }, @"boundingPolyConfig": @{ @"annotationSpecSet": @"", @"instructionMessage": @"" }, @"evaluationConfig": @{ @"boundingBoxEvaluationOptions": @{ @"iouThreshold": @"" } }, @"evaluationJobAlertConfig": @{ @"email": @"", @"minAcceptableMeanAveragePrecision": @"" }, @"exampleCount": @0, @"exampleSamplePercentage": @"", @"humanAnnotationConfig": @{ @"annotatedDatasetDescription": @"", @"annotatedDatasetDisplayName": @"", @"contributorEmails": @[  ], @"instruction": @"", @"labelGroup": @"", @"languageCode": @"", @"questionDuration": @"", @"replicaCount": @0, @"userEmailAddress": @"" }, @"imageClassificationConfig": @{ @"allowMultiLabel": @NO, @"annotationSpecSet": @"", @"answerAggregationType": @"" }, @"inputConfig": @{ @"annotationType": @"", @"bigquerySource": @{ @"inputUri": @"" }, @"classificationMetadata": @{ @"isMultiLabel": @NO }, @"dataType": @"", @"gcsSource": @{ @"inputUri": @"", @"mimeType": @"" }, @"textMetadata": @{ @"languageCode": @"" } }, @"textClassificationConfig": @{ @"allowMultiLabel": @NO, @"annotationSpecSet": @"", @"sentimentConfig": @{ @"enableLabelSentimentSelection": @NO } } }, @"labelMissingGroundTruth": @NO, @"modelVersion": @"", @"name": @"", @"schedule": @"", @"state": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/evaluationJobs"]
                                                       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}}/v1beta1/:parent/evaluationJobs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/evaluationJobs",
  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([
    'job' => [
        'annotationSpecSet' => '',
        'attempts' => [
                [
                                'attemptTime' => '',
                                'partialFailures' => [
                                                                [
                                                                                                                                'code' => 0,
                                                                                                                                'details' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'message' => ''
                                                                ]
                                ]
                ]
        ],
        'createTime' => '',
        'description' => '',
        'evaluationJobConfig' => [
                'bigqueryImportKeys' => [
                                
                ],
                'boundingPolyConfig' => [
                                'annotationSpecSet' => '',
                                'instructionMessage' => ''
                ],
                'evaluationConfig' => [
                                'boundingBoxEvaluationOptions' => [
                                                                'iouThreshold' => ''
                                ]
                ],
                'evaluationJobAlertConfig' => [
                                'email' => '',
                                'minAcceptableMeanAveragePrecision' => ''
                ],
                'exampleCount' => 0,
                'exampleSamplePercentage' => '',
                'humanAnnotationConfig' => [
                                'annotatedDatasetDescription' => '',
                                'annotatedDatasetDisplayName' => '',
                                'contributorEmails' => [
                                                                
                                ],
                                'instruction' => '',
                                'labelGroup' => '',
                                'languageCode' => '',
                                'questionDuration' => '',
                                'replicaCount' => 0,
                                'userEmailAddress' => ''
                ],
                'imageClassificationConfig' => [
                                'allowMultiLabel' => null,
                                'annotationSpecSet' => '',
                                'answerAggregationType' => ''
                ],
                'inputConfig' => [
                                'annotationType' => '',
                                'bigquerySource' => [
                                                                'inputUri' => ''
                                ],
                                'classificationMetadata' => [
                                                                'isMultiLabel' => null
                                ],
                                'dataType' => '',
                                'gcsSource' => [
                                                                'inputUri' => '',
                                                                'mimeType' => ''
                                ],
                                'textMetadata' => [
                                                                'languageCode' => ''
                                ]
                ],
                'textClassificationConfig' => [
                                'allowMultiLabel' => null,
                                'annotationSpecSet' => '',
                                'sentimentConfig' => [
                                                                'enableLabelSentimentSelection' => null
                                ]
                ]
        ],
        'labelMissingGroundTruth' => null,
        'modelVersion' => '',
        'name' => '',
        'schedule' => '',
        'state' => ''
    ]
  ]),
  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}}/v1beta1/:parent/evaluationJobs', [
  'body' => '{
  "job": {
    "annotationSpecSet": "",
    "attempts": [
      {
        "attemptTime": "",
        "partialFailures": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ]
      }
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": {
      "bigqueryImportKeys": {},
      "boundingPolyConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
      },
      "evaluationConfig": {
        "boundingBoxEvaluationOptions": {
          "iouThreshold": ""
        }
      },
      "evaluationJobAlertConfig": {
        "email": "",
        "minAcceptableMeanAveragePrecision": ""
      },
      "exampleCount": 0,
      "exampleSamplePercentage": "",
      "humanAnnotationConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
      },
      "imageClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "answerAggregationType": ""
      },
      "inputConfig": {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      },
      "textClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "sentimentConfig": {
          "enableLabelSentimentSelection": false
        }
      }
    },
    "labelMissingGroundTruth": false,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/evaluationJobs');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'job' => [
    'annotationSpecSet' => '',
    'attempts' => [
        [
                'attemptTime' => '',
                'partialFailures' => [
                                [
                                                                'code' => 0,
                                                                'details' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'message' => ''
                                ]
                ]
        ]
    ],
    'createTime' => '',
    'description' => '',
    'evaluationJobConfig' => [
        'bigqueryImportKeys' => [
                
        ],
        'boundingPolyConfig' => [
                'annotationSpecSet' => '',
                'instructionMessage' => ''
        ],
        'evaluationConfig' => [
                'boundingBoxEvaluationOptions' => [
                                'iouThreshold' => ''
                ]
        ],
        'evaluationJobAlertConfig' => [
                'email' => '',
                'minAcceptableMeanAveragePrecision' => ''
        ],
        'exampleCount' => 0,
        'exampleSamplePercentage' => '',
        'humanAnnotationConfig' => [
                'annotatedDatasetDescription' => '',
                'annotatedDatasetDisplayName' => '',
                'contributorEmails' => [
                                
                ],
                'instruction' => '',
                'labelGroup' => '',
                'languageCode' => '',
                'questionDuration' => '',
                'replicaCount' => 0,
                'userEmailAddress' => ''
        ],
        'imageClassificationConfig' => [
                'allowMultiLabel' => null,
                'annotationSpecSet' => '',
                'answerAggregationType' => ''
        ],
        'inputConfig' => [
                'annotationType' => '',
                'bigquerySource' => [
                                'inputUri' => ''
                ],
                'classificationMetadata' => [
                                'isMultiLabel' => null
                ],
                'dataType' => '',
                'gcsSource' => [
                                'inputUri' => '',
                                'mimeType' => ''
                ],
                'textMetadata' => [
                                'languageCode' => ''
                ]
        ],
        'textClassificationConfig' => [
                'allowMultiLabel' => null,
                'annotationSpecSet' => '',
                'sentimentConfig' => [
                                'enableLabelSentimentSelection' => null
                ]
        ]
    ],
    'labelMissingGroundTruth' => null,
    'modelVersion' => '',
    'name' => '',
    'schedule' => '',
    'state' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'job' => [
    'annotationSpecSet' => '',
    'attempts' => [
        [
                'attemptTime' => '',
                'partialFailures' => [
                                [
                                                                'code' => 0,
                                                                'details' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'message' => ''
                                ]
                ]
        ]
    ],
    'createTime' => '',
    'description' => '',
    'evaluationJobConfig' => [
        'bigqueryImportKeys' => [
                
        ],
        'boundingPolyConfig' => [
                'annotationSpecSet' => '',
                'instructionMessage' => ''
        ],
        'evaluationConfig' => [
                'boundingBoxEvaluationOptions' => [
                                'iouThreshold' => ''
                ]
        ],
        'evaluationJobAlertConfig' => [
                'email' => '',
                'minAcceptableMeanAveragePrecision' => ''
        ],
        'exampleCount' => 0,
        'exampleSamplePercentage' => '',
        'humanAnnotationConfig' => [
                'annotatedDatasetDescription' => '',
                'annotatedDatasetDisplayName' => '',
                'contributorEmails' => [
                                
                ],
                'instruction' => '',
                'labelGroup' => '',
                'languageCode' => '',
                'questionDuration' => '',
                'replicaCount' => 0,
                'userEmailAddress' => ''
        ],
        'imageClassificationConfig' => [
                'allowMultiLabel' => null,
                'annotationSpecSet' => '',
                'answerAggregationType' => ''
        ],
        'inputConfig' => [
                'annotationType' => '',
                'bigquerySource' => [
                                'inputUri' => ''
                ],
                'classificationMetadata' => [
                                'isMultiLabel' => null
                ],
                'dataType' => '',
                'gcsSource' => [
                                'inputUri' => '',
                                'mimeType' => ''
                ],
                'textMetadata' => [
                                'languageCode' => ''
                ]
        ],
        'textClassificationConfig' => [
                'allowMultiLabel' => null,
                'annotationSpecSet' => '',
                'sentimentConfig' => [
                                'enableLabelSentimentSelection' => null
                ]
        ]
    ],
    'labelMissingGroundTruth' => null,
    'modelVersion' => '',
    'name' => '',
    'schedule' => '',
    'state' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/evaluationJobs');
$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}}/v1beta1/:parent/evaluationJobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "job": {
    "annotationSpecSet": "",
    "attempts": [
      {
        "attemptTime": "",
        "partialFailures": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ]
      }
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": {
      "bigqueryImportKeys": {},
      "boundingPolyConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
      },
      "evaluationConfig": {
        "boundingBoxEvaluationOptions": {
          "iouThreshold": ""
        }
      },
      "evaluationJobAlertConfig": {
        "email": "",
        "minAcceptableMeanAveragePrecision": ""
      },
      "exampleCount": 0,
      "exampleSamplePercentage": "",
      "humanAnnotationConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
      },
      "imageClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "answerAggregationType": ""
      },
      "inputConfig": {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      },
      "textClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "sentimentConfig": {
          "enableLabelSentimentSelection": false
        }
      }
    },
    "labelMissingGroundTruth": false,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/evaluationJobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "job": {
    "annotationSpecSet": "",
    "attempts": [
      {
        "attemptTime": "",
        "partialFailures": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ]
      }
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": {
      "bigqueryImportKeys": {},
      "boundingPolyConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
      },
      "evaluationConfig": {
        "boundingBoxEvaluationOptions": {
          "iouThreshold": ""
        }
      },
      "evaluationJobAlertConfig": {
        "email": "",
        "minAcceptableMeanAveragePrecision": ""
      },
      "exampleCount": 0,
      "exampleSamplePercentage": "",
      "humanAnnotationConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
      },
      "imageClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "answerAggregationType": ""
      },
      "inputConfig": {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      },
      "textClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "sentimentConfig": {
          "enableLabelSentimentSelection": false
        }
      }
    },
    "labelMissingGroundTruth": false,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
  }
}'
import http.client

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

payload = "{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/evaluationJobs", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/evaluationJobs"

payload = { "job": {
        "annotationSpecSet": "",
        "attempts": [
            {
                "attemptTime": "",
                "partialFailures": [
                    {
                        "code": 0,
                        "details": [{}],
                        "message": ""
                    }
                ]
            }
        ],
        "createTime": "",
        "description": "",
        "evaluationJobConfig": {
            "bigqueryImportKeys": {},
            "boundingPolyConfig": {
                "annotationSpecSet": "",
                "instructionMessage": ""
            },
            "evaluationConfig": { "boundingBoxEvaluationOptions": { "iouThreshold": "" } },
            "evaluationJobAlertConfig": {
                "email": "",
                "minAcceptableMeanAveragePrecision": ""
            },
            "exampleCount": 0,
            "exampleSamplePercentage": "",
            "humanAnnotationConfig": {
                "annotatedDatasetDescription": "",
                "annotatedDatasetDisplayName": "",
                "contributorEmails": [],
                "instruction": "",
                "labelGroup": "",
                "languageCode": "",
                "questionDuration": "",
                "replicaCount": 0,
                "userEmailAddress": ""
            },
            "imageClassificationConfig": {
                "allowMultiLabel": False,
                "annotationSpecSet": "",
                "answerAggregationType": ""
            },
            "inputConfig": {
                "annotationType": "",
                "bigquerySource": { "inputUri": "" },
                "classificationMetadata": { "isMultiLabel": False },
                "dataType": "",
                "gcsSource": {
                    "inputUri": "",
                    "mimeType": ""
                },
                "textMetadata": { "languageCode": "" }
            },
            "textClassificationConfig": {
                "allowMultiLabel": False,
                "annotationSpecSet": "",
                "sentimentConfig": { "enableLabelSentimentSelection": False }
            }
        },
        "labelMissingGroundTruth": False,
        "modelVersion": "",
        "name": "",
        "schedule": "",
        "state": ""
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/evaluationJobs"

payload <- "{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\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}}/v1beta1/:parent/evaluationJobs")

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  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\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/v1beta1/:parent/evaluationJobs') do |req|
  req.body = "{\n  \"job\": {\n    \"annotationSpecSet\": \"\",\n    \"attempts\": [\n      {\n        \"attemptTime\": \"\",\n        \"partialFailures\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ]\n      }\n    ],\n    \"createTime\": \"\",\n    \"description\": \"\",\n    \"evaluationJobConfig\": {\n      \"bigqueryImportKeys\": {},\n      \"boundingPolyConfig\": {\n        \"annotationSpecSet\": \"\",\n        \"instructionMessage\": \"\"\n      },\n      \"evaluationConfig\": {\n        \"boundingBoxEvaluationOptions\": {\n          \"iouThreshold\": \"\"\n        }\n      },\n      \"evaluationJobAlertConfig\": {\n        \"email\": \"\",\n        \"minAcceptableMeanAveragePrecision\": \"\"\n      },\n      \"exampleCount\": 0,\n      \"exampleSamplePercentage\": \"\",\n      \"humanAnnotationConfig\": {\n        \"annotatedDatasetDescription\": \"\",\n        \"annotatedDatasetDisplayName\": \"\",\n        \"contributorEmails\": [],\n        \"instruction\": \"\",\n        \"labelGroup\": \"\",\n        \"languageCode\": \"\",\n        \"questionDuration\": \"\",\n        \"replicaCount\": 0,\n        \"userEmailAddress\": \"\"\n      },\n      \"imageClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"answerAggregationType\": \"\"\n      },\n      \"inputConfig\": {\n        \"annotationType\": \"\",\n        \"bigquerySource\": {\n          \"inputUri\": \"\"\n        },\n        \"classificationMetadata\": {\n          \"isMultiLabel\": false\n        },\n        \"dataType\": \"\",\n        \"gcsSource\": {\n          \"inputUri\": \"\",\n          \"mimeType\": \"\"\n        },\n        \"textMetadata\": {\n          \"languageCode\": \"\"\n        }\n      },\n      \"textClassificationConfig\": {\n        \"allowMultiLabel\": false,\n        \"annotationSpecSet\": \"\",\n        \"sentimentConfig\": {\n          \"enableLabelSentimentSelection\": false\n        }\n      }\n    },\n    \"labelMissingGroundTruth\": false,\n    \"modelVersion\": \"\",\n    \"name\": \"\",\n    \"schedule\": \"\",\n    \"state\": \"\"\n  }\n}"
end

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

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

    let payload = json!({"job": json!({
            "annotationSpecSet": "",
            "attempts": (
                json!({
                    "attemptTime": "",
                    "partialFailures": (
                        json!({
                            "code": 0,
                            "details": (json!({})),
                            "message": ""
                        })
                    )
                })
            ),
            "createTime": "",
            "description": "",
            "evaluationJobConfig": json!({
                "bigqueryImportKeys": json!({}),
                "boundingPolyConfig": json!({
                    "annotationSpecSet": "",
                    "instructionMessage": ""
                }),
                "evaluationConfig": json!({"boundingBoxEvaluationOptions": json!({"iouThreshold": ""})}),
                "evaluationJobAlertConfig": json!({
                    "email": "",
                    "minAcceptableMeanAveragePrecision": ""
                }),
                "exampleCount": 0,
                "exampleSamplePercentage": "",
                "humanAnnotationConfig": json!({
                    "annotatedDatasetDescription": "",
                    "annotatedDatasetDisplayName": "",
                    "contributorEmails": (),
                    "instruction": "",
                    "labelGroup": "",
                    "languageCode": "",
                    "questionDuration": "",
                    "replicaCount": 0,
                    "userEmailAddress": ""
                }),
                "imageClassificationConfig": json!({
                    "allowMultiLabel": false,
                    "annotationSpecSet": "",
                    "answerAggregationType": ""
                }),
                "inputConfig": json!({
                    "annotationType": "",
                    "bigquerySource": json!({"inputUri": ""}),
                    "classificationMetadata": json!({"isMultiLabel": false}),
                    "dataType": "",
                    "gcsSource": json!({
                        "inputUri": "",
                        "mimeType": ""
                    }),
                    "textMetadata": json!({"languageCode": ""})
                }),
                "textClassificationConfig": json!({
                    "allowMultiLabel": false,
                    "annotationSpecSet": "",
                    "sentimentConfig": json!({"enableLabelSentimentSelection": false})
                })
            }),
            "labelMissingGroundTruth": false,
            "modelVersion": "",
            "name": "",
            "schedule": "",
            "state": ""
        })});

    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}}/v1beta1/:parent/evaluationJobs \
  --header 'content-type: application/json' \
  --data '{
  "job": {
    "annotationSpecSet": "",
    "attempts": [
      {
        "attemptTime": "",
        "partialFailures": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ]
      }
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": {
      "bigqueryImportKeys": {},
      "boundingPolyConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
      },
      "evaluationConfig": {
        "boundingBoxEvaluationOptions": {
          "iouThreshold": ""
        }
      },
      "evaluationJobAlertConfig": {
        "email": "",
        "minAcceptableMeanAveragePrecision": ""
      },
      "exampleCount": 0,
      "exampleSamplePercentage": "",
      "humanAnnotationConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
      },
      "imageClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "answerAggregationType": ""
      },
      "inputConfig": {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      },
      "textClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "sentimentConfig": {
          "enableLabelSentimentSelection": false
        }
      }
    },
    "labelMissingGroundTruth": false,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
  }
}'
echo '{
  "job": {
    "annotationSpecSet": "",
    "attempts": [
      {
        "attemptTime": "",
        "partialFailures": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ]
      }
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": {
      "bigqueryImportKeys": {},
      "boundingPolyConfig": {
        "annotationSpecSet": "",
        "instructionMessage": ""
      },
      "evaluationConfig": {
        "boundingBoxEvaluationOptions": {
          "iouThreshold": ""
        }
      },
      "evaluationJobAlertConfig": {
        "email": "",
        "minAcceptableMeanAveragePrecision": ""
      },
      "exampleCount": 0,
      "exampleSamplePercentage": "",
      "humanAnnotationConfig": {
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
      },
      "imageClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "answerAggregationType": ""
      },
      "inputConfig": {
        "annotationType": "",
        "bigquerySource": {
          "inputUri": ""
        },
        "classificationMetadata": {
          "isMultiLabel": false
        },
        "dataType": "",
        "gcsSource": {
          "inputUri": "",
          "mimeType": ""
        },
        "textMetadata": {
          "languageCode": ""
        }
      },
      "textClassificationConfig": {
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "sentimentConfig": {
          "enableLabelSentimentSelection": false
        }
      }
    },
    "labelMissingGroundTruth": false,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/evaluationJobs \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "job": {\n    "annotationSpecSet": "",\n    "attempts": [\n      {\n        "attemptTime": "",\n        "partialFailures": [\n          {\n            "code": 0,\n            "details": [\n              {}\n            ],\n            "message": ""\n          }\n        ]\n      }\n    ],\n    "createTime": "",\n    "description": "",\n    "evaluationJobConfig": {\n      "bigqueryImportKeys": {},\n      "boundingPolyConfig": {\n        "annotationSpecSet": "",\n        "instructionMessage": ""\n      },\n      "evaluationConfig": {\n        "boundingBoxEvaluationOptions": {\n          "iouThreshold": ""\n        }\n      },\n      "evaluationJobAlertConfig": {\n        "email": "",\n        "minAcceptableMeanAveragePrecision": ""\n      },\n      "exampleCount": 0,\n      "exampleSamplePercentage": "",\n      "humanAnnotationConfig": {\n        "annotatedDatasetDescription": "",\n        "annotatedDatasetDisplayName": "",\n        "contributorEmails": [],\n        "instruction": "",\n        "labelGroup": "",\n        "languageCode": "",\n        "questionDuration": "",\n        "replicaCount": 0,\n        "userEmailAddress": ""\n      },\n      "imageClassificationConfig": {\n        "allowMultiLabel": false,\n        "annotationSpecSet": "",\n        "answerAggregationType": ""\n      },\n      "inputConfig": {\n        "annotationType": "",\n        "bigquerySource": {\n          "inputUri": ""\n        },\n        "classificationMetadata": {\n          "isMultiLabel": false\n        },\n        "dataType": "",\n        "gcsSource": {\n          "inputUri": "",\n          "mimeType": ""\n        },\n        "textMetadata": {\n          "languageCode": ""\n        }\n      },\n      "textClassificationConfig": {\n        "allowMultiLabel": false,\n        "annotationSpecSet": "",\n        "sentimentConfig": {\n          "enableLabelSentimentSelection": false\n        }\n      }\n    },\n    "labelMissingGroundTruth": false,\n    "modelVersion": "",\n    "name": "",\n    "schedule": "",\n    "state": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/evaluationJobs
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["job": [
    "annotationSpecSet": "",
    "attempts": [
      [
        "attemptTime": "",
        "partialFailures": [
          [
            "code": 0,
            "details": [[]],
            "message": ""
          ]
        ]
      ]
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": [
      "bigqueryImportKeys": [],
      "boundingPolyConfig": [
        "annotationSpecSet": "",
        "instructionMessage": ""
      ],
      "evaluationConfig": ["boundingBoxEvaluationOptions": ["iouThreshold": ""]],
      "evaluationJobAlertConfig": [
        "email": "",
        "minAcceptableMeanAveragePrecision": ""
      ],
      "exampleCount": 0,
      "exampleSamplePercentage": "",
      "humanAnnotationConfig": [
        "annotatedDatasetDescription": "",
        "annotatedDatasetDisplayName": "",
        "contributorEmails": [],
        "instruction": "",
        "labelGroup": "",
        "languageCode": "",
        "questionDuration": "",
        "replicaCount": 0,
        "userEmailAddress": ""
      ],
      "imageClassificationConfig": [
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "answerAggregationType": ""
      ],
      "inputConfig": [
        "annotationType": "",
        "bigquerySource": ["inputUri": ""],
        "classificationMetadata": ["isMultiLabel": false],
        "dataType": "",
        "gcsSource": [
          "inputUri": "",
          "mimeType": ""
        ],
        "textMetadata": ["languageCode": ""]
      ],
      "textClassificationConfig": [
        "allowMultiLabel": false,
        "annotationSpecSet": "",
        "sentimentConfig": ["enableLabelSentimentSelection": false]
      ]
    ],
    "labelMissingGroundTruth": false,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/evaluationJobs")! 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 datalabeling.projects.evaluationJobs.list
{{baseUrl}}/v1beta1/:parent/evaluationJobs
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/evaluationJobs");

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

(client/get "{{baseUrl}}/v1beta1/:parent/evaluationJobs")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/evaluationJobs"

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}}/v1beta1/:parent/evaluationJobs"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/evaluationJobs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/evaluationJobs"

	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/v1beta1/:parent/evaluationJobs HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/evaluationJobs"))
    .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}}/v1beta1/:parent/evaluationJobs")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/evaluationJobs")
  .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}}/v1beta1/:parent/evaluationJobs');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta1/:parent/evaluationJobs'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/evaluationJobs';
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}}/v1beta1/:parent/evaluationJobs',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/evaluationJobs")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/evaluationJobs',
  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}}/v1beta1/:parent/evaluationJobs'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/evaluationJobs');

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}}/v1beta1/:parent/evaluationJobs'
};

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

const url = '{{baseUrl}}/v1beta1/:parent/evaluationJobs';
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}}/v1beta1/:parent/evaluationJobs"]
                                                       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}}/v1beta1/:parent/evaluationJobs" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/evaluationJobs",
  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}}/v1beta1/:parent/evaluationJobs');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/evaluationJobs');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/evaluationJobs")

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

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

url = "{{baseUrl}}/v1beta1/:parent/evaluationJobs"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/evaluationJobs"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/evaluationJobs")

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/v1beta1/:parent/evaluationJobs') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/evaluationJobs
http GET {{baseUrl}}/v1beta1/:parent/evaluationJobs
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/evaluationJobs
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/evaluationJobs")! 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()
PATCH datalabeling.projects.evaluationJobs.patch
{{baseUrl}}/v1beta1/:name
QUERY PARAMS

name
BODY json

{
  "annotationSpecSet": "",
  "attempts": [
    {
      "attemptTime": "",
      "partialFailures": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ]
    }
  ],
  "createTime": "",
  "description": "",
  "evaluationJobConfig": {
    "bigqueryImportKeys": {},
    "boundingPolyConfig": {
      "annotationSpecSet": "",
      "instructionMessage": ""
    },
    "evaluationConfig": {
      "boundingBoxEvaluationOptions": {
        "iouThreshold": ""
      }
    },
    "evaluationJobAlertConfig": {
      "email": "",
      "minAcceptableMeanAveragePrecision": ""
    },
    "exampleCount": 0,
    "exampleSamplePercentage": "",
    "humanAnnotationConfig": {
      "annotatedDatasetDescription": "",
      "annotatedDatasetDisplayName": "",
      "contributorEmails": [],
      "instruction": "",
      "labelGroup": "",
      "languageCode": "",
      "questionDuration": "",
      "replicaCount": 0,
      "userEmailAddress": ""
    },
    "imageClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "answerAggregationType": ""
    },
    "inputConfig": {
      "annotationType": "",
      "bigquerySource": {
        "inputUri": ""
      },
      "classificationMetadata": {
        "isMultiLabel": false
      },
      "dataType": "",
      "gcsSource": {
        "inputUri": "",
        "mimeType": ""
      },
      "textMetadata": {
        "languageCode": ""
      }
    },
    "textClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "sentimentConfig": {
        "enableLabelSentimentSelection": false
      }
    }
  },
  "labelMissingGroundTruth": false,
  "modelVersion": "",
  "name": "",
  "schedule": "",
  "state": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name");

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  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v1beta1/:name" {:content-type :json
                                                           :form-params {:annotationSpecSet ""
                                                                         :attempts [{:attemptTime ""
                                                                                     :partialFailures [{:code 0
                                                                                                        :details [{}]
                                                                                                        :message ""}]}]
                                                                         :createTime ""
                                                                         :description ""
                                                                         :evaluationJobConfig {:bigqueryImportKeys {}
                                                                                               :boundingPolyConfig {:annotationSpecSet ""
                                                                                                                    :instructionMessage ""}
                                                                                               :evaluationConfig {:boundingBoxEvaluationOptions {:iouThreshold ""}}
                                                                                               :evaluationJobAlertConfig {:email ""
                                                                                                                          :minAcceptableMeanAveragePrecision ""}
                                                                                               :exampleCount 0
                                                                                               :exampleSamplePercentage ""
                                                                                               :humanAnnotationConfig {:annotatedDatasetDescription ""
                                                                                                                       :annotatedDatasetDisplayName ""
                                                                                                                       :contributorEmails []
                                                                                                                       :instruction ""
                                                                                                                       :labelGroup ""
                                                                                                                       :languageCode ""
                                                                                                                       :questionDuration ""
                                                                                                                       :replicaCount 0
                                                                                                                       :userEmailAddress ""}
                                                                                               :imageClassificationConfig {:allowMultiLabel false
                                                                                                                           :annotationSpecSet ""
                                                                                                                           :answerAggregationType ""}
                                                                                               :inputConfig {:annotationType ""
                                                                                                             :bigquerySource {:inputUri ""}
                                                                                                             :classificationMetadata {:isMultiLabel false}
                                                                                                             :dataType ""
                                                                                                             :gcsSource {:inputUri ""
                                                                                                                         :mimeType ""}
                                                                                                             :textMetadata {:languageCode ""}}
                                                                                               :textClassificationConfig {:allowMultiLabel false
                                                                                                                          :annotationSpecSet ""
                                                                                                                          :sentimentConfig {:enableLabelSentimentSelection false}}}
                                                                         :labelMissingGroundTruth false
                                                                         :modelVersion ""
                                                                         :name ""
                                                                         :schedule ""
                                                                         :state ""}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v1beta1/:name"),
    Content = new StringContent("{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\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}}/v1beta1/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name"

	payload := strings.NewReader("{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", 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))

}
PATCH /baseUrl/v1beta1/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1794

{
  "annotationSpecSet": "",
  "attempts": [
    {
      "attemptTime": "",
      "partialFailures": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ]
    }
  ],
  "createTime": "",
  "description": "",
  "evaluationJobConfig": {
    "bigqueryImportKeys": {},
    "boundingPolyConfig": {
      "annotationSpecSet": "",
      "instructionMessage": ""
    },
    "evaluationConfig": {
      "boundingBoxEvaluationOptions": {
        "iouThreshold": ""
      }
    },
    "evaluationJobAlertConfig": {
      "email": "",
      "minAcceptableMeanAveragePrecision": ""
    },
    "exampleCount": 0,
    "exampleSamplePercentage": "",
    "humanAnnotationConfig": {
      "annotatedDatasetDescription": "",
      "annotatedDatasetDisplayName": "",
      "contributorEmails": [],
      "instruction": "",
      "labelGroup": "",
      "languageCode": "",
      "questionDuration": "",
      "replicaCount": 0,
      "userEmailAddress": ""
    },
    "imageClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "answerAggregationType": ""
    },
    "inputConfig": {
      "annotationType": "",
      "bigquerySource": {
        "inputUri": ""
      },
      "classificationMetadata": {
        "isMultiLabel": false
      },
      "dataType": "",
      "gcsSource": {
        "inputUri": "",
        "mimeType": ""
      },
      "textMetadata": {
        "languageCode": ""
      }
    },
    "textClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "sentimentConfig": {
        "enableLabelSentimentSelection": false
      }
    }
  },
  "labelMissingGroundTruth": false,
  "modelVersion": "",
  "name": "",
  "schedule": "",
  "state": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1beta1/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\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  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1beta1/:name")
  .header("content-type", "application/json")
  .body("{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  annotationSpecSet: '',
  attempts: [
    {
      attemptTime: '',
      partialFailures: [
        {
          code: 0,
          details: [
            {}
          ],
          message: ''
        }
      ]
    }
  ],
  createTime: '',
  description: '',
  evaluationJobConfig: {
    bigqueryImportKeys: {},
    boundingPolyConfig: {
      annotationSpecSet: '',
      instructionMessage: ''
    },
    evaluationConfig: {
      boundingBoxEvaluationOptions: {
        iouThreshold: ''
      }
    },
    evaluationJobAlertConfig: {
      email: '',
      minAcceptableMeanAveragePrecision: ''
    },
    exampleCount: 0,
    exampleSamplePercentage: '',
    humanAnnotationConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    imageClassificationConfig: {
      allowMultiLabel: false,
      annotationSpecSet: '',
      answerAggregationType: ''
    },
    inputConfig: {
      annotationType: '',
      bigquerySource: {
        inputUri: ''
      },
      classificationMetadata: {
        isMultiLabel: false
      },
      dataType: '',
      gcsSource: {
        inputUri: '',
        mimeType: ''
      },
      textMetadata: {
        languageCode: ''
      }
    },
    textClassificationConfig: {
      allowMultiLabel: false,
      annotationSpecSet: '',
      sentimentConfig: {
        enableLabelSentimentSelection: false
      }
    }
  },
  labelMissingGroundTruth: false,
  modelVersion: '',
  name: '',
  schedule: '',
  state: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v1beta1/:name');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    annotationSpecSet: '',
    attempts: [{attemptTime: '', partialFailures: [{code: 0, details: [{}], message: ''}]}],
    createTime: '',
    description: '',
    evaluationJobConfig: {
      bigqueryImportKeys: {},
      boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
      evaluationConfig: {boundingBoxEvaluationOptions: {iouThreshold: ''}},
      evaluationJobAlertConfig: {email: '', minAcceptableMeanAveragePrecision: ''},
      exampleCount: 0,
      exampleSamplePercentage: '',
      humanAnnotationConfig: {
        annotatedDatasetDescription: '',
        annotatedDatasetDisplayName: '',
        contributorEmails: [],
        instruction: '',
        labelGroup: '',
        languageCode: '',
        questionDuration: '',
        replicaCount: 0,
        userEmailAddress: ''
      },
      imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
      inputConfig: {
        annotationType: '',
        bigquerySource: {inputUri: ''},
        classificationMetadata: {isMultiLabel: false},
        dataType: '',
        gcsSource: {inputUri: '', mimeType: ''},
        textMetadata: {languageCode: ''}
      },
      textClassificationConfig: {
        allowMultiLabel: false,
        annotationSpecSet: '',
        sentimentConfig: {enableLabelSentimentSelection: false}
      }
    },
    labelMissingGroundTruth: false,
    modelVersion: '',
    name: '',
    schedule: '',
    state: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"annotationSpecSet":"","attempts":[{"attemptTime":"","partialFailures":[{"code":0,"details":[{}],"message":""}]}],"createTime":"","description":"","evaluationJobConfig":{"bigqueryImportKeys":{},"boundingPolyConfig":{"annotationSpecSet":"","instructionMessage":""},"evaluationConfig":{"boundingBoxEvaluationOptions":{"iouThreshold":""}},"evaluationJobAlertConfig":{"email":"","minAcceptableMeanAveragePrecision":""},"exampleCount":0,"exampleSamplePercentage":"","humanAnnotationConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"imageClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","answerAggregationType":""},"inputConfig":{"annotationType":"","bigquerySource":{"inputUri":""},"classificationMetadata":{"isMultiLabel":false},"dataType":"","gcsSource":{"inputUri":"","mimeType":""},"textMetadata":{"languageCode":""}},"textClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","sentimentConfig":{"enableLabelSentimentSelection":false}}},"labelMissingGroundTruth":false,"modelVersion":"","name":"","schedule":"","state":""}'
};

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}}/v1beta1/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "annotationSpecSet": "",\n  "attempts": [\n    {\n      "attemptTime": "",\n      "partialFailures": [\n        {\n          "code": 0,\n          "details": [\n            {}\n          ],\n          "message": ""\n        }\n      ]\n    }\n  ],\n  "createTime": "",\n  "description": "",\n  "evaluationJobConfig": {\n    "bigqueryImportKeys": {},\n    "boundingPolyConfig": {\n      "annotationSpecSet": "",\n      "instructionMessage": ""\n    },\n    "evaluationConfig": {\n      "boundingBoxEvaluationOptions": {\n        "iouThreshold": ""\n      }\n    },\n    "evaluationJobAlertConfig": {\n      "email": "",\n      "minAcceptableMeanAveragePrecision": ""\n    },\n    "exampleCount": 0,\n    "exampleSamplePercentage": "",\n    "humanAnnotationConfig": {\n      "annotatedDatasetDescription": "",\n      "annotatedDatasetDisplayName": "",\n      "contributorEmails": [],\n      "instruction": "",\n      "labelGroup": "",\n      "languageCode": "",\n      "questionDuration": "",\n      "replicaCount": 0,\n      "userEmailAddress": ""\n    },\n    "imageClassificationConfig": {\n      "allowMultiLabel": false,\n      "annotationSpecSet": "",\n      "answerAggregationType": ""\n    },\n    "inputConfig": {\n      "annotationType": "",\n      "bigquerySource": {\n        "inputUri": ""\n      },\n      "classificationMetadata": {\n        "isMultiLabel": false\n      },\n      "dataType": "",\n      "gcsSource": {\n        "inputUri": "",\n        "mimeType": ""\n      },\n      "textMetadata": {\n        "languageCode": ""\n      }\n    },\n    "textClassificationConfig": {\n      "allowMultiLabel": false,\n      "annotationSpecSet": "",\n      "sentimentConfig": {\n        "enableLabelSentimentSelection": false\n      }\n    }\n  },\n  "labelMissingGroundTruth": false,\n  "modelVersion": "",\n  "name": "",\n  "schedule": "",\n  "state": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:name',
  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({
  annotationSpecSet: '',
  attempts: [{attemptTime: '', partialFailures: [{code: 0, details: [{}], message: ''}]}],
  createTime: '',
  description: '',
  evaluationJobConfig: {
    bigqueryImportKeys: {},
    boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
    evaluationConfig: {boundingBoxEvaluationOptions: {iouThreshold: ''}},
    evaluationJobAlertConfig: {email: '', minAcceptableMeanAveragePrecision: ''},
    exampleCount: 0,
    exampleSamplePercentage: '',
    humanAnnotationConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
    inputConfig: {
      annotationType: '',
      bigquerySource: {inputUri: ''},
      classificationMetadata: {isMultiLabel: false},
      dataType: '',
      gcsSource: {inputUri: '', mimeType: ''},
      textMetadata: {languageCode: ''}
    },
    textClassificationConfig: {
      allowMultiLabel: false,
      annotationSpecSet: '',
      sentimentConfig: {enableLabelSentimentSelection: false}
    }
  },
  labelMissingGroundTruth: false,
  modelVersion: '',
  name: '',
  schedule: '',
  state: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta1/:name',
  headers: {'content-type': 'application/json'},
  body: {
    annotationSpecSet: '',
    attempts: [{attemptTime: '', partialFailures: [{code: 0, details: [{}], message: ''}]}],
    createTime: '',
    description: '',
    evaluationJobConfig: {
      bigqueryImportKeys: {},
      boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
      evaluationConfig: {boundingBoxEvaluationOptions: {iouThreshold: ''}},
      evaluationJobAlertConfig: {email: '', minAcceptableMeanAveragePrecision: ''},
      exampleCount: 0,
      exampleSamplePercentage: '',
      humanAnnotationConfig: {
        annotatedDatasetDescription: '',
        annotatedDatasetDisplayName: '',
        contributorEmails: [],
        instruction: '',
        labelGroup: '',
        languageCode: '',
        questionDuration: '',
        replicaCount: 0,
        userEmailAddress: ''
      },
      imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
      inputConfig: {
        annotationType: '',
        bigquerySource: {inputUri: ''},
        classificationMetadata: {isMultiLabel: false},
        dataType: '',
        gcsSource: {inputUri: '', mimeType: ''},
        textMetadata: {languageCode: ''}
      },
      textClassificationConfig: {
        allowMultiLabel: false,
        annotationSpecSet: '',
        sentimentConfig: {enableLabelSentimentSelection: false}
      }
    },
    labelMissingGroundTruth: false,
    modelVersion: '',
    name: '',
    schedule: '',
    state: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/v1beta1/:name');

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

req.type('json');
req.send({
  annotationSpecSet: '',
  attempts: [
    {
      attemptTime: '',
      partialFailures: [
        {
          code: 0,
          details: [
            {}
          ],
          message: ''
        }
      ]
    }
  ],
  createTime: '',
  description: '',
  evaluationJobConfig: {
    bigqueryImportKeys: {},
    boundingPolyConfig: {
      annotationSpecSet: '',
      instructionMessage: ''
    },
    evaluationConfig: {
      boundingBoxEvaluationOptions: {
        iouThreshold: ''
      }
    },
    evaluationJobAlertConfig: {
      email: '',
      minAcceptableMeanAveragePrecision: ''
    },
    exampleCount: 0,
    exampleSamplePercentage: '',
    humanAnnotationConfig: {
      annotatedDatasetDescription: '',
      annotatedDatasetDisplayName: '',
      contributorEmails: [],
      instruction: '',
      labelGroup: '',
      languageCode: '',
      questionDuration: '',
      replicaCount: 0,
      userEmailAddress: ''
    },
    imageClassificationConfig: {
      allowMultiLabel: false,
      annotationSpecSet: '',
      answerAggregationType: ''
    },
    inputConfig: {
      annotationType: '',
      bigquerySource: {
        inputUri: ''
      },
      classificationMetadata: {
        isMultiLabel: false
      },
      dataType: '',
      gcsSource: {
        inputUri: '',
        mimeType: ''
      },
      textMetadata: {
        languageCode: ''
      }
    },
    textClassificationConfig: {
      allowMultiLabel: false,
      annotationSpecSet: '',
      sentimentConfig: {
        enableLabelSentimentSelection: false
      }
    }
  },
  labelMissingGroundTruth: false,
  modelVersion: '',
  name: '',
  schedule: '',
  state: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    annotationSpecSet: '',
    attempts: [{attemptTime: '', partialFailures: [{code: 0, details: [{}], message: ''}]}],
    createTime: '',
    description: '',
    evaluationJobConfig: {
      bigqueryImportKeys: {},
      boundingPolyConfig: {annotationSpecSet: '', instructionMessage: ''},
      evaluationConfig: {boundingBoxEvaluationOptions: {iouThreshold: ''}},
      evaluationJobAlertConfig: {email: '', minAcceptableMeanAveragePrecision: ''},
      exampleCount: 0,
      exampleSamplePercentage: '',
      humanAnnotationConfig: {
        annotatedDatasetDescription: '',
        annotatedDatasetDisplayName: '',
        contributorEmails: [],
        instruction: '',
        labelGroup: '',
        languageCode: '',
        questionDuration: '',
        replicaCount: 0,
        userEmailAddress: ''
      },
      imageClassificationConfig: {allowMultiLabel: false, annotationSpecSet: '', answerAggregationType: ''},
      inputConfig: {
        annotationType: '',
        bigquerySource: {inputUri: ''},
        classificationMetadata: {isMultiLabel: false},
        dataType: '',
        gcsSource: {inputUri: '', mimeType: ''},
        textMetadata: {languageCode: ''}
      },
      textClassificationConfig: {
        allowMultiLabel: false,
        annotationSpecSet: '',
        sentimentConfig: {enableLabelSentimentSelection: false}
      }
    },
    labelMissingGroundTruth: false,
    modelVersion: '',
    name: '',
    schedule: '',
    state: ''
  }
};

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

const url = '{{baseUrl}}/v1beta1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"annotationSpecSet":"","attempts":[{"attemptTime":"","partialFailures":[{"code":0,"details":[{}],"message":""}]}],"createTime":"","description":"","evaluationJobConfig":{"bigqueryImportKeys":{},"boundingPolyConfig":{"annotationSpecSet":"","instructionMessage":""},"evaluationConfig":{"boundingBoxEvaluationOptions":{"iouThreshold":""}},"evaluationJobAlertConfig":{"email":"","minAcceptableMeanAveragePrecision":""},"exampleCount":0,"exampleSamplePercentage":"","humanAnnotationConfig":{"annotatedDatasetDescription":"","annotatedDatasetDisplayName":"","contributorEmails":[],"instruction":"","labelGroup":"","languageCode":"","questionDuration":"","replicaCount":0,"userEmailAddress":""},"imageClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","answerAggregationType":""},"inputConfig":{"annotationType":"","bigquerySource":{"inputUri":""},"classificationMetadata":{"isMultiLabel":false},"dataType":"","gcsSource":{"inputUri":"","mimeType":""},"textMetadata":{"languageCode":""}},"textClassificationConfig":{"allowMultiLabel":false,"annotationSpecSet":"","sentimentConfig":{"enableLabelSentimentSelection":false}}},"labelMissingGroundTruth":false,"modelVersion":"","name":"","schedule":"","state":""}'
};

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 = @{ @"annotationSpecSet": @"",
                              @"attempts": @[ @{ @"attemptTime": @"", @"partialFailures": @[ @{ @"code": @0, @"details": @[ @{  } ], @"message": @"" } ] } ],
                              @"createTime": @"",
                              @"description": @"",
                              @"evaluationJobConfig": @{ @"bigqueryImportKeys": @{  }, @"boundingPolyConfig": @{ @"annotationSpecSet": @"", @"instructionMessage": @"" }, @"evaluationConfig": @{ @"boundingBoxEvaluationOptions": @{ @"iouThreshold": @"" } }, @"evaluationJobAlertConfig": @{ @"email": @"", @"minAcceptableMeanAveragePrecision": @"" }, @"exampleCount": @0, @"exampleSamplePercentage": @"", @"humanAnnotationConfig": @{ @"annotatedDatasetDescription": @"", @"annotatedDatasetDisplayName": @"", @"contributorEmails": @[  ], @"instruction": @"", @"labelGroup": @"", @"languageCode": @"", @"questionDuration": @"", @"replicaCount": @0, @"userEmailAddress": @"" }, @"imageClassificationConfig": @{ @"allowMultiLabel": @NO, @"annotationSpecSet": @"", @"answerAggregationType": @"" }, @"inputConfig": @{ @"annotationType": @"", @"bigquerySource": @{ @"inputUri": @"" }, @"classificationMetadata": @{ @"isMultiLabel": @NO }, @"dataType": @"", @"gcsSource": @{ @"inputUri": @"", @"mimeType": @"" }, @"textMetadata": @{ @"languageCode": @"" } }, @"textClassificationConfig": @{ @"allowMultiLabel": @NO, @"annotationSpecSet": @"", @"sentimentConfig": @{ @"enableLabelSentimentSelection": @NO } } },
                              @"labelMissingGroundTruth": @NO,
                              @"modelVersion": @"",
                              @"name": @"",
                              @"schedule": @"",
                              @"state": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/v1beta1/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'annotationSpecSet' => '',
    'attempts' => [
        [
                'attemptTime' => '',
                'partialFailures' => [
                                [
                                                                'code' => 0,
                                                                'details' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'message' => ''
                                ]
                ]
        ]
    ],
    'createTime' => '',
    'description' => '',
    'evaluationJobConfig' => [
        'bigqueryImportKeys' => [
                
        ],
        'boundingPolyConfig' => [
                'annotationSpecSet' => '',
                'instructionMessage' => ''
        ],
        'evaluationConfig' => [
                'boundingBoxEvaluationOptions' => [
                                'iouThreshold' => ''
                ]
        ],
        'evaluationJobAlertConfig' => [
                'email' => '',
                'minAcceptableMeanAveragePrecision' => ''
        ],
        'exampleCount' => 0,
        'exampleSamplePercentage' => '',
        'humanAnnotationConfig' => [
                'annotatedDatasetDescription' => '',
                'annotatedDatasetDisplayName' => '',
                'contributorEmails' => [
                                
                ],
                'instruction' => '',
                'labelGroup' => '',
                'languageCode' => '',
                'questionDuration' => '',
                'replicaCount' => 0,
                'userEmailAddress' => ''
        ],
        'imageClassificationConfig' => [
                'allowMultiLabel' => null,
                'annotationSpecSet' => '',
                'answerAggregationType' => ''
        ],
        'inputConfig' => [
                'annotationType' => '',
                'bigquerySource' => [
                                'inputUri' => ''
                ],
                'classificationMetadata' => [
                                'isMultiLabel' => null
                ],
                'dataType' => '',
                'gcsSource' => [
                                'inputUri' => '',
                                'mimeType' => ''
                ],
                'textMetadata' => [
                                'languageCode' => ''
                ]
        ],
        'textClassificationConfig' => [
                'allowMultiLabel' => null,
                'annotationSpecSet' => '',
                'sentimentConfig' => [
                                'enableLabelSentimentSelection' => null
                ]
        ]
    ],
    'labelMissingGroundTruth' => null,
    'modelVersion' => '',
    'name' => '',
    'schedule' => '',
    'state' => ''
  ]),
  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('PATCH', '{{baseUrl}}/v1beta1/:name', [
  'body' => '{
  "annotationSpecSet": "",
  "attempts": [
    {
      "attemptTime": "",
      "partialFailures": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ]
    }
  ],
  "createTime": "",
  "description": "",
  "evaluationJobConfig": {
    "bigqueryImportKeys": {},
    "boundingPolyConfig": {
      "annotationSpecSet": "",
      "instructionMessage": ""
    },
    "evaluationConfig": {
      "boundingBoxEvaluationOptions": {
        "iouThreshold": ""
      }
    },
    "evaluationJobAlertConfig": {
      "email": "",
      "minAcceptableMeanAveragePrecision": ""
    },
    "exampleCount": 0,
    "exampleSamplePercentage": "",
    "humanAnnotationConfig": {
      "annotatedDatasetDescription": "",
      "annotatedDatasetDisplayName": "",
      "contributorEmails": [],
      "instruction": "",
      "labelGroup": "",
      "languageCode": "",
      "questionDuration": "",
      "replicaCount": 0,
      "userEmailAddress": ""
    },
    "imageClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "answerAggregationType": ""
    },
    "inputConfig": {
      "annotationType": "",
      "bigquerySource": {
        "inputUri": ""
      },
      "classificationMetadata": {
        "isMultiLabel": false
      },
      "dataType": "",
      "gcsSource": {
        "inputUri": "",
        "mimeType": ""
      },
      "textMetadata": {
        "languageCode": ""
      }
    },
    "textClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "sentimentConfig": {
        "enableLabelSentimentSelection": false
      }
    }
  },
  "labelMissingGroundTruth": false,
  "modelVersion": "",
  "name": "",
  "schedule": "",
  "state": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'annotationSpecSet' => '',
  'attempts' => [
    [
        'attemptTime' => '',
        'partialFailures' => [
                [
                                'code' => 0,
                                'details' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'message' => ''
                ]
        ]
    ]
  ],
  'createTime' => '',
  'description' => '',
  'evaluationJobConfig' => [
    'bigqueryImportKeys' => [
        
    ],
    'boundingPolyConfig' => [
        'annotationSpecSet' => '',
        'instructionMessage' => ''
    ],
    'evaluationConfig' => [
        'boundingBoxEvaluationOptions' => [
                'iouThreshold' => ''
        ]
    ],
    'evaluationJobAlertConfig' => [
        'email' => '',
        'minAcceptableMeanAveragePrecision' => ''
    ],
    'exampleCount' => 0,
    'exampleSamplePercentage' => '',
    'humanAnnotationConfig' => [
        'annotatedDatasetDescription' => '',
        'annotatedDatasetDisplayName' => '',
        'contributorEmails' => [
                
        ],
        'instruction' => '',
        'labelGroup' => '',
        'languageCode' => '',
        'questionDuration' => '',
        'replicaCount' => 0,
        'userEmailAddress' => ''
    ],
    'imageClassificationConfig' => [
        'allowMultiLabel' => null,
        'annotationSpecSet' => '',
        'answerAggregationType' => ''
    ],
    'inputConfig' => [
        'annotationType' => '',
        'bigquerySource' => [
                'inputUri' => ''
        ],
        'classificationMetadata' => [
                'isMultiLabel' => null
        ],
        'dataType' => '',
        'gcsSource' => [
                'inputUri' => '',
                'mimeType' => ''
        ],
        'textMetadata' => [
                'languageCode' => ''
        ]
    ],
    'textClassificationConfig' => [
        'allowMultiLabel' => null,
        'annotationSpecSet' => '',
        'sentimentConfig' => [
                'enableLabelSentimentSelection' => null
        ]
    ]
  ],
  'labelMissingGroundTruth' => null,
  'modelVersion' => '',
  'name' => '',
  'schedule' => '',
  'state' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'annotationSpecSet' => '',
  'attempts' => [
    [
        'attemptTime' => '',
        'partialFailures' => [
                [
                                'code' => 0,
                                'details' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'message' => ''
                ]
        ]
    ]
  ],
  'createTime' => '',
  'description' => '',
  'evaluationJobConfig' => [
    'bigqueryImportKeys' => [
        
    ],
    'boundingPolyConfig' => [
        'annotationSpecSet' => '',
        'instructionMessage' => ''
    ],
    'evaluationConfig' => [
        'boundingBoxEvaluationOptions' => [
                'iouThreshold' => ''
        ]
    ],
    'evaluationJobAlertConfig' => [
        'email' => '',
        'minAcceptableMeanAveragePrecision' => ''
    ],
    'exampleCount' => 0,
    'exampleSamplePercentage' => '',
    'humanAnnotationConfig' => [
        'annotatedDatasetDescription' => '',
        'annotatedDatasetDisplayName' => '',
        'contributorEmails' => [
                
        ],
        'instruction' => '',
        'labelGroup' => '',
        'languageCode' => '',
        'questionDuration' => '',
        'replicaCount' => 0,
        'userEmailAddress' => ''
    ],
    'imageClassificationConfig' => [
        'allowMultiLabel' => null,
        'annotationSpecSet' => '',
        'answerAggregationType' => ''
    ],
    'inputConfig' => [
        'annotationType' => '',
        'bigquerySource' => [
                'inputUri' => ''
        ],
        'classificationMetadata' => [
                'isMultiLabel' => null
        ],
        'dataType' => '',
        'gcsSource' => [
                'inputUri' => '',
                'mimeType' => ''
        ],
        'textMetadata' => [
                'languageCode' => ''
        ]
    ],
    'textClassificationConfig' => [
        'allowMultiLabel' => null,
        'annotationSpecSet' => '',
        'sentimentConfig' => [
                'enableLabelSentimentSelection' => null
        ]
    ]
  ],
  'labelMissingGroundTruth' => null,
  'modelVersion' => '',
  'name' => '',
  'schedule' => '',
  'state' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:name');
$request->setRequestMethod('PATCH');
$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}}/v1beta1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "annotationSpecSet": "",
  "attempts": [
    {
      "attemptTime": "",
      "partialFailures": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ]
    }
  ],
  "createTime": "",
  "description": "",
  "evaluationJobConfig": {
    "bigqueryImportKeys": {},
    "boundingPolyConfig": {
      "annotationSpecSet": "",
      "instructionMessage": ""
    },
    "evaluationConfig": {
      "boundingBoxEvaluationOptions": {
        "iouThreshold": ""
      }
    },
    "evaluationJobAlertConfig": {
      "email": "",
      "minAcceptableMeanAveragePrecision": ""
    },
    "exampleCount": 0,
    "exampleSamplePercentage": "",
    "humanAnnotationConfig": {
      "annotatedDatasetDescription": "",
      "annotatedDatasetDisplayName": "",
      "contributorEmails": [],
      "instruction": "",
      "labelGroup": "",
      "languageCode": "",
      "questionDuration": "",
      "replicaCount": 0,
      "userEmailAddress": ""
    },
    "imageClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "answerAggregationType": ""
    },
    "inputConfig": {
      "annotationType": "",
      "bigquerySource": {
        "inputUri": ""
      },
      "classificationMetadata": {
        "isMultiLabel": false
      },
      "dataType": "",
      "gcsSource": {
        "inputUri": "",
        "mimeType": ""
      },
      "textMetadata": {
        "languageCode": ""
      }
    },
    "textClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "sentimentConfig": {
        "enableLabelSentimentSelection": false
      }
    }
  },
  "labelMissingGroundTruth": false,
  "modelVersion": "",
  "name": "",
  "schedule": "",
  "state": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "annotationSpecSet": "",
  "attempts": [
    {
      "attemptTime": "",
      "partialFailures": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ]
    }
  ],
  "createTime": "",
  "description": "",
  "evaluationJobConfig": {
    "bigqueryImportKeys": {},
    "boundingPolyConfig": {
      "annotationSpecSet": "",
      "instructionMessage": ""
    },
    "evaluationConfig": {
      "boundingBoxEvaluationOptions": {
        "iouThreshold": ""
      }
    },
    "evaluationJobAlertConfig": {
      "email": "",
      "minAcceptableMeanAveragePrecision": ""
    },
    "exampleCount": 0,
    "exampleSamplePercentage": "",
    "humanAnnotationConfig": {
      "annotatedDatasetDescription": "",
      "annotatedDatasetDisplayName": "",
      "contributorEmails": [],
      "instruction": "",
      "labelGroup": "",
      "languageCode": "",
      "questionDuration": "",
      "replicaCount": 0,
      "userEmailAddress": ""
    },
    "imageClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "answerAggregationType": ""
    },
    "inputConfig": {
      "annotationType": "",
      "bigquerySource": {
        "inputUri": ""
      },
      "classificationMetadata": {
        "isMultiLabel": false
      },
      "dataType": "",
      "gcsSource": {
        "inputUri": "",
        "mimeType": ""
      },
      "textMetadata": {
        "languageCode": ""
      }
    },
    "textClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "sentimentConfig": {
        "enableLabelSentimentSelection": false
      }
    }
  },
  "labelMissingGroundTruth": false,
  "modelVersion": "",
  "name": "",
  "schedule": "",
  "state": ""
}'
import http.client

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

payload = "{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v1beta1/:name", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:name"

payload = {
    "annotationSpecSet": "",
    "attempts": [
        {
            "attemptTime": "",
            "partialFailures": [
                {
                    "code": 0,
                    "details": [{}],
                    "message": ""
                }
            ]
        }
    ],
    "createTime": "",
    "description": "",
    "evaluationJobConfig": {
        "bigqueryImportKeys": {},
        "boundingPolyConfig": {
            "annotationSpecSet": "",
            "instructionMessage": ""
        },
        "evaluationConfig": { "boundingBoxEvaluationOptions": { "iouThreshold": "" } },
        "evaluationJobAlertConfig": {
            "email": "",
            "minAcceptableMeanAveragePrecision": ""
        },
        "exampleCount": 0,
        "exampleSamplePercentage": "",
        "humanAnnotationConfig": {
            "annotatedDatasetDescription": "",
            "annotatedDatasetDisplayName": "",
            "contributorEmails": [],
            "instruction": "",
            "labelGroup": "",
            "languageCode": "",
            "questionDuration": "",
            "replicaCount": 0,
            "userEmailAddress": ""
        },
        "imageClassificationConfig": {
            "allowMultiLabel": False,
            "annotationSpecSet": "",
            "answerAggregationType": ""
        },
        "inputConfig": {
            "annotationType": "",
            "bigquerySource": { "inputUri": "" },
            "classificationMetadata": { "isMultiLabel": False },
            "dataType": "",
            "gcsSource": {
                "inputUri": "",
                "mimeType": ""
            },
            "textMetadata": { "languageCode": "" }
        },
        "textClassificationConfig": {
            "allowMultiLabel": False,
            "annotationSpecSet": "",
            "sentimentConfig": { "enableLabelSentimentSelection": False }
        }
    },
    "labelMissingGroundTruth": False,
    "modelVersion": "",
    "name": "",
    "schedule": "",
    "state": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:name"

payload <- "{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta1/:name")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\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.patch('/baseUrl/v1beta1/:name') do |req|
  req.body = "{\n  \"annotationSpecSet\": \"\",\n  \"attempts\": [\n    {\n      \"attemptTime\": \"\",\n      \"partialFailures\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ]\n    }\n  ],\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"evaluationJobConfig\": {\n    \"bigqueryImportKeys\": {},\n    \"boundingPolyConfig\": {\n      \"annotationSpecSet\": \"\",\n      \"instructionMessage\": \"\"\n    },\n    \"evaluationConfig\": {\n      \"boundingBoxEvaluationOptions\": {\n        \"iouThreshold\": \"\"\n      }\n    },\n    \"evaluationJobAlertConfig\": {\n      \"email\": \"\",\n      \"minAcceptableMeanAveragePrecision\": \"\"\n    },\n    \"exampleCount\": 0,\n    \"exampleSamplePercentage\": \"\",\n    \"humanAnnotationConfig\": {\n      \"annotatedDatasetDescription\": \"\",\n      \"annotatedDatasetDisplayName\": \"\",\n      \"contributorEmails\": [],\n      \"instruction\": \"\",\n      \"labelGroup\": \"\",\n      \"languageCode\": \"\",\n      \"questionDuration\": \"\",\n      \"replicaCount\": 0,\n      \"userEmailAddress\": \"\"\n    },\n    \"imageClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"answerAggregationType\": \"\"\n    },\n    \"inputConfig\": {\n      \"annotationType\": \"\",\n      \"bigquerySource\": {\n        \"inputUri\": \"\"\n      },\n      \"classificationMetadata\": {\n        \"isMultiLabel\": false\n      },\n      \"dataType\": \"\",\n      \"gcsSource\": {\n        \"inputUri\": \"\",\n        \"mimeType\": \"\"\n      },\n      \"textMetadata\": {\n        \"languageCode\": \"\"\n      }\n    },\n    \"textClassificationConfig\": {\n      \"allowMultiLabel\": false,\n      \"annotationSpecSet\": \"\",\n      \"sentimentConfig\": {\n        \"enableLabelSentimentSelection\": false\n      }\n    }\n  },\n  \"labelMissingGroundTruth\": false,\n  \"modelVersion\": \"\",\n  \"name\": \"\",\n  \"schedule\": \"\",\n  \"state\": \"\"\n}"
end

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

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

    let payload = json!({
        "annotationSpecSet": "",
        "attempts": (
            json!({
                "attemptTime": "",
                "partialFailures": (
                    json!({
                        "code": 0,
                        "details": (json!({})),
                        "message": ""
                    })
                )
            })
        ),
        "createTime": "",
        "description": "",
        "evaluationJobConfig": json!({
            "bigqueryImportKeys": json!({}),
            "boundingPolyConfig": json!({
                "annotationSpecSet": "",
                "instructionMessage": ""
            }),
            "evaluationConfig": json!({"boundingBoxEvaluationOptions": json!({"iouThreshold": ""})}),
            "evaluationJobAlertConfig": json!({
                "email": "",
                "minAcceptableMeanAveragePrecision": ""
            }),
            "exampleCount": 0,
            "exampleSamplePercentage": "",
            "humanAnnotationConfig": json!({
                "annotatedDatasetDescription": "",
                "annotatedDatasetDisplayName": "",
                "contributorEmails": (),
                "instruction": "",
                "labelGroup": "",
                "languageCode": "",
                "questionDuration": "",
                "replicaCount": 0,
                "userEmailAddress": ""
            }),
            "imageClassificationConfig": json!({
                "allowMultiLabel": false,
                "annotationSpecSet": "",
                "answerAggregationType": ""
            }),
            "inputConfig": json!({
                "annotationType": "",
                "bigquerySource": json!({"inputUri": ""}),
                "classificationMetadata": json!({"isMultiLabel": false}),
                "dataType": "",
                "gcsSource": json!({
                    "inputUri": "",
                    "mimeType": ""
                }),
                "textMetadata": json!({"languageCode": ""})
            }),
            "textClassificationConfig": json!({
                "allowMultiLabel": false,
                "annotationSpecSet": "",
                "sentimentConfig": json!({"enableLabelSentimentSelection": false})
            })
        }),
        "labelMissingGroundTruth": false,
        "modelVersion": "",
        "name": "",
        "schedule": "",
        "state": ""
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v1beta1/:name \
  --header 'content-type: application/json' \
  --data '{
  "annotationSpecSet": "",
  "attempts": [
    {
      "attemptTime": "",
      "partialFailures": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ]
    }
  ],
  "createTime": "",
  "description": "",
  "evaluationJobConfig": {
    "bigqueryImportKeys": {},
    "boundingPolyConfig": {
      "annotationSpecSet": "",
      "instructionMessage": ""
    },
    "evaluationConfig": {
      "boundingBoxEvaluationOptions": {
        "iouThreshold": ""
      }
    },
    "evaluationJobAlertConfig": {
      "email": "",
      "minAcceptableMeanAveragePrecision": ""
    },
    "exampleCount": 0,
    "exampleSamplePercentage": "",
    "humanAnnotationConfig": {
      "annotatedDatasetDescription": "",
      "annotatedDatasetDisplayName": "",
      "contributorEmails": [],
      "instruction": "",
      "labelGroup": "",
      "languageCode": "",
      "questionDuration": "",
      "replicaCount": 0,
      "userEmailAddress": ""
    },
    "imageClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "answerAggregationType": ""
    },
    "inputConfig": {
      "annotationType": "",
      "bigquerySource": {
        "inputUri": ""
      },
      "classificationMetadata": {
        "isMultiLabel": false
      },
      "dataType": "",
      "gcsSource": {
        "inputUri": "",
        "mimeType": ""
      },
      "textMetadata": {
        "languageCode": ""
      }
    },
    "textClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "sentimentConfig": {
        "enableLabelSentimentSelection": false
      }
    }
  },
  "labelMissingGroundTruth": false,
  "modelVersion": "",
  "name": "",
  "schedule": "",
  "state": ""
}'
echo '{
  "annotationSpecSet": "",
  "attempts": [
    {
      "attemptTime": "",
      "partialFailures": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ]
    }
  ],
  "createTime": "",
  "description": "",
  "evaluationJobConfig": {
    "bigqueryImportKeys": {},
    "boundingPolyConfig": {
      "annotationSpecSet": "",
      "instructionMessage": ""
    },
    "evaluationConfig": {
      "boundingBoxEvaluationOptions": {
        "iouThreshold": ""
      }
    },
    "evaluationJobAlertConfig": {
      "email": "",
      "minAcceptableMeanAveragePrecision": ""
    },
    "exampleCount": 0,
    "exampleSamplePercentage": "",
    "humanAnnotationConfig": {
      "annotatedDatasetDescription": "",
      "annotatedDatasetDisplayName": "",
      "contributorEmails": [],
      "instruction": "",
      "labelGroup": "",
      "languageCode": "",
      "questionDuration": "",
      "replicaCount": 0,
      "userEmailAddress": ""
    },
    "imageClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "answerAggregationType": ""
    },
    "inputConfig": {
      "annotationType": "",
      "bigquerySource": {
        "inputUri": ""
      },
      "classificationMetadata": {
        "isMultiLabel": false
      },
      "dataType": "",
      "gcsSource": {
        "inputUri": "",
        "mimeType": ""
      },
      "textMetadata": {
        "languageCode": ""
      }
    },
    "textClassificationConfig": {
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "sentimentConfig": {
        "enableLabelSentimentSelection": false
      }
    }
  },
  "labelMissingGroundTruth": false,
  "modelVersion": "",
  "name": "",
  "schedule": "",
  "state": ""
}' |  \
  http PATCH {{baseUrl}}/v1beta1/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "annotationSpecSet": "",\n  "attempts": [\n    {\n      "attemptTime": "",\n      "partialFailures": [\n        {\n          "code": 0,\n          "details": [\n            {}\n          ],\n          "message": ""\n        }\n      ]\n    }\n  ],\n  "createTime": "",\n  "description": "",\n  "evaluationJobConfig": {\n    "bigqueryImportKeys": {},\n    "boundingPolyConfig": {\n      "annotationSpecSet": "",\n      "instructionMessage": ""\n    },\n    "evaluationConfig": {\n      "boundingBoxEvaluationOptions": {\n        "iouThreshold": ""\n      }\n    },\n    "evaluationJobAlertConfig": {\n      "email": "",\n      "minAcceptableMeanAveragePrecision": ""\n    },\n    "exampleCount": 0,\n    "exampleSamplePercentage": "",\n    "humanAnnotationConfig": {\n      "annotatedDatasetDescription": "",\n      "annotatedDatasetDisplayName": "",\n      "contributorEmails": [],\n      "instruction": "",\n      "labelGroup": "",\n      "languageCode": "",\n      "questionDuration": "",\n      "replicaCount": 0,\n      "userEmailAddress": ""\n    },\n    "imageClassificationConfig": {\n      "allowMultiLabel": false,\n      "annotationSpecSet": "",\n      "answerAggregationType": ""\n    },\n    "inputConfig": {\n      "annotationType": "",\n      "bigquerySource": {\n        "inputUri": ""\n      },\n      "classificationMetadata": {\n        "isMultiLabel": false\n      },\n      "dataType": "",\n      "gcsSource": {\n        "inputUri": "",\n        "mimeType": ""\n      },\n      "textMetadata": {\n        "languageCode": ""\n      }\n    },\n    "textClassificationConfig": {\n      "allowMultiLabel": false,\n      "annotationSpecSet": "",\n      "sentimentConfig": {\n        "enableLabelSentimentSelection": false\n      }\n    }\n  },\n  "labelMissingGroundTruth": false,\n  "modelVersion": "",\n  "name": "",\n  "schedule": "",\n  "state": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "annotationSpecSet": "",
  "attempts": [
    [
      "attemptTime": "",
      "partialFailures": [
        [
          "code": 0,
          "details": [[]],
          "message": ""
        ]
      ]
    ]
  ],
  "createTime": "",
  "description": "",
  "evaluationJobConfig": [
    "bigqueryImportKeys": [],
    "boundingPolyConfig": [
      "annotationSpecSet": "",
      "instructionMessage": ""
    ],
    "evaluationConfig": ["boundingBoxEvaluationOptions": ["iouThreshold": ""]],
    "evaluationJobAlertConfig": [
      "email": "",
      "minAcceptableMeanAveragePrecision": ""
    ],
    "exampleCount": 0,
    "exampleSamplePercentage": "",
    "humanAnnotationConfig": [
      "annotatedDatasetDescription": "",
      "annotatedDatasetDisplayName": "",
      "contributorEmails": [],
      "instruction": "",
      "labelGroup": "",
      "languageCode": "",
      "questionDuration": "",
      "replicaCount": 0,
      "userEmailAddress": ""
    ],
    "imageClassificationConfig": [
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "answerAggregationType": ""
    ],
    "inputConfig": [
      "annotationType": "",
      "bigquerySource": ["inputUri": ""],
      "classificationMetadata": ["isMultiLabel": false],
      "dataType": "",
      "gcsSource": [
        "inputUri": "",
        "mimeType": ""
      ],
      "textMetadata": ["languageCode": ""]
    ],
    "textClassificationConfig": [
      "allowMultiLabel": false,
      "annotationSpecSet": "",
      "sentimentConfig": ["enableLabelSentimentSelection": false]
    ]
  ],
  "labelMissingGroundTruth": false,
  "modelVersion": "",
  "name": "",
  "schedule": "",
  "state": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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 datalabeling.projects.evaluationJobs.pause
{{baseUrl}}/v1beta1/:name:pause
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name:pause");

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}}/v1beta1/:name:pause" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v1beta1/:name:pause"
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}}/v1beta1/:name:pause"),
    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}}/v1beta1/:name:pause");
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}}/v1beta1/:name:pause"

	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/v1beta1/:name:pause HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:name:pause")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name:pause"))
    .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}}/v1beta1/:name:pause")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:name:pause")
  .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}}/v1beta1/:name:pause');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:name:pause',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name:pause';
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}}/v1beta1/:name:pause',
  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}}/v1beta1/:name:pause")
  .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/v1beta1/:name:pause',
  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}}/v1beta1/:name:pause',
  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}}/v1beta1/:name:pause');

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}}/v1beta1/:name:pause',
  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}}/v1beta1/:name:pause';
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}}/v1beta1/:name:pause"]
                                                       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}}/v1beta1/:name:pause" 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}}/v1beta1/:name:pause",
  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}}/v1beta1/:name:pause', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name:pause');
$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}}/v1beta1/:name:pause');
$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}}/v1beta1/:name:pause' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name:pause' -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/v1beta1/:name:pause", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:name:pause"

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

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

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

url <- "{{baseUrl}}/v1beta1/:name:pause"

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}}/v1beta1/:name:pause")

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/v1beta1/:name:pause') 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}}/v1beta1/:name:pause";

    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}}/v1beta1/:name:pause \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1beta1/:name:pause \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:name:pause
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}}/v1beta1/:name:pause")! 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 datalabeling.projects.evaluationJobs.resume
{{baseUrl}}/v1beta1/:name:resume
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name:resume");

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}}/v1beta1/:name:resume" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v1beta1/:name:resume"
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}}/v1beta1/:name:resume"),
    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}}/v1beta1/:name:resume");
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}}/v1beta1/:name:resume"

	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/v1beta1/:name:resume HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:name:resume")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name:resume"))
    .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}}/v1beta1/:name:resume")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:name:resume")
  .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}}/v1beta1/:name:resume');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:name:resume',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name:resume';
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}}/v1beta1/:name:resume',
  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}}/v1beta1/:name:resume")
  .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/v1beta1/:name:resume',
  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}}/v1beta1/:name:resume',
  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}}/v1beta1/:name:resume');

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}}/v1beta1/:name:resume',
  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}}/v1beta1/:name:resume';
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}}/v1beta1/:name:resume"]
                                                       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}}/v1beta1/:name:resume" 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}}/v1beta1/:name:resume",
  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}}/v1beta1/:name:resume', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name:resume');
$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}}/v1beta1/:name:resume');
$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}}/v1beta1/:name:resume' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name:resume' -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/v1beta1/:name:resume", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:name:resume"

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

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

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

url <- "{{baseUrl}}/v1beta1/:name:resume"

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}}/v1beta1/:name:resume")

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/v1beta1/:name:resume') 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}}/v1beta1/:name:resume";

    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}}/v1beta1/:name:resume \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1beta1/:name:resume \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:name:resume
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}}/v1beta1/:name:resume")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/evaluations:search");

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

(client/get "{{baseUrl}}/v1beta1/:parent/evaluations:search")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/evaluations:search"

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}}/v1beta1/:parent/evaluations:search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/evaluations:search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/evaluations:search"

	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/v1beta1/:parent/evaluations:search HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1beta1/:parent/evaluations:search")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/evaluations:search"))
    .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}}/v1beta1/:parent/evaluations:search")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/evaluations:search")
  .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}}/v1beta1/:parent/evaluations:search');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta1/:parent/evaluations:search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/evaluations:search';
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}}/v1beta1/:parent/evaluations:search',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/evaluations:search")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/evaluations:search',
  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}}/v1beta1/:parent/evaluations:search'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/evaluations:search');

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}}/v1beta1/:parent/evaluations:search'
};

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

const url = '{{baseUrl}}/v1beta1/:parent/evaluations:search';
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}}/v1beta1/:parent/evaluations:search"]
                                                       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}}/v1beta1/:parent/evaluations:search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/evaluations:search",
  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}}/v1beta1/:parent/evaluations:search');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/evaluations:search');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:parent/evaluations:search');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:parent/evaluations:search' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/evaluations:search' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v1beta1/:parent/evaluations:search")

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

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

url = "{{baseUrl}}/v1beta1/:parent/evaluations:search"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/evaluations:search"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/evaluations:search")

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/v1beta1/:parent/evaluations:search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1beta1/:parent/evaluations:search";

    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}}/v1beta1/:parent/evaluations:search
http GET {{baseUrl}}/v1beta1/:parent/evaluations:search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/evaluations:search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/evaluations:search")! 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 datalabeling.projects.instructions.create
{{baseUrl}}/v1beta1/:parent/instructions
QUERY PARAMS

parent
BODY json

{
  "instruction": {
    "blockingResources": [],
    "createTime": "",
    "csvInstruction": {
      "gcsFileUri": ""
    },
    "dataType": "",
    "description": "",
    "displayName": "",
    "name": "",
    "pdfInstruction": {
      "gcsFileUri": ""
    },
    "updateTime": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/instructions");

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  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/instructions" {:content-type :json
                                                                         :form-params {:instruction {:blockingResources []
                                                                                                     :createTime ""
                                                                                                     :csvInstruction {:gcsFileUri ""}
                                                                                                     :dataType ""
                                                                                                     :description ""
                                                                                                     :displayName ""
                                                                                                     :name ""
                                                                                                     :pdfInstruction {:gcsFileUri ""}
                                                                                                     :updateTime ""}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/instructions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\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}}/v1beta1/:parent/instructions"),
    Content = new StringContent("{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\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}}/v1beta1/:parent/instructions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/instructions"

	payload := strings.NewReader("{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\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/v1beta1/:parent/instructions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 288

{
  "instruction": {
    "blockingResources": [],
    "createTime": "",
    "csvInstruction": {
      "gcsFileUri": ""
    },
    "dataType": "",
    "description": "",
    "displayName": "",
    "name": "",
    "pdfInstruction": {
      "gcsFileUri": ""
    },
    "updateTime": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/instructions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/instructions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\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  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/instructions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/instructions")
  .header("content-type", "application/json")
  .body("{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  instruction: {
    blockingResources: [],
    createTime: '',
    csvInstruction: {
      gcsFileUri: ''
    },
    dataType: '',
    description: '',
    displayName: '',
    name: '',
    pdfInstruction: {
      gcsFileUri: ''
    },
    updateTime: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:parent/instructions');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/instructions',
  headers: {'content-type': 'application/json'},
  data: {
    instruction: {
      blockingResources: [],
      createTime: '',
      csvInstruction: {gcsFileUri: ''},
      dataType: '',
      description: '',
      displayName: '',
      name: '',
      pdfInstruction: {gcsFileUri: ''},
      updateTime: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/instructions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"instruction":{"blockingResources":[],"createTime":"","csvInstruction":{"gcsFileUri":""},"dataType":"","description":"","displayName":"","name":"","pdfInstruction":{"gcsFileUri":""},"updateTime":""}}'
};

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}}/v1beta1/:parent/instructions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "instruction": {\n    "blockingResources": [],\n    "createTime": "",\n    "csvInstruction": {\n      "gcsFileUri": ""\n    },\n    "dataType": "",\n    "description": "",\n    "displayName": "",\n    "name": "",\n    "pdfInstruction": {\n      "gcsFileUri": ""\n    },\n    "updateTime": ""\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  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/instructions")
  .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/v1beta1/:parent/instructions',
  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({
  instruction: {
    blockingResources: [],
    createTime: '',
    csvInstruction: {gcsFileUri: ''},
    dataType: '',
    description: '',
    displayName: '',
    name: '',
    pdfInstruction: {gcsFileUri: ''},
    updateTime: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/instructions',
  headers: {'content-type': 'application/json'},
  body: {
    instruction: {
      blockingResources: [],
      createTime: '',
      csvInstruction: {gcsFileUri: ''},
      dataType: '',
      description: '',
      displayName: '',
      name: '',
      pdfInstruction: {gcsFileUri: ''},
      updateTime: ''
    }
  },
  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}}/v1beta1/:parent/instructions');

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

req.type('json');
req.send({
  instruction: {
    blockingResources: [],
    createTime: '',
    csvInstruction: {
      gcsFileUri: ''
    },
    dataType: '',
    description: '',
    displayName: '',
    name: '',
    pdfInstruction: {
      gcsFileUri: ''
    },
    updateTime: ''
  }
});

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}}/v1beta1/:parent/instructions',
  headers: {'content-type': 'application/json'},
  data: {
    instruction: {
      blockingResources: [],
      createTime: '',
      csvInstruction: {gcsFileUri: ''},
      dataType: '',
      description: '',
      displayName: '',
      name: '',
      pdfInstruction: {gcsFileUri: ''},
      updateTime: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/instructions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"instruction":{"blockingResources":[],"createTime":"","csvInstruction":{"gcsFileUri":""},"dataType":"","description":"","displayName":"","name":"","pdfInstruction":{"gcsFileUri":""},"updateTime":""}}'
};

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 = @{ @"instruction": @{ @"blockingResources": @[  ], @"createTime": @"", @"csvInstruction": @{ @"gcsFileUri": @"" }, @"dataType": @"", @"description": @"", @"displayName": @"", @"name": @"", @"pdfInstruction": @{ @"gcsFileUri": @"" }, @"updateTime": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/instructions"]
                                                       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}}/v1beta1/:parent/instructions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/instructions",
  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([
    'instruction' => [
        'blockingResources' => [
                
        ],
        'createTime' => '',
        'csvInstruction' => [
                'gcsFileUri' => ''
        ],
        'dataType' => '',
        'description' => '',
        'displayName' => '',
        'name' => '',
        'pdfInstruction' => [
                'gcsFileUri' => ''
        ],
        'updateTime' => ''
    ]
  ]),
  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}}/v1beta1/:parent/instructions', [
  'body' => '{
  "instruction": {
    "blockingResources": [],
    "createTime": "",
    "csvInstruction": {
      "gcsFileUri": ""
    },
    "dataType": "",
    "description": "",
    "displayName": "",
    "name": "",
    "pdfInstruction": {
      "gcsFileUri": ""
    },
    "updateTime": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/instructions');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'instruction' => [
    'blockingResources' => [
        
    ],
    'createTime' => '',
    'csvInstruction' => [
        'gcsFileUri' => ''
    ],
    'dataType' => '',
    'description' => '',
    'displayName' => '',
    'name' => '',
    'pdfInstruction' => [
        'gcsFileUri' => ''
    ],
    'updateTime' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'instruction' => [
    'blockingResources' => [
        
    ],
    'createTime' => '',
    'csvInstruction' => [
        'gcsFileUri' => ''
    ],
    'dataType' => '',
    'description' => '',
    'displayName' => '',
    'name' => '',
    'pdfInstruction' => [
        'gcsFileUri' => ''
    ],
    'updateTime' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/instructions');
$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}}/v1beta1/:parent/instructions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "instruction": {
    "blockingResources": [],
    "createTime": "",
    "csvInstruction": {
      "gcsFileUri": ""
    },
    "dataType": "",
    "description": "",
    "displayName": "",
    "name": "",
    "pdfInstruction": {
      "gcsFileUri": ""
    },
    "updateTime": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/instructions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "instruction": {
    "blockingResources": [],
    "createTime": "",
    "csvInstruction": {
      "gcsFileUri": ""
    },
    "dataType": "",
    "description": "",
    "displayName": "",
    "name": "",
    "pdfInstruction": {
      "gcsFileUri": ""
    },
    "updateTime": ""
  }
}'
import http.client

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

payload = "{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/instructions", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/instructions"

payload = { "instruction": {
        "blockingResources": [],
        "createTime": "",
        "csvInstruction": { "gcsFileUri": "" },
        "dataType": "",
        "description": "",
        "displayName": "",
        "name": "",
        "pdfInstruction": { "gcsFileUri": "" },
        "updateTime": ""
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/instructions"

payload <- "{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\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}}/v1beta1/:parent/instructions")

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  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\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/v1beta1/:parent/instructions') do |req|
  req.body = "{\n  \"instruction\": {\n    \"blockingResources\": [],\n    \"createTime\": \"\",\n    \"csvInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"dataType\": \"\",\n    \"description\": \"\",\n    \"displayName\": \"\",\n    \"name\": \"\",\n    \"pdfInstruction\": {\n      \"gcsFileUri\": \"\"\n    },\n    \"updateTime\": \"\"\n  }\n}"
end

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

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

    let payload = json!({"instruction": json!({
            "blockingResources": (),
            "createTime": "",
            "csvInstruction": json!({"gcsFileUri": ""}),
            "dataType": "",
            "description": "",
            "displayName": "",
            "name": "",
            "pdfInstruction": json!({"gcsFileUri": ""}),
            "updateTime": ""
        })});

    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}}/v1beta1/:parent/instructions \
  --header 'content-type: application/json' \
  --data '{
  "instruction": {
    "blockingResources": [],
    "createTime": "",
    "csvInstruction": {
      "gcsFileUri": ""
    },
    "dataType": "",
    "description": "",
    "displayName": "",
    "name": "",
    "pdfInstruction": {
      "gcsFileUri": ""
    },
    "updateTime": ""
  }
}'
echo '{
  "instruction": {
    "blockingResources": [],
    "createTime": "",
    "csvInstruction": {
      "gcsFileUri": ""
    },
    "dataType": "",
    "description": "",
    "displayName": "",
    "name": "",
    "pdfInstruction": {
      "gcsFileUri": ""
    },
    "updateTime": ""
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/instructions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "instruction": {\n    "blockingResources": [],\n    "createTime": "",\n    "csvInstruction": {\n      "gcsFileUri": ""\n    },\n    "dataType": "",\n    "description": "",\n    "displayName": "",\n    "name": "",\n    "pdfInstruction": {\n      "gcsFileUri": ""\n    },\n    "updateTime": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/instructions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["instruction": [
    "blockingResources": [],
    "createTime": "",
    "csvInstruction": ["gcsFileUri": ""],
    "dataType": "",
    "description": "",
    "displayName": "",
    "name": "",
    "pdfInstruction": ["gcsFileUri": ""],
    "updateTime": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/instructions")! 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 datalabeling.projects.instructions.list
{{baseUrl}}/v1beta1/:parent/instructions
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/instructions");

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

(client/get "{{baseUrl}}/v1beta1/:parent/instructions")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/instructions"

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}}/v1beta1/:parent/instructions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/instructions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/instructions"

	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/v1beta1/:parent/instructions HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/instructions"))
    .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}}/v1beta1/:parent/instructions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:parent/instructions")
  .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}}/v1beta1/:parent/instructions');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/instructions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/instructions';
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}}/v1beta1/:parent/instructions',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/instructions")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:parent/instructions',
  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}}/v1beta1/:parent/instructions'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/instructions');

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}}/v1beta1/:parent/instructions'};

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

const url = '{{baseUrl}}/v1beta1/:parent/instructions';
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}}/v1beta1/:parent/instructions"]
                                                       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}}/v1beta1/:parent/instructions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/instructions",
  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}}/v1beta1/:parent/instructions');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:parent/instructions');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/instructions")

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

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

url = "{{baseUrl}}/v1beta1/:parent/instructions"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/instructions"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/instructions")

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/v1beta1/:parent/instructions') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/instructions
http GET {{baseUrl}}/v1beta1/:parent/instructions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/instructions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/instructions")! 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 datalabeling.projects.operations.cancel
{{baseUrl}}/v1beta1/:name:cancel
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name:cancel");

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

(client/get "{{baseUrl}}/v1beta1/:name:cancel")
require "http/client"

url = "{{baseUrl}}/v1beta1/:name:cancel"

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}}/v1beta1/:name:cancel"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name:cancel");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name:cancel"

	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/v1beta1/:name:cancel HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name:cancel"))
    .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}}/v1beta1/:name:cancel")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:name:cancel")
  .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}}/v1beta1/:name:cancel');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:name:cancel'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name:cancel';
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}}/v1beta1/:name:cancel',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name:cancel")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:name:cancel',
  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}}/v1beta1/:name:cancel'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:name:cancel');

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}}/v1beta1/:name:cancel'};

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

const url = '{{baseUrl}}/v1beta1/:name:cancel';
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}}/v1beta1/:name:cancel"]
                                                       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}}/v1beta1/:name:cancel" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:name:cancel",
  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}}/v1beta1/:name:cancel');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name:cancel');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:name:cancel")

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

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

url = "{{baseUrl}}/v1beta1/:name:cancel"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:name:cancel"

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

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

url = URI("{{baseUrl}}/v1beta1/:name:cancel")

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/v1beta1/:name:cancel') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:name:cancel
http GET {{baseUrl}}/v1beta1/:name:cancel
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:name:cancel
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name:cancel")! 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()
DELETE datalabeling.projects.operations.delete
{{baseUrl}}/v1beta1/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name");

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

(client/delete "{{baseUrl}}/v1beta1/:name")
require "http/client"

url = "{{baseUrl}}/v1beta1/:name"

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}}/v1beta1/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name"

	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/v1beta1/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1beta1/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name"))
    .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}}/v1beta1/:name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1beta1/:name")
  .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}}/v1beta1/:name');

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

const options = {method: 'DELETE', url: '{{baseUrl}}/v1beta1/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name';
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}}/v1beta1/:name',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:name',
  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}}/v1beta1/:name'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v1beta1/:name');

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}}/v1beta1/:name'};

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

const url = '{{baseUrl}}/v1beta1/:name';
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}}/v1beta1/:name"]
                                                       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}}/v1beta1/:name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:name",
  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}}/v1beta1/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1beta1/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v1beta1/:name")

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

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

url = "{{baseUrl}}/v1beta1/:name"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v1beta1/:name"

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

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

url = URI("{{baseUrl}}/v1beta1/:name")

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/v1beta1/:name') do |req|
end

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

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

    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}}/v1beta1/:name
http DELETE {{baseUrl}}/v1beta1/:name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v1beta1/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name")! 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 datalabeling.projects.operations.get
{{baseUrl}}/v1beta1/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name");

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

(client/get "{{baseUrl}}/v1beta1/:name")
require "http/client"

url = "{{baseUrl}}/v1beta1/:name"

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}}/v1beta1/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name"

	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/v1beta1/:name HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name"))
    .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}}/v1beta1/:name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:name")
  .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}}/v1beta1/:name');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name';
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}}/v1beta1/:name',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:name',
  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}}/v1beta1/:name'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:name');

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}}/v1beta1/:name'};

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

const url = '{{baseUrl}}/v1beta1/:name';
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}}/v1beta1/:name"]
                                                       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}}/v1beta1/:name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:name",
  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}}/v1beta1/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:name")

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

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

url = "{{baseUrl}}/v1beta1/:name"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:name"

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

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

url = URI("{{baseUrl}}/v1beta1/:name")

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/v1beta1/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:name
http GET {{baseUrl}}/v1beta1/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name")! 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 datalabeling.projects.operations.list
{{baseUrl}}/v1beta1/:name/operations
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:name/operations");

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

(client/get "{{baseUrl}}/v1beta1/:name/operations")
require "http/client"

url = "{{baseUrl}}/v1beta1/:name/operations"

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}}/v1beta1/:name/operations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name/operations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name/operations"

	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/v1beta1/:name/operations HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name/operations"))
    .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}}/v1beta1/:name/operations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1beta1/:name/operations")
  .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}}/v1beta1/:name/operations');

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:name/operations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name/operations';
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}}/v1beta1/:name/operations',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name/operations")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:name/operations',
  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}}/v1beta1/:name/operations'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:name/operations');

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}}/v1beta1/:name/operations'};

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

const url = '{{baseUrl}}/v1beta1/:name/operations';
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}}/v1beta1/:name/operations"]
                                                       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}}/v1beta1/:name/operations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:name/operations",
  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}}/v1beta1/:name/operations');

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:name/operations');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:name/operations")

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

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

url = "{{baseUrl}}/v1beta1/:name/operations"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:name/operations"

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

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

url = URI("{{baseUrl}}/v1beta1/:name/operations")

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/v1beta1/:name/operations') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:name/operations
http GET {{baseUrl}}/v1beta1/:name/operations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:name/operations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name/operations")! 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()