POST Accept an invitation by ID
{{baseUrl}}/api/organizations/invitations/:invitationId/accept
QUERY PARAMS

invitationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/organizations/invitations/:invitationId/accept");

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

(client/post "{{baseUrl}}/api/organizations/invitations/:invitationId/accept")
require "http/client"

url = "{{baseUrl}}/api/organizations/invitations/:invitationId/accept"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/organizations/invitations/:invitationId/accept"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/organizations/invitations/:invitationId/accept");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/organizations/invitations/:invitationId/accept"

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

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

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

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

}
POST /baseUrl/api/organizations/invitations/:invitationId/accept HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/organizations/invitations/:invitationId/accept")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/organizations/invitations/:invitationId/accept"))
    .method("POST", 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}}/api/organizations/invitations/:invitationId/accept")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/organizations/invitations/:invitationId/accept")
  .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('POST', '{{baseUrl}}/api/organizations/invitations/:invitationId/accept');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId/accept'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/organizations/invitations/:invitationId/accept';
const options = {method: 'POST'};

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}}/api/organizations/invitations/:invitationId/accept',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/organizations/invitations/:invitationId/accept")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/organizations/invitations/:invitationId/accept',
  headers: {}
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId/accept'
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/organizations/invitations/:invitationId/accept');

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}}/api/organizations/invitations/:invitationId/accept'
};

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

const url = '{{baseUrl}}/api/organizations/invitations/:invitationId/accept';
const options = {method: 'POST'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/organizations/invitations/:invitationId/accept"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/api/organizations/invitations/:invitationId/accept" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/organizations/invitations/:invitationId/accept",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/organizations/invitations/:invitationId/accept');

echo $response->getBody();
setUrl('{{baseUrl}}/api/organizations/invitations/:invitationId/accept');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/organizations/invitations/:invitationId/accept');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/organizations/invitations/:invitationId/accept' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/organizations/invitations/:invitationId/accept' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/api/organizations/invitations/:invitationId/accept")

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

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

url = "{{baseUrl}}/api/organizations/invitations/:invitationId/accept"

response = requests.post(url)

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

url <- "{{baseUrl}}/api/organizations/invitations/:invitationId/accept"

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

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

url = URI("{{baseUrl}}/api/organizations/invitations/:invitationId/accept")

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

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

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

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

response = conn.post('/baseUrl/api/organizations/invitations/:invitationId/accept') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/organizations/invitations/:invitationId/accept";

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/organizations/invitations/:invitationId/accept
http POST {{baseUrl}}/api/organizations/invitations/:invitationId/accept
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/api/organizations/invitations/:invitationId/accept
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/organizations/invitations/:invitationId/accept")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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

dataTask.resume()
POST Create a new invitation for the organization
{{baseUrl}}/api/organizations/invitations
BODY json

{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/organizations/invitations");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/organizations/invitations" {:content-type :json
                                                                          :form-params {:id ""
                                                                                        :owner_id ""
                                                                                        :is_default false
                                                                                        :name ""
                                                                                        :description ""
                                                                                        :emails []
                                                                                        :org_id ""
                                                                                        :expires_at ""
                                                                                        :quota 0
                                                                                        :accepted_by []
                                                                                        :roles []
                                                                                        :teams []
                                                                                        :status ""
                                                                                        :created_at ""
                                                                                        :updated_at ""
                                                                                        :deleted_at ""}})
require "http/client"

url = "{{baseUrl}}/api/organizations/invitations"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_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}}/api/organizations/invitations"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_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}}/api/organizations/invitations");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/organizations/invitations"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/api/organizations/invitations HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 283

{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/organizations/invitations")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/organizations/invitations"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_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  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/organizations/invitations")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/organizations/invitations")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  owner_id: '',
  is_default: false,
  name: '',
  description: '',
  emails: [],
  org_id: '',
  expires_at: '',
  quota: 0,
  accepted_by: [],
  roles: [],
  teams: [],
  status: '',
  created_at: '',
  updated_at: '',
  deleted_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}}/api/organizations/invitations');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/organizations/invitations',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    owner_id: '',
    is_default: false,
    name: '',
    description: '',
    emails: [],
    org_id: '',
    expires_at: '',
    quota: 0,
    accepted_by: [],
    roles: [],
    teams: [],
    status: '',
    created_at: '',
    updated_at: '',
    deleted_at: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/organizations/invitations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","owner_id":"","is_default":false,"name":"","description":"","emails":[],"org_id":"","expires_at":"","quota":0,"accepted_by":[],"roles":[],"teams":[],"status":"","created_at":"","updated_at":"","deleted_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}}/api/organizations/invitations',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "owner_id": "",\n  "is_default": false,\n  "name": "",\n  "description": "",\n  "emails": [],\n  "org_id": "",\n  "expires_at": "",\n  "quota": 0,\n  "accepted_by": [],\n  "roles": [],\n  "teams": [],\n  "status": "",\n  "created_at": "",\n  "updated_at": "",\n  "deleted_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  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/organizations/invitations")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  id: '',
  owner_id: '',
  is_default: false,
  name: '',
  description: '',
  emails: [],
  org_id: '',
  expires_at: '',
  quota: 0,
  accepted_by: [],
  roles: [],
  teams: [],
  status: '',
  created_at: '',
  updated_at: '',
  deleted_at: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/organizations/invitations',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    owner_id: '',
    is_default: false,
    name: '',
    description: '',
    emails: [],
    org_id: '',
    expires_at: '',
    quota: 0,
    accepted_by: [],
    roles: [],
    teams: [],
    status: '',
    created_at: '',
    updated_at: '',
    deleted_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}}/api/organizations/invitations');

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

req.type('json');
req.send({
  id: '',
  owner_id: '',
  is_default: false,
  name: '',
  description: '',
  emails: [],
  org_id: '',
  expires_at: '',
  quota: 0,
  accepted_by: [],
  roles: [],
  teams: [],
  status: '',
  created_at: '',
  updated_at: '',
  deleted_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}}/api/organizations/invitations',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    owner_id: '',
    is_default: false,
    name: '',
    description: '',
    emails: [],
    org_id: '',
    expires_at: '',
    quota: 0,
    accepted_by: [],
    roles: [],
    teams: [],
    status: '',
    created_at: '',
    updated_at: '',
    deleted_at: ''
  }
};

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

const url = '{{baseUrl}}/api/organizations/invitations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","owner_id":"","is_default":false,"name":"","description":"","emails":[],"org_id":"","expires_at":"","quota":0,"accepted_by":[],"roles":[],"teams":[],"status":"","created_at":"","updated_at":"","deleted_at":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"owner_id": @"",
                              @"is_default": @NO,
                              @"name": @"",
                              @"description": @"",
                              @"emails": @[  ],
                              @"org_id": @"",
                              @"expires_at": @"",
                              @"quota": @0,
                              @"accepted_by": @[  ],
                              @"roles": @[  ],
                              @"teams": @[  ],
                              @"status": @"",
                              @"created_at": @"",
                              @"updated_at": @"",
                              @"deleted_at": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/organizations/invitations"]
                                                       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}}/api/organizations/invitations" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/organizations/invitations",
  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([
    'id' => '',
    'owner_id' => '',
    'is_default' => null,
    'name' => '',
    'description' => '',
    'emails' => [
        
    ],
    'org_id' => '',
    'expires_at' => '',
    'quota' => 0,
    'accepted_by' => [
        
    ],
    'roles' => [
        
    ],
    'teams' => [
        
    ],
    'status' => '',
    'created_at' => '',
    'updated_at' => '',
    'deleted_at' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/organizations/invitations', [
  'body' => '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/organizations/invitations');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'owner_id' => '',
  'is_default' => null,
  'name' => '',
  'description' => '',
  'emails' => [
    
  ],
  'org_id' => '',
  'expires_at' => '',
  'quota' => 0,
  'accepted_by' => [
    
  ],
  'roles' => [
    
  ],
  'teams' => [
    
  ],
  'status' => '',
  'created_at' => '',
  'updated_at' => '',
  'deleted_at' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'owner_id' => '',
  'is_default' => null,
  'name' => '',
  'description' => '',
  'emails' => [
    
  ],
  'org_id' => '',
  'expires_at' => '',
  'quota' => 0,
  'accepted_by' => [
    
  ],
  'roles' => [
    
  ],
  'teams' => [
    
  ],
  'status' => '',
  'created_at' => '',
  'updated_at' => '',
  'deleted_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/organizations/invitations');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/organizations/invitations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/organizations/invitations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}'
import http.client

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

payload = "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}"

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

conn.request("POST", "/baseUrl/api/organizations/invitations", payload, headers)

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

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

url = "{{baseUrl}}/api/organizations/invitations"

payload = {
    "id": "",
    "owner_id": "",
    "is_default": False,
    "name": "",
    "description": "",
    "emails": [],
    "org_id": "",
    "expires_at": "",
    "quota": 0,
    "accepted_by": [],
    "roles": [],
    "teams": [],
    "status": "",
    "created_at": "",
    "updated_at": "",
    "deleted_at": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/api/organizations/invitations"

payload <- "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/organizations/invitations")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_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/api/organizations/invitations') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}"
end

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

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

    let payload = json!({
        "id": "",
        "owner_id": "",
        "is_default": false,
        "name": "",
        "description": "",
        "emails": (),
        "org_id": "",
        "expires_at": "",
        "quota": 0,
        "accepted_by": (),
        "roles": (),
        "teams": (),
        "status": "",
        "created_at": "",
        "updated_at": "",
        "deleted_at": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/organizations/invitations \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}'
echo '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}' |  \
  http POST {{baseUrl}}/api/organizations/invitations \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "owner_id": "",\n  "is_default": false,\n  "name": "",\n  "description": "",\n  "emails": [],\n  "org_id": "",\n  "expires_at": "",\n  "quota": 0,\n  "accepted_by": [],\n  "roles": [],\n  "teams": [],\n  "status": "",\n  "created_at": "",\n  "updated_at": "",\n  "deleted_at": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/organizations/invitations
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
] as [String : Any]

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

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

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

dataTask.resume()
DELETE Delete an invitation by ID
{{baseUrl}}/api/organizations/invitations/:invitationId
QUERY PARAMS

invitationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/organizations/invitations/:invitationId");

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

(client/delete "{{baseUrl}}/api/organizations/invitations/:invitationId")
require "http/client"

url = "{{baseUrl}}/api/organizations/invitations/:invitationId"

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

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

func main() {

	url := "{{baseUrl}}/api/organizations/invitations/:invitationId"

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

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

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

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

}
DELETE /baseUrl/api/organizations/invitations/:invitationId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/api/organizations/invitations/:invitationId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/organizations/invitations/:invitationId"))
    .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}}/api/organizations/invitations/:invitationId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/api/organizations/invitations/:invitationId")
  .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}}/api/organizations/invitations/:invitationId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/organizations/invitations/:invitationId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/organizations/invitations/:invitationId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/organizations/invitations/:invitationId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/api/organizations/invitations/:invitationId');

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}}/api/organizations/invitations/:invitationId'
};

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

const url = '{{baseUrl}}/api/organizations/invitations/:invitationId';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/organizations/invitations/:invitationId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/api/organizations/invitations/:invitationId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/api/organizations/invitations/:invitationId');

echo $response->getBody();
setUrl('{{baseUrl}}/api/organizations/invitations/:invitationId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/organizations/invitations/:invitationId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/organizations/invitations/:invitationId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/organizations/invitations/:invitationId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/api/organizations/invitations/:invitationId")

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

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

url = "{{baseUrl}}/api/organizations/invitations/:invitationId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/api/organizations/invitations/:invitationId"

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

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

url = URI("{{baseUrl}}/api/organizations/invitations/:invitationId")

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

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

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

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

response = conn.delete('/baseUrl/api/organizations/invitations/:invitationId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/organizations/invitations/:invitationId";

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/api/organizations/invitations/:invitationId
http DELETE {{baseUrl}}/api/organizations/invitations/:invitationId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/api/organizations/invitations/:invitationId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/organizations/invitations/:invitationId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

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

dataTask.resume()
GET Get all invitations for the organization
{{baseUrl}}/api/organizations/invitations
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/organizations/invitations");

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

(client/get "{{baseUrl}}/api/organizations/invitations")
require "http/client"

url = "{{baseUrl}}/api/organizations/invitations"

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

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

func main() {

	url := "{{baseUrl}}/api/organizations/invitations"

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

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

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

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

}
GET /baseUrl/api/organizations/invitations HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/organizations/invitations'
};

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/organizations/invitations")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/organizations/invitations',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/organizations/invitations'
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/organizations/invitations');

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}}/api/organizations/invitations'
};

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

const url = '{{baseUrl}}/api/organizations/invitations';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/organizations/invitations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/api/organizations/invitations" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/organizations/invitations');

echo $response->getBody();
setUrl('{{baseUrl}}/api/organizations/invitations');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/organizations/invitations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/organizations/invitations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/organizations/invitations' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/api/organizations/invitations")

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

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

url = "{{baseUrl}}/api/organizations/invitations"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/organizations/invitations"

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

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

url = URI("{{baseUrl}}/api/organizations/invitations")

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

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

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

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

response = conn.get('/baseUrl/api/organizations/invitations') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/organizations/invitations
http GET {{baseUrl}}/api/organizations/invitations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/api/organizations/invitations
import Foundation

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

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

dataTask.resume()
GET Get an invitation by ID
{{baseUrl}}/api/organizations/invitations/:invitationId
QUERY PARAMS

invitationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/organizations/invitations/:invitationId");

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

(client/get "{{baseUrl}}/api/organizations/invitations/:invitationId")
require "http/client"

url = "{{baseUrl}}/api/organizations/invitations/:invitationId"

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

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

func main() {

	url := "{{baseUrl}}/api/organizations/invitations/:invitationId"

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

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

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

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

}
GET /baseUrl/api/organizations/invitations/:invitationId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/organizations/invitations/:invitationId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/organizations/invitations/:invitationId';
const options = {method: 'GET'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/organizations/invitations/:invitationId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/organizations/invitations/:invitationId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/organizations/invitations/:invitationId');

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}}/api/organizations/invitations/:invitationId'
};

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

const url = '{{baseUrl}}/api/organizations/invitations/:invitationId';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/organizations/invitations/:invitationId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/api/organizations/invitations/:invitationId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/organizations/invitations/:invitationId');

echo $response->getBody();
setUrl('{{baseUrl}}/api/organizations/invitations/:invitationId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/organizations/invitations/:invitationId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/organizations/invitations/:invitationId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/organizations/invitations/:invitationId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/api/organizations/invitations/:invitationId")

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

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

url = "{{baseUrl}}/api/organizations/invitations/:invitationId"

response = requests.get(url)

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

url <- "{{baseUrl}}/api/organizations/invitations/:invitationId"

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

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

url = URI("{{baseUrl}}/api/organizations/invitations/:invitationId")

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

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

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

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

response = conn.get('/baseUrl/api/organizations/invitations/:invitationId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/organizations/invitations/:invitationId";

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/organizations/invitations/:invitationId
http GET {{baseUrl}}/api/organizations/invitations/:invitationId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/api/organizations/invitations/:invitationId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/organizations/invitations/:invitationId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
PUT Update an existing invitation
{{baseUrl}}/api/organizations/invitations/:invitationId
QUERY PARAMS

invitationId
BODY json

{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/organizations/invitations/:invitationId");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}");

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

(client/put "{{baseUrl}}/api/organizations/invitations/:invitationId" {:content-type :json
                                                                                       :form-params {:id ""
                                                                                                     :owner_id ""
                                                                                                     :is_default false
                                                                                                     :name ""
                                                                                                     :description ""
                                                                                                     :emails []
                                                                                                     :org_id ""
                                                                                                     :expires_at ""
                                                                                                     :quota 0
                                                                                                     :accepted_by []
                                                                                                     :roles []
                                                                                                     :teams []
                                                                                                     :status ""
                                                                                                     :created_at ""
                                                                                                     :updated_at ""
                                                                                                     :deleted_at ""}})
require "http/client"

url = "{{baseUrl}}/api/organizations/invitations/:invitationId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/api/organizations/invitations/:invitationId"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_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}}/api/organizations/invitations/:invitationId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/organizations/invitations/:invitationId"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}")

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

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

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

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

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

}
PUT /baseUrl/api/organizations/invitations/:invitationId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 283

{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/organizations/invitations/:invitationId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/organizations/invitations/:invitationId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_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  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/organizations/invitations/:invitationId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/organizations/invitations/:invitationId")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  owner_id: '',
  is_default: false,
  name: '',
  description: '',
  emails: [],
  org_id: '',
  expires_at: '',
  quota: 0,
  accepted_by: [],
  roles: [],
  teams: [],
  status: '',
  created_at: '',
  updated_at: '',
  deleted_at: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/api/organizations/invitations/:invitationId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    owner_id: '',
    is_default: false,
    name: '',
    description: '',
    emails: [],
    org_id: '',
    expires_at: '',
    quota: 0,
    accepted_by: [],
    roles: [],
    teams: [],
    status: '',
    created_at: '',
    updated_at: '',
    deleted_at: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/organizations/invitations/:invitationId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","owner_id":"","is_default":false,"name":"","description":"","emails":[],"org_id":"","expires_at":"","quota":0,"accepted_by":[],"roles":[],"teams":[],"status":"","created_at":"","updated_at":"","deleted_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}}/api/organizations/invitations/:invitationId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "owner_id": "",\n  "is_default": false,\n  "name": "",\n  "description": "",\n  "emails": [],\n  "org_id": "",\n  "expires_at": "",\n  "quota": 0,\n  "accepted_by": [],\n  "roles": [],\n  "teams": [],\n  "status": "",\n  "created_at": "",\n  "updated_at": "",\n  "deleted_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  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/organizations/invitations/:invitationId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/organizations/invitations/:invitationId',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  id: '',
  owner_id: '',
  is_default: false,
  name: '',
  description: '',
  emails: [],
  org_id: '',
  expires_at: '',
  quota: 0,
  accepted_by: [],
  roles: [],
  teams: [],
  status: '',
  created_at: '',
  updated_at: '',
  deleted_at: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    owner_id: '',
    is_default: false,
    name: '',
    description: '',
    emails: [],
    org_id: '',
    expires_at: '',
    quota: 0,
    accepted_by: [],
    roles: [],
    teams: [],
    status: '',
    created_at: '',
    updated_at: '',
    deleted_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('PUT', '{{baseUrl}}/api/organizations/invitations/:invitationId');

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

req.type('json');
req.send({
  id: '',
  owner_id: '',
  is_default: false,
  name: '',
  description: '',
  emails: [],
  org_id: '',
  expires_at: '',
  quota: 0,
  accepted_by: [],
  roles: [],
  teams: [],
  status: '',
  created_at: '',
  updated_at: '',
  deleted_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: 'PUT',
  url: '{{baseUrl}}/api/organizations/invitations/:invitationId',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    owner_id: '',
    is_default: false,
    name: '',
    description: '',
    emails: [],
    org_id: '',
    expires_at: '',
    quota: 0,
    accepted_by: [],
    roles: [],
    teams: [],
    status: '',
    created_at: '',
    updated_at: '',
    deleted_at: ''
  }
};

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

const url = '{{baseUrl}}/api/organizations/invitations/:invitationId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","owner_id":"","is_default":false,"name":"","description":"","emails":[],"org_id":"","expires_at":"","quota":0,"accepted_by":[],"roles":[],"teams":[],"status":"","created_at":"","updated_at":"","deleted_at":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"owner_id": @"",
                              @"is_default": @NO,
                              @"name": @"",
                              @"description": @"",
                              @"emails": @[  ],
                              @"org_id": @"",
                              @"expires_at": @"",
                              @"quota": @0,
                              @"accepted_by": @[  ],
                              @"roles": @[  ],
                              @"teams": @[  ],
                              @"status": @"",
                              @"created_at": @"",
                              @"updated_at": @"",
                              @"deleted_at": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/organizations/invitations/:invitationId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/api/organizations/invitations/:invitationId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/organizations/invitations/:invitationId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '',
    'owner_id' => '',
    'is_default' => null,
    'name' => '',
    'description' => '',
    'emails' => [
        
    ],
    'org_id' => '',
    'expires_at' => '',
    'quota' => 0,
    'accepted_by' => [
        
    ],
    'roles' => [
        
    ],
    'teams' => [
        
    ],
    'status' => '',
    'created_at' => '',
    'updated_at' => '',
    'deleted_at' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/api/organizations/invitations/:invitationId', [
  'body' => '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/organizations/invitations/:invitationId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'owner_id' => '',
  'is_default' => null,
  'name' => '',
  'description' => '',
  'emails' => [
    
  ],
  'org_id' => '',
  'expires_at' => '',
  'quota' => 0,
  'accepted_by' => [
    
  ],
  'roles' => [
    
  ],
  'teams' => [
    
  ],
  'status' => '',
  'created_at' => '',
  'updated_at' => '',
  'deleted_at' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'owner_id' => '',
  'is_default' => null,
  'name' => '',
  'description' => '',
  'emails' => [
    
  ],
  'org_id' => '',
  'expires_at' => '',
  'quota' => 0,
  'accepted_by' => [
    
  ],
  'roles' => [
    
  ],
  'teams' => [
    
  ],
  'status' => '',
  'created_at' => '',
  'updated_at' => '',
  'deleted_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/organizations/invitations/:invitationId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/organizations/invitations/:invitationId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/organizations/invitations/:invitationId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}'
import http.client

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

payload = "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/api/organizations/invitations/:invitationId", payload, headers)

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

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

url = "{{baseUrl}}/api/organizations/invitations/:invitationId"

payload = {
    "id": "",
    "owner_id": "",
    "is_default": False,
    "name": "",
    "description": "",
    "emails": [],
    "org_id": "",
    "expires_at": "",
    "quota": 0,
    "accepted_by": [],
    "roles": [],
    "teams": [],
    "status": "",
    "created_at": "",
    "updated_at": "",
    "deleted_at": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/api/organizations/invitations/:invitationId"

payload <- "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_at\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/organizations/invitations/:invitationId")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_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.put('/baseUrl/api/organizations/invitations/:invitationId') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"owner_id\": \"\",\n  \"is_default\": false,\n  \"name\": \"\",\n  \"description\": \"\",\n  \"emails\": [],\n  \"org_id\": \"\",\n  \"expires_at\": \"\",\n  \"quota\": 0,\n  \"accepted_by\": [],\n  \"roles\": [],\n  \"teams\": [],\n  \"status\": \"\",\n  \"created_at\": \"\",\n  \"updated_at\": \"\",\n  \"deleted_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}}/api/organizations/invitations/:invitationId";

    let payload = json!({
        "id": "",
        "owner_id": "",
        "is_default": false,
        "name": "",
        "description": "",
        "emails": (),
        "org_id": "",
        "expires_at": "",
        "quota": 0,
        "accepted_by": (),
        "roles": (),
        "teams": (),
        "status": "",
        "created_at": "",
        "updated_at": "",
        "deleted_at": ""
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/api/organizations/invitations/:invitationId \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}'
echo '{
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
}' |  \
  http PUT {{baseUrl}}/api/organizations/invitations/:invitationId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "owner_id": "",\n  "is_default": false,\n  "name": "",\n  "description": "",\n  "emails": [],\n  "org_id": "",\n  "expires_at": "",\n  "quota": 0,\n  "accepted_by": [],\n  "roles": [],\n  "teams": [],\n  "status": "",\n  "created_at": "",\n  "updated_at": "",\n  "deleted_at": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/organizations/invitations/:invitationId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "owner_id": "",
  "is_default": false,
  "name": "",
  "description": "",
  "emails": [],
  "org_id": "",
  "expires_at": "",
  "quota": 0,
  "accepted_by": [],
  "roles": [],
  "teams": [],
  "status": "",
  "created_at": "",
  "updated_at": "",
  "deleted_at": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/organizations/invitations/:invitationId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()