Creates or update a company
curl --request POST \
--url https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "Jarvi",
"description": "Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.",
"linkedinUrl": "https://www.linkedin.com/company/jarvi-tech/",
"companyId": "713a8005-e54d-4ee3-b6a4-89b27167dde6",
"externalId": "123456",
"assignees": "Sarah Le Roué, Johan Barri, Quentin DECRE",
"statusId": "dbab8773-8b59-4597-af75-b31333dd5409"
}
'import requests
url = "https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies"
payload = {
"name": "Jarvi",
"description": "Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.",
"linkedinUrl": "https://www.linkedin.com/company/jarvi-tech/",
"companyId": "713a8005-e54d-4ee3-b6a4-89b27167dde6",
"externalId": "123456",
"assignees": "Sarah Le Roué, Johan Barri, Quentin DECRE",
"statusId": "dbab8773-8b59-4597-af75-b31333dd5409"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Jarvi',
description: 'Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.',
linkedinUrl: 'https://www.linkedin.com/company/jarvi-tech/',
companyId: '713a8005-e54d-4ee3-b6a4-89b27167dde6',
externalId: '123456',
assignees: 'Sarah Le Roué, Johan Barri, Quentin DECRE',
statusId: 'dbab8773-8b59-4597-af75-b31333dd5409'
})
};
fetch('https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies', 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://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies",
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([
'name' => 'Jarvi',
'description' => 'Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.',
'linkedinUrl' => 'https://www.linkedin.com/company/jarvi-tech/',
'companyId' => '713a8005-e54d-4ee3-b6a4-89b27167dde6',
'externalId' => '123456',
'assignees' => 'Sarah Le Roué, Johan Barri, Quentin DECRE',
'statusId' => 'dbab8773-8b59-4597-af75-b31333dd5409'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies"
payload := strings.NewReader("{\n \"name\": \"Jarvi\",\n \"description\": \"Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.\",\n \"linkedinUrl\": \"https://www.linkedin.com/company/jarvi-tech/\",\n \"companyId\": \"713a8005-e54d-4ee3-b6a4-89b27167dde6\",\n \"externalId\": \"123456\",\n \"assignees\": \"Sarah Le Roué, Johan Barri, Quentin DECRE\",\n \"statusId\": \"dbab8773-8b59-4597-af75-b31333dd5409\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.post("https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jarvi\",\n \"description\": \"Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.\",\n \"linkedinUrl\": \"https://www.linkedin.com/company/jarvi-tech/\",\n \"companyId\": \"713a8005-e54d-4ee3-b6a4-89b27167dde6\",\n \"externalId\": \"123456\",\n \"assignees\": \"Sarah Le Roué, Johan Barri, Quentin DECRE\",\n \"statusId\": \"dbab8773-8b59-4597-af75-b31333dd5409\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Jarvi\",\n \"description\": \"Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.\",\n \"linkedinUrl\": \"https://www.linkedin.com/company/jarvi-tech/\",\n \"companyId\": \"713a8005-e54d-4ee3-b6a4-89b27167dde6\",\n \"externalId\": \"123456\",\n \"assignees\": \"Sarah Le Roué, Johan Barri, Quentin DECRE\",\n \"statusId\": \"dbab8773-8b59-4597-af75-b31333dd5409\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Company saved successfully",
"taskId": "0b538428-7652-4243-baaf-3867803d7007",
"companyId": "d730cca9-d8b0-49e7-b2e0-c58c1bb7af9f"
}{
"message": "Error details",
"taskId": "0b538428-7652-4243-baaf-3867803d7007"
}{
"message": "An error occured",
"taskId": "0b538428-7652-4243-baaf-3867803d7007"
}Referencia API REST
[Empresa] Crear o actualizar
Save a company in Jarvi. It creates the company if it does not exist, updates it if it does.
Creates or update a company
curl --request POST \
--url https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "Jarvi",
"description": "Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.",
"linkedinUrl": "https://www.linkedin.com/company/jarvi-tech/",
"companyId": "713a8005-e54d-4ee3-b6a4-89b27167dde6",
"externalId": "123456",
"assignees": "Sarah Le Roué, Johan Barri, Quentin DECRE",
"statusId": "dbab8773-8b59-4597-af75-b31333dd5409"
}
'import requests
url = "https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies"
payload = {
"name": "Jarvi",
"description": "Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.",
"linkedinUrl": "https://www.linkedin.com/company/jarvi-tech/",
"companyId": "713a8005-e54d-4ee3-b6a4-89b27167dde6",
"externalId": "123456",
"assignees": "Sarah Le Roué, Johan Barri, Quentin DECRE",
"statusId": "dbab8773-8b59-4597-af75-b31333dd5409"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Jarvi',
description: 'Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.',
linkedinUrl: 'https://www.linkedin.com/company/jarvi-tech/',
companyId: '713a8005-e54d-4ee3-b6a4-89b27167dde6',
externalId: '123456',
assignees: 'Sarah Le Roué, Johan Barri, Quentin DECRE',
statusId: 'dbab8773-8b59-4597-af75-b31333dd5409'
})
};
fetch('https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies', 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://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies",
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([
'name' => 'Jarvi',
'description' => 'Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.',
'linkedinUrl' => 'https://www.linkedin.com/company/jarvi-tech/',
'companyId' => '713a8005-e54d-4ee3-b6a4-89b27167dde6',
'externalId' => '123456',
'assignees' => 'Sarah Le Roué, Johan Barri, Quentin DECRE',
'statusId' => 'dbab8773-8b59-4597-af75-b31333dd5409'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies"
payload := strings.NewReader("{\n \"name\": \"Jarvi\",\n \"description\": \"Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.\",\n \"linkedinUrl\": \"https://www.linkedin.com/company/jarvi-tech/\",\n \"companyId\": \"713a8005-e54d-4ee3-b6a4-89b27167dde6\",\n \"externalId\": \"123456\",\n \"assignees\": \"Sarah Le Roué, Johan Barri, Quentin DECRE\",\n \"statusId\": \"dbab8773-8b59-4597-af75-b31333dd5409\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.post("https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jarvi\",\n \"description\": \"Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.\",\n \"linkedinUrl\": \"https://www.linkedin.com/company/jarvi-tech/\",\n \"companyId\": \"713a8005-e54d-4ee3-b6a4-89b27167dde6\",\n \"externalId\": \"123456\",\n \"assignees\": \"Sarah Le Roué, Johan Barri, Quentin DECRE\",\n \"statusId\": \"dbab8773-8b59-4597-af75-b31333dd5409\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://functions.prod.jarvi.tech/v1/public-api/rest/v2/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Jarvi\",\n \"description\": \"Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place.\",\n \"linkedinUrl\": \"https://www.linkedin.com/company/jarvi-tech/\",\n \"companyId\": \"713a8005-e54d-4ee3-b6a4-89b27167dde6\",\n \"externalId\": \"123456\",\n \"assignees\": \"Sarah Le Roué, Johan Barri, Quentin DECRE\",\n \"statusId\": \"dbab8773-8b59-4597-af75-b31333dd5409\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Company saved successfully",
"taskId": "0b538428-7652-4243-baaf-3867803d7007",
"companyId": "d730cca9-d8b0-49e7-b2e0-c58c1bb7af9f"
}{
"message": "Error details",
"taskId": "0b538428-7652-4243-baaf-3867803d7007"
}{
"message": "An error occured",
"taskId": "0b538428-7652-4243-baaf-3867803d7007"
}Debes utilizar tu clave de api privada para esta solicitud.
Authorizations
Body
application/json
The name of the company
Example:
"Jarvi"
The description of the company
Example:
"Jarvi is an ATS and CRM that gather your talents, conversations, opportunities, clients in one place."
The linkedin url of the company
Example:
"https://www.linkedin.com/company/jarvi-tech/"
The id of the company you want to update.
Example:
"713a8005-e54d-4ee3-b6a4-89b27167dde6"
The id of the company you want to update in your system.
Example:
"123456"
The assignees of the company
Example:
"Sarah Le Roué, Johan Barri, Quentin DECRE"
The status of the company
Example:
"dbab8773-8b59-4597-af75-b31333dd5409"
⌘I