Update Worksite Insurance Details
curl --request PATCH \
--url https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "12345",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
'import requests
url = "https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}"
payload = {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "12345",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
valid_from: '2023-12-25',
valid_to: '2023-12-25',
insurance_country: 'DE',
worksite_location_number: '98797889',
accident_insurance_company_number: '98797889',
accident_insurance_pin: '12345',
payroll_service_provider_number: '98797889',
payroll_processing_location_number: '98797889'
})
};
fetch('https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'insurance_country' => 'DE',
'worksite_location_number' => '98797889',
'accident_insurance_company_number' => '98797889',
'accident_insurance_pin' => '12345',
'payroll_service_provider_number' => '98797889',
'payroll_processing_location_number' => '98797889'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}"
payload := strings.NewReader("{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "DE-WS-PIN-456",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Insurance Details
Update Worksite Insurance Details
PATCH
/
organizations
/
{organization_id}
/
worksites
/
{worksite_id}
/
insurance-details
/
{insurance_details_id}
Update Worksite Insurance Details
curl --request PATCH \
--url https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "12345",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
'import requests
url = "https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}"
payload = {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "12345",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
valid_from: '2023-12-25',
valid_to: '2023-12-25',
insurance_country: 'DE',
worksite_location_number: '98797889',
accident_insurance_company_number: '98797889',
accident_insurance_pin: '12345',
payroll_service_provider_number: '98797889',
payroll_processing_location_number: '98797889'
})
};
fetch('https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'insurance_country' => 'DE',
'worksite_location_number' => '98797889',
'accident_insurance_company_number' => '98797889',
'accident_insurance_pin' => '12345',
'payroll_service_provider_number' => '98797889',
'payroll_processing_location_number' => '98797889'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}"
payload := strings.NewReader("{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "DE-WS-PIN-456",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Get token from Auth0 and paste it here
Path Parameters
Body
application/json
Allowed value:
"DE"German Betriebsnummer (8 digits: xxx-yyyy-z format)
Example:
"98797889"
German Betriebsnummer (8 digits: xxx-yyyy-z format)
Example:
"98797889"
German accident insurance PIN (5 digits)
Example:
"12345"
German Betriebsnummer (8 digits: xxx-yyyy-z format)
Example:
"98797889"
German Betriebsnummer (8 digits: xxx-yyyy-z format)
Example:
"98797889"
Response
Successful Response
Allowed value:
"DE"German Betriebsnummer (8 digits: xxx-yyyy-z format)
Pattern:
^\d{8}$Example:
"98797889"
German Betriebsnummer (8 digits: xxx-yyyy-z format)
Pattern:
^\d{8}$Example:
"98797889"
German accident insurance PIN (5 digits)
Pattern:
^\d{5}$Example:
"DE-WS-PIN-456"
German Betriebsnummer (8 digits: xxx-yyyy-z format)
Pattern:
^\d{8}$Example:
"98797889"
German Betriebsnummer (8 digits: xxx-yyyy-z format)
Pattern:
^\d{8}$Example:
"98797889"
⌘I