Issue Tracking API
Issue Tracking APIv9.3.0
Welcome to the Issue Tracking API. You can use this API to access all Issue Tracking API endpoints. Base URL The base URL for all API requests is https://unify.apideck.com We also provide a Mock API that can be used for testing purposes: https://mock-api.apideck.com Headers Custom headers that are expected as part of the request. Note that RFC7230 states header names are case insensitive. | Name | Type | Required | Description | | --------------------- | ------- | -------- |…
- Endpoints
- 15 (9 GET, 2 POST, 2 DELETE, 2 PATCH)
- Base URL
https://unify.apideck.com- Authentication
- API key
- Spec format
- OpenAPI 3.0.0
- API version
- 9.3.0
- Provider
- apideck.com
- License
- Apache 2.0
- Categories
- Developer Tools
- Last updated
Use this API in Bruno:
- Download the Bruno collection above and unzip it.
- In Bruno, choose Open Collection and select the unzipped folder.
- Set the
baseUrlvariable (for examplehttps://unify.apideck.com) and your API key credentials, then send requests.
GET
Get Collection
{{baseUrl}}/issue-tracking/collections/:collection_id
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
collection_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections/:collection_id" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections/:collection_id HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections/:collection_id")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections/:collection_id")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections/:collection_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections/:collection_id') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections/:collection_id \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections/:collection_id \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"created_at": "2020-09-30T07:43:32.000Z",
"description": "IT Issues",
"id": "12345",
"name": "Main IT Issues",
"parent_id": "12345",
"type": "Technical",
"updated_at": "2020-09-30T07:43:32.000Z"
},
"operation": "one",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
GET
List Collections
{{baseUrl}}/issue-tracking/collections
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"links": {
"current": "https://unify.apideck.com/crm/companies",
"next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D"
},
"meta": {
"items_on_page": 50
},
"operation": "all",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
POST
Create Comment
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
collection_id
ticket_id
BODY json
{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
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 \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}
:content-type :json
:form-params {:body ""
:created_at ""
:created_by ""
:id ""
:updated_at ""}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
"content-type" => "application/json"
}
reqBody = "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
Content = new StringContent("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"
payload := strings.NewReader("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
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/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 88
{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.setHeader("content-type", "application/json")
.setBody("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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 \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
.post(body)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.header("content-type", "application/json")
.body("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}")
.asString();
const data = JSON.stringify({
body: '',
created_at: '',
created_by: '',
id: '',
updated_at: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
data: {body: '', created_at: '', created_by: '', id: '', updated_at: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments';
const options = {
method: 'POST',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: '{"body":"","created_at":"","created_by":"","id":"","updated_at":""}'
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
method: 'POST',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
processData: false,
data: '{\n "body": "",\n "created_at": "",\n "created_by": "",\n "id": "",\n "updated_at": ""\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 \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
.post(body)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.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/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'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: '', created_at: '', created_by: '', id: '', updated_at: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: {body: '', created_at: '', created_by: '', id: '', updated_at: ''},
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
});
req.type('json');
req.send({
body: '',
created_at: '',
created_by: '',
id: '',
updated_at: ''
});
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
data: {body: '', created_at: '', created_by: '', id: '', updated_at: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments';
const options = {
method: 'POST',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: '{"body":"","created_at":"","created_by":"","id":"","updated_at":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}",
@"content-type": @"application/json" };
NSDictionary *parameters = @{ @"body": @"",
@"created_at": @"",
@"created_by": @"",
@"id": @"",
@"updated_at": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"]
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments",
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' => '',
'created_at' => '',
'created_by' => '',
'id' => '',
'updated_at' => ''
]),
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"content-type: application/json",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments', [
'body' => '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}',
'headers' => [
'authorization' => '{{apiKey}}',
'content-type' => 'application/json',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}',
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'body' => '',
'created_at' => '',
'created_by' => '',
'id' => '',
'updated_at' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'body' => '',
'created_at' => '',
'created_by' => '',
'id' => '',
'updated_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}',
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}'
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}"
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}",
'content-type': "application/json"
}
conn.request("POST", "/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"
payload = {
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"
payload <- "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
req.body = "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments";
let payload = json!({
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments \
--header 'authorization: {{apiKey}}' \
--header 'content-type: application/json' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: ' \
--data '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}'
echo '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}' | \
http POST {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments \
authorization:'{{apiKey}}' \
content-type:application/json \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method POST \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--header 'content-type: application/json' \
--body-data '{\n "body": "",\n "created_at": "",\n "created_by": "",\n "id": "",\n "updated_at": ""\n}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}",
"content-type": "application/json"
]
let parameters = [
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")! 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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"id": "12345"
},
"operation": "add",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
DELETE
Delete Comment
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
id
collection_id
ticket_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.delete(null)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id';
const options = {
method: 'DELETE',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
method: 'DELETE',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.delete(null)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id';
const options = {
method: 'DELETE',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("DELETE", "/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
response <- VERB("DELETE", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http DELETE {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method DELETE \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"id": "12345"
},
"operation": "add",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
GET
Get Comment
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
id
collection_id
ticket_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"body": "What internet provider do you use?",
"created_at": "2020-09-30T07:43:32.000Z",
"created_by": "12345",
"id": "12345",
"updated_at": "2020-09-30T07:43:32.000Z"
},
"operation": "one",
"resource": "Tickets",
"service": "sage-hr",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
GET
List Comments
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
collection_id
ticket_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"links": {
"current": "https://unify.apideck.com/crm/companies",
"next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D"
},
"meta": {
"items_on_page": 50
},
"operation": "all",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
PATCH
Update Comment
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
id
collection_id
ticket_id
BODY json
{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
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 \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/patch "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}
:content-type :json
:form-params {:body ""
:created_at ""
:created_by ""
:id ""
:updated_at ""}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
"content-type" => "application/json"
}
reqBody = "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
Content = new StringContent("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
payload := strings.NewReader("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
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/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 88
{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.setHeader("content-type", "application/json")
.setBody("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.header("content-type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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 \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.patch(body)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.header("content-type", "application/json")
.body("{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}")
.asString();
const data = JSON.stringify({
body: '',
created_at: '',
created_by: '',
id: '',
updated_at: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PATCH', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PATCH',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
data: {body: '', created_at: '', created_by: '', id: '', updated_at: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id';
const options = {
method: 'PATCH',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: '{"body":"","created_at":"","created_by":"","id":"","updated_at":""}'
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
method: 'PATCH',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
processData: false,
data: '{\n "body": "",\n "created_at": "",\n "created_by": "",\n "id": "",\n "updated_at": ""\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 \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
.patch(body)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.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/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'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: '', created_at: '', created_by: '', id: '', updated_at: ''}));
req.end();
const request = require('request');
const options = {
method: 'PATCH',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: {body: '', created_at: '', created_by: '', id: '', updated_at: ''},
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
});
req.type('json');
req.send({
body: '',
created_at: '',
created_by: '',
id: '',
updated_at: ''
});
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
data: {body: '', created_at: '', created_by: '', id: '', updated_at: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id';
const options = {
method: 'PATCH',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: '{"body":"","created_at":"","created_by":"","id":"","updated_at":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}",
@"content-type": @"application/json" };
NSDictionary *parameters = @{ @"body": @"",
@"created_at": @"",
@"created_by": @"",
@"id": @"",
@"updated_at": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"]
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}" in
Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id",
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([
'body' => '',
'created_at' => '',
'created_by' => '',
'id' => '',
'updated_at' => ''
]),
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"content-type: application/json",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PATCH', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id', [
'body' => '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}',
'headers' => [
'authorization' => '{{apiKey}}',
'content-type' => 'application/json',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}',
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'body' => '',
'created_at' => '',
'created_by' => '',
'id' => '',
'updated_at' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'body' => '',
'created_at' => '',
'created_by' => '',
'id' => '',
'updated_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id');
$request->setRequestMethod('PATCH');
$request->setBody($body);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}',
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}'
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}"
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}",
'content-type': "application/json"
}
conn.request("PATCH", "/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
payload = {
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}",
"content-type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id"
payload <- "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\n}"
encode <- "json"
response <- VERB("PATCH", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
req.body = "{\n \"body\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"id\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id";
let payload = json!({
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id \
--header 'authorization: {{apiKey}}' \
--header 'content-type: application/json' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: ' \
--data '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}'
echo '{
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
}' | \
http PATCH {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id \
authorization:'{{apiKey}}' \
content-type:application/json \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method PATCH \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--header 'content-type: application/json' \
--body-data '{\n "body": "",\n "created_at": "",\n "created_by": "",\n "id": "",\n "updated_at": ""\n}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}",
"content-type": "application/json"
]
let parameters = [
"body": "",
"created_at": "",
"created_by": "",
"id": "",
"updated_at": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id/comments/:id")! 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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"id": "12345"
},
"operation": "update",
"resource": "Tickets",
"service": "github",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
GET
List Tags
{{baseUrl}}/issue-tracking/collections/:collection_id/tags
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
collection_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tags");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections/:collection_id/tags" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tags"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/tags"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/tags");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections/:collection_id/tags HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections/:collection_id/tags")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tags"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tags")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections/:collection_id/tags")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tags');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tags',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tags';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tags',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tags")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/tags',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tags',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tags');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/tags',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tags';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tags"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/tags" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tags', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tags');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tags');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tags' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tags' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections/:collection_id/tags", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tags"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tags"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections/:collection_id/tags') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tags";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/tags \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections/:collection_id/tags \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tags
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tags")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"links": {
"current": "https://unify.apideck.com/crm/companies",
"next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D"
},
"meta": {
"items_on_page": 50
},
"operation": "all",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
POST
Create Ticket
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
collection_id
BODY json
{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}
:content-type :json
:form-params {:assignees [{:id ""
:username ""}]
:collection_id ""
:completed_at ""
:created_at ""
:created_by ""
:description ""
:due_date ""
:id ""
:parent_id ""
:priority ""
:status ""
:subject ""
:tags [{:id ""
:name ""}]
:type ""
:updated_at ""}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
"content-type" => "application/json"
}
reqBody = "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
Content = new StringContent("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"
payload := strings.NewReader("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
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/issue-tracking/collections/:collection_id/tickets HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 375
{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.setHeader("content-type", "application/json")
.setBody("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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 \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
.post(body)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.header("content-type", "application/json")
.body("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}")
.asString();
const data = JSON.stringify({
assignees: [
{
id: '',
username: ''
}
],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [
{
id: '',
name: ''
}
],
type: '',
updated_at: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
data: {
assignees: [{id: '', username: ''}],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [{id: '', name: ''}],
type: '',
updated_at: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets';
const options = {
method: 'POST',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: '{"assignees":[{"id":"","username":""}],"collection_id":"","completed_at":"","created_at":"","created_by":"","description":"","due_date":"","id":"","parent_id":"","priority":"","status":"","subject":"","tags":[{"id":"","name":""}],"type":"","updated_at":""}'
};
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}}/issue-tracking/collections/:collection_id/tickets',
method: 'POST',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
processData: false,
data: '{\n "assignees": [\n {\n "id": "",\n "username": ""\n }\n ],\n "collection_id": "",\n "completed_at": "",\n "created_at": "",\n "created_by": "",\n "description": "",\n "due_date": "",\n "id": "",\n "parent_id": "",\n "priority": "",\n "status": "",\n "subject": "",\n "tags": [\n {\n "id": "",\n "name": ""\n }\n ],\n "type": "",\n "updated_at": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
.post(body)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.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/issue-tracking/collections/:collection_id/tickets',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'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({
assignees: [{id: '', username: ''}],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [{id: '', name: ''}],
type: '',
updated_at: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: {
assignees: [{id: '', username: ''}],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [{id: '', name: ''}],
type: '',
updated_at: ''
},
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}}/issue-tracking/collections/:collection_id/tickets');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
});
req.type('json');
req.send({
assignees: [
{
id: '',
username: ''
}
],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [
{
id: '',
name: ''
}
],
type: '',
updated_at: ''
});
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}}/issue-tracking/collections/:collection_id/tickets',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
data: {
assignees: [{id: '', username: ''}],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [{id: '', name: ''}],
type: '',
updated_at: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets';
const options = {
method: 'POST',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: '{"assignees":[{"id":"","username":""}],"collection_id":"","completed_at":"","created_at":"","created_by":"","description":"","due_date":"","id":"","parent_id":"","priority":"","status":"","subject":"","tags":[{"id":"","name":""}],"type":"","updated_at":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}",
@"content-type": @"application/json" };
NSDictionary *parameters = @{ @"assignees": @[ @{ @"id": @"", @"username": @"" } ],
@"collection_id": @"",
@"completed_at": @"",
@"created_at": @"",
@"created_by": @"",
@"description": @"",
@"due_date": @"",
@"id": @"",
@"parent_id": @"",
@"priority": @"",
@"status": @"",
@"subject": @"",
@"tags": @[ @{ @"id": @"", @"name": @"" } ],
@"type": @"",
@"updated_at": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"]
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}}/issue-tracking/collections/:collection_id/tickets" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets",
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([
'assignees' => [
[
'id' => '',
'username' => ''
]
],
'collection_id' => '',
'completed_at' => '',
'created_at' => '',
'created_by' => '',
'description' => '',
'due_date' => '',
'id' => '',
'parent_id' => '',
'priority' => '',
'status' => '',
'subject' => '',
'tags' => [
[
'id' => '',
'name' => ''
]
],
'type' => '',
'updated_at' => ''
]),
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"content-type: application/json",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets', [
'body' => '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}',
'headers' => [
'authorization' => '{{apiKey}}',
'content-type' => 'application/json',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}',
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'assignees' => [
[
'id' => '',
'username' => ''
]
],
'collection_id' => '',
'completed_at' => '',
'created_at' => '',
'created_by' => '',
'description' => '',
'due_date' => '',
'id' => '',
'parent_id' => '',
'priority' => '',
'status' => '',
'subject' => '',
'tags' => [
[
'id' => '',
'name' => ''
]
],
'type' => '',
'updated_at' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'assignees' => [
[
'id' => '',
'username' => ''
]
],
'collection_id' => '',
'completed_at' => '',
'created_at' => '',
'created_by' => '',
'description' => '',
'due_date' => '',
'id' => '',
'parent_id' => '',
'priority' => '',
'status' => '',
'subject' => '',
'tags' => [
[
'id' => '',
'name' => ''
]
],
'type' => '',
'updated_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}',
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}'
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}"
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}",
'content-type': "application/json"
}
conn.request("POST", "/baseUrl/issue-tracking/collections/:collection_id/tickets", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"
payload = {
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"
payload <- "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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/issue-tracking/collections/:collection_id/tickets') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
req.body = "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets";
let payload = json!({
"assignees": (
json!({
"id": "",
"username": ""
})
),
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": (
json!({
"id": "",
"name": ""
})
),
"type": "",
"updated_at": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
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}}/issue-tracking/collections/:collection_id/tickets \
--header 'authorization: {{apiKey}}' \
--header 'content-type: application/json' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: ' \
--data '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}'
echo '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}' | \
http POST {{baseUrl}}/issue-tracking/collections/:collection_id/tickets \
authorization:'{{apiKey}}' \
content-type:application/json \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method POST \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--header 'content-type: application/json' \
--body-data '{\n "assignees": [\n {\n "id": "",\n "username": ""\n }\n ],\n "collection_id": "",\n "completed_at": "",\n "created_at": "",\n "created_by": "",\n "description": "",\n "due_date": "",\n "id": "",\n "parent_id": "",\n "priority": "",\n "status": "",\n "subject": "",\n "tags": [\n {\n "id": "",\n "name": ""\n }\n ],\n "type": "",\n "updated_at": ""\n}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}",
"content-type": "application/json"
]
let parameters = [
"assignees": [
[
"id": "",
"username": ""
]
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
[
"id": "",
"name": ""
]
],
"type": "",
"updated_at": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")! 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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"id": "12345"
},
"operation": "add",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
DELETE
Delete Ticket
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
ticket_id
collection_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.delete(null)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id';
const options = {
method: 'DELETE',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
method: 'DELETE',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.delete(null)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id';
const options = {
method: 'DELETE',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("DELETE", "/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
response <- VERB("DELETE", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http DELETE {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method DELETE \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"id": "12345"
},
"operation": "add",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
GET
Get Ticket
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
ticket_id
collection_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"collection_id": "12345",
"completed_at": "2020-09-30T07:43:32.000Z",
"created_at": "2020-09-30T07:43:32.000Z",
"created_by": "12345",
"description": "I am facing issues with my internet connection",
"due_date": "2020-09-30T07:43:32.000Z",
"id": "12345",
"parent_id": "12345",
"priority": "high",
"status": "open",
"subject": "Technical Support Request",
"type": "Technical",
"updated_at": "2020-09-30T07:43:32.000Z"
},
"operation": "one",
"resource": "Tickets",
"service": "sage-hr",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
GET
List Tickets
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
collection_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections/:collection_id/tickets HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/tickets');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/tickets',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/tickets',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/tickets',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/tickets" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections/:collection_id/tickets", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections/:collection_id/tickets') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/tickets \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections/:collection_id/tickets \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"links": {
"current": "https://unify.apideck.com/crm/companies",
"next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D"
},
"meta": {
"items_on_page": 50
},
"operation": "all",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
PATCH
Update Ticket
{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
ticket_id
collection_id
BODY json
{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/patch "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}
:content-type :json
:form-params {:assignees [{:id ""
:username ""}]
:collection_id ""
:completed_at ""
:created_at ""
:created_by ""
:description ""
:due_date ""
:id ""
:parent_id ""
:priority ""
:status ""
:subject ""
:tags [{:id ""
:name ""}]
:type ""
:updated_at ""}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
"content-type" => "application/json"
}
reqBody = "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
Content = new StringContent("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
payload := strings.NewReader("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
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/issue-tracking/collections/:collection_id/tickets/:ticket_id HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 375
{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.setHeader("content-type", "application/json")
.setBody("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.header("content-type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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 \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.patch(body)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.header("content-type", "application/json")
.body("{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}")
.asString();
const data = JSON.stringify({
assignees: [
{
id: '',
username: ''
}
],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [
{
id: '',
name: ''
}
],
type: '',
updated_at: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PATCH', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PATCH',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
data: {
assignees: [{id: '', username: ''}],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [{id: '', name: ''}],
type: '',
updated_at: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id';
const options = {
method: 'PATCH',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: '{"assignees":[{"id":"","username":""}],"collection_id":"","completed_at":"","created_at":"","created_by":"","description":"","due_date":"","id":"","parent_id":"","priority":"","status":"","subject":"","tags":[{"id":"","name":""}],"type":"","updated_at":""}'
};
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
method: 'PATCH',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
processData: false,
data: '{\n "assignees": [\n {\n "id": "",\n "username": ""\n }\n ],\n "collection_id": "",\n "completed_at": "",\n "created_at": "",\n "created_by": "",\n "description": "",\n "due_date": "",\n "id": "",\n "parent_id": "",\n "priority": "",\n "status": "",\n "subject": "",\n "tags": [\n {\n "id": "",\n "name": ""\n }\n ],\n "type": "",\n "updated_at": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
.patch(body)
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.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/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'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({
assignees: [{id: '', username: ''}],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [{id: '', name: ''}],
type: '',
updated_at: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PATCH',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: {
assignees: [{id: '', username: ''}],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [{id: '', name: ''}],
type: '',
updated_at: ''
},
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
});
req.type('json');
req.send({
assignees: [
{
id: '',
username: ''
}
],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [
{
id: '',
name: ''
}
],
type: '',
updated_at: ''
});
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
data: {
assignees: [{id: '', username: ''}],
collection_id: '',
completed_at: '',
created_at: '',
created_by: '',
description: '',
due_date: '',
id: '',
parent_id: '',
priority: '',
status: '',
subject: '',
tags: [{id: '', name: ''}],
type: '',
updated_at: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id';
const options = {
method: 'PATCH',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}',
'content-type': 'application/json'
},
body: '{"assignees":[{"id":"","username":""}],"collection_id":"","completed_at":"","created_at":"","created_by":"","description":"","due_date":"","id":"","parent_id":"","priority":"","status":"","subject":"","tags":[{"id":"","name":""}],"type":"","updated_at":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}",
@"content-type": @"application/json" };
NSDictionary *parameters = @{ @"assignees": @[ @{ @"id": @"", @"username": @"" } ],
@"collection_id": @"",
@"completed_at": @"",
@"created_at": @"",
@"created_by": @"",
@"description": @"",
@"due_date": @"",
@"id": @"",
@"parent_id": @"",
@"priority": @"",
@"status": @"",
@"subject": @"",
@"tags": @[ @{ @"id": @"", @"name": @"" } ],
@"type": @"",
@"updated_at": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"]
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}" in
Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id",
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([
'assignees' => [
[
'id' => '',
'username' => ''
]
],
'collection_id' => '',
'completed_at' => '',
'created_at' => '',
'created_by' => '',
'description' => '',
'due_date' => '',
'id' => '',
'parent_id' => '',
'priority' => '',
'status' => '',
'subject' => '',
'tags' => [
[
'id' => '',
'name' => ''
]
],
'type' => '',
'updated_at' => ''
]),
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"content-type: application/json",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PATCH', '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id', [
'body' => '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}',
'headers' => [
'authorization' => '{{apiKey}}',
'content-type' => 'application/json',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}',
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'assignees' => [
[
'id' => '',
'username' => ''
]
],
'collection_id' => '',
'completed_at' => '',
'created_at' => '',
'created_by' => '',
'description' => '',
'due_date' => '',
'id' => '',
'parent_id' => '',
'priority' => '',
'status' => '',
'subject' => '',
'tags' => [
[
'id' => '',
'name' => ''
]
],
'type' => '',
'updated_at' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'assignees' => [
[
'id' => '',
'username' => ''
]
],
'collection_id' => '',
'completed_at' => '',
'created_at' => '',
'created_by' => '',
'description' => '',
'due_date' => '',
'id' => '',
'parent_id' => '',
'priority' => '',
'status' => '',
'subject' => '',
'tags' => [
[
'id' => '',
'name' => ''
]
],
'type' => '',
'updated_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id');
$request->setRequestMethod('PATCH');
$request->setBody($body);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}',
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}'
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}"
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}",
'content-type': "application/json"
}
conn.request("PATCH", "/baseUrl/issue-tracking/collections/:collection_id/tickets/:ticket_id", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
payload = {
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}",
"content-type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id"
payload <- "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\n}"
encode <- "json"
response <- VERB("PATCH", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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/issue-tracking/collections/:collection_id/tickets/:ticket_id') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
req.body = "{\n \"assignees\": [\n {\n \"id\": \"\",\n \"username\": \"\"\n }\n ],\n \"collection_id\": \"\",\n \"completed_at\": \"\",\n \"created_at\": \"\",\n \"created_by\": \"\",\n \"description\": \"\",\n \"due_date\": \"\",\n \"id\": \"\",\n \"parent_id\": \"\",\n \"priority\": \"\",\n \"status\": \"\",\n \"subject\": \"\",\n \"tags\": [\n {\n \"id\": \"\",\n \"name\": \"\"\n }\n ],\n \"type\": \"\",\n \"updated_at\": \"\"\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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id";
let payload = json!({
"assignees": (
json!({
"id": "",
"username": ""
})
),
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": (
json!({
"id": "",
"name": ""
})
),
"type": "",
"updated_at": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
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}}/issue-tracking/collections/:collection_id/tickets/:ticket_id \
--header 'authorization: {{apiKey}}' \
--header 'content-type: application/json' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: ' \
--data '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}'
echo '{
"assignees": [
{
"id": "",
"username": ""
}
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
{
"id": "",
"name": ""
}
],
"type": "",
"updated_at": ""
}' | \
http PATCH {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id \
authorization:'{{apiKey}}' \
content-type:application/json \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method PATCH \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--header 'content-type: application/json' \
--body-data '{\n "assignees": [\n {\n "id": "",\n "username": ""\n }\n ],\n "collection_id": "",\n "completed_at": "",\n "created_at": "",\n "created_by": "",\n "description": "",\n "due_date": "",\n "id": "",\n "parent_id": "",\n "priority": "",\n "status": "",\n "subject": "",\n "tags": [\n {\n "id": "",\n "name": ""\n }\n ],\n "type": "",\n "updated_at": ""\n}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}",
"content-type": "application/json"
]
let parameters = [
"assignees": [
[
"id": "",
"username": ""
]
],
"collection_id": "",
"completed_at": "",
"created_at": "",
"created_by": "",
"description": "",
"due_date": "",
"id": "",
"parent_id": "",
"priority": "",
"status": "",
"subject": "",
"tags": [
[
"id": "",
"name": ""
]
],
"type": "",
"updated_at": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/tickets/:ticket_id")! 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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"id": "12345"
},
"operation": "update",
"resource": "Tickets",
"service": "github",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
GET
Get user
{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
collection_id
id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections/:collection_id/users/:id HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/users/:id")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/users/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/users/:id',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/users/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/users/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/users/:id',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/users/:id" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections/:collection_id/users/:id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections/:collection_id/users/:id') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/users/:id \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections/:collection_id/users/:id \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/users/:id
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/users/:id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"data": {
"created_at": "2020-09-30T07:43:32.000Z",
"email": "elon@musk.com",
"first_name": "Elon",
"id": "12345",
"last_name": "Musk",
"name": "Elon Musk",
"photo_url": "https://unavatar.io/elon-musk",
"updated_at": "2020-09-30T07:43:32.000Z"
},
"operation": "one",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}
GET
List Users
{{baseUrl}}/issue-tracking/collections/:collection_id/users
HEADERS
x-apideck-consumer-id
x-apideck-app-id
Authorization
{{apiKey}}
QUERY PARAMS
collection_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/issue-tracking/collections/:collection_id/users");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
headers = curl_slist_append(headers, "authorization: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/issue-tracking/collections/:collection_id/users" {:headers {:x-apideck-consumer-id ""
:x-apideck-app-id ""
:authorization "{{apiKey}}"}})
require "http/client"
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/users"
headers = HTTP::Headers{
"x-apideck-consumer-id" => ""
"x-apideck-app-id" => ""
"authorization" => "{{apiKey}}"
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/issue-tracking/collections/:collection_id/users"),
Headers =
{
{ "x-apideck-consumer-id", "" },
{ "x-apideck-app-id", "" },
{ "authorization", "{{apiKey}}" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/issue-tracking/collections/:collection_id/users");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("authorization", "{{apiKey}}");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/issue-tracking/collections/:collection_id/users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-apideck-consumer-id", "")
req.Header.Add("x-apideck-app-id", "")
req.Header.Add("authorization", "{{apiKey}}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/issue-tracking/collections/:collection_id/users HTTP/1.1
X-Apideck-Consumer-Id:
X-Apideck-App-Id:
Authorization: {{apiKey}}
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/issue-tracking/collections/:collection_id/users")
.setHeader("x-apideck-consumer-id", "")
.setHeader("x-apideck-app-id", "")
.setHeader("authorization", "{{apiKey}}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/issue-tracking/collections/:collection_id/users"))
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/users")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/issue-tracking/collections/:collection_id/users")
.header("x-apideck-consumer-id", "")
.header("x-apideck-app-id", "")
.header("authorization", "{{apiKey}}")
.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}}/issue-tracking/collections/:collection_id/users');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('authorization', '{{apiKey}}');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/issue-tracking/collections/:collection_id/users',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/users';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/users',
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/issue-tracking/collections/:collection_id/users")
.get()
.addHeader("x-apideck-consumer-id", "")
.addHeader("x-apideck-app-id", "")
.addHeader("authorization", "{{apiKey}}")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/issue-tracking/collections/:collection_id/users',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
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}}/issue-tracking/collections/:collection_id/users',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/users');
req.headers({
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
});
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}}/issue-tracking/collections/:collection_id/users',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/issue-tracking/collections/:collection_id/users';
const options = {
method: 'GET',
headers: {
'x-apideck-consumer-id': '',
'x-apideck-app-id': '',
authorization: '{{apiKey}}'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
@"x-apideck-app-id": @"",
@"authorization": @"{{apiKey}}" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/issue-tracking/collections/:collection_id/users"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
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}}/issue-tracking/collections/:collection_id/users" in
let headers = Header.add_list (Header.init ()) [
("x-apideck-consumer-id", "");
("x-apideck-app-id", "");
("authorization", "{{apiKey}}");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/issue-tracking/collections/:collection_id/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: {{apiKey}}",
"x-apideck-app-id: ",
"x-apideck-consumer-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/issue-tracking/collections/:collection_id/users', [
'headers' => [
'authorization' => '{{apiKey}}',
'x-apideck-app-id' => '',
'x-apideck-consumer-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/users');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/issue-tracking/collections/:collection_id/users');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-apideck-consumer-id' => '',
'x-apideck-app-id' => '',
'authorization' => '{{apiKey}}'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/users' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("authorization", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/issue-tracking/collections/:collection_id/users' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-apideck-consumer-id': "",
'x-apideck-app-id': "",
'authorization': "{{apiKey}}"
}
conn.request("GET", "/baseUrl/issue-tracking/collections/:collection_id/users", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/issue-tracking/collections/:collection_id/users"
headers = {
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/issue-tracking/collections/:collection_id/users"
response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = '', 'authorization' = '{{apiKey}}'), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/issue-tracking/collections/:collection_id/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["authorization"] = '{{apiKey}}'
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/issue-tracking/collections/:collection_id/users') do |req|
req.headers['x-apideck-consumer-id'] = ''
req.headers['x-apideck-app-id'] = ''
req.headers['authorization'] = '{{apiKey}}'
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/issue-tracking/collections/:collection_id/users";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-apideck-consumer-id", "".parse().unwrap());
headers.insert("x-apideck-app-id", "".parse().unwrap());
headers.insert("authorization", "{{apiKey}}".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/issue-tracking/collections/:collection_id/users \
--header 'authorization: {{apiKey}}' \
--header 'x-apideck-app-id: ' \
--header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/issue-tracking/collections/:collection_id/users \
authorization:'{{apiKey}}' \
x-apideck-app-id:'' \
x-apideck-consumer-id:''
wget --quiet \
--method GET \
--header 'x-apideck-consumer-id: ' \
--header 'x-apideck-app-id: ' \
--header 'authorization: {{apiKey}}' \
--output-document \
- {{baseUrl}}/issue-tracking/collections/:collection_id/users
import Foundation
let headers = [
"x-apideck-consumer-id": "",
"x-apideck-app-id": "",
"authorization": "{{apiKey}}"
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/issue-tracking/collections/:collection_id/users")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
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()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"links": {
"current": "https://unify.apideck.com/crm/companies",
"next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D"
},
"meta": {
"items_on_page": 50
},
"operation": "all",
"resource": "Tickets",
"service": "jira",
"status": "OK",
"status_code": 200
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#requestvalidationerror",
"status_code": 400,
"type_name": "RequestValidationError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Failed to generate valid JWT Session. Verify applicationId is correct",
"error": "Unauthorized",
"message": "Unauthorized Request",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 401,
"type_name": "UnauthorizedError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "You have reached your limit of 2000",
"error": "Payment Required",
"message": "Request Limit Reached",
"ref": "https://developers.apideck.com/errors#requestlimiterror",
"status_code": 402,
"type_name": "RequestLimitError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Not Found",
"message": "Unknown Widget",
"ref": "https://developers.apideck.com/errors#entitynotfounderror",
"status_code": 404,
"type_name": "EntityNotFoundError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"detail": "Unprocessable request, please verify your request headers and body.",
"error": "Unprocessable Entity",
"message": "Invalid State",
"ref": "https://developers.apideck.com/errors#invalidstateerror",
"status_code": 422,
"type_name": "InvalidStateError"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"error": "Bad Request",
"message": "Invalid Params",
"ref": "https://developers.apideck.com/errors#unauthorizederror",
"status_code": 400,
"type_name": "RequestHeadersValidationError"
}