Editar campos adicionais da unidade
Altera os valores dos campos adicionais de uma unidade. Só os campos enviados mudam.
PUT
/
api
/
v2
/
empresa
/
company
/
custom-field
/
edit
cURL
curl --request PUT \
--url https://api.sults.com.br/api/v2/empresa/company/custom-field/edit \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}'import requests
url = "https://api.sults.com.br/api/v2/empresa/company/custom-field/edit"
payload = {
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json",
}
resposta = requests.put(url, json=payload, headers=headers)
print(resposta.status_code)
print(resposta.text)const resposta = await fetch("https://api.sults.com.br/api/v2/empresa/company/custom-field/edit", {
method: "PUT",
headers: {
Authorization: "<api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}),
});
console.log(resposta.status, await resposta.text());<?php
$corpo = <<<'JSON'
{
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}
JSON;
$ch = curl_init("https://api.sults.com.br/api/v2/empresa/company/custom-field/edit");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: <api-key>",
"Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $corpo);
$resposta = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status . PHP_EOL . $resposta . PHP_EOL;using System.Net.Http;
using System.Text;
var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "<api-key>");
var corpo = """
{
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}
""";
var resposta = await http.PutAsync(
"https://api.sults.com.br/api/v2/empresa/company/custom-field/edit",
new StringContent(corpo, Encoding.UTF8, "application/json"));
Console.WriteLine((int)resposta.StatusCode);
Console.WriteLine(await resposta.Content.ReadAsStringAsync());No body{
"error": "'companyId' is required.",
"dateTime": "2026-11-13T14:20:00Z"
}{
"error": "Acesso não autorizado."
}{
"error": "Unauthorized",
"dateTime": "2026-11-13T14:20:00Z"
}{
"error": "Not Found",
"dateTime": "2026-11-13T14:20:00Z"
}<string>{
"error": "Internal Server Error",
"dateTime": "2026-11-13T14:20:00Z"
}Authorizations
Body
application/json
Valores dos campos adicionais de uma unidade.
Response
Campos adicionais alterados, sem corpo adicional.
A resposta não tem corpo.
Was this page helpful?
⌘I
cURL
curl --request PUT \
--url https://api.sults.com.br/api/v2/empresa/company/custom-field/edit \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}'import requests
url = "https://api.sults.com.br/api/v2/empresa/company/custom-field/edit"
payload = {
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json",
}
resposta = requests.put(url, json=payload, headers=headers)
print(resposta.status_code)
print(resposta.text)const resposta = await fetch("https://api.sults.com.br/api/v2/empresa/company/custom-field/edit", {
method: "PUT",
headers: {
Authorization: "<api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}),
});
console.log(resposta.status, await resposta.text());<?php
$corpo = <<<'JSON'
{
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}
JSON;
$ch = curl_init("https://api.sults.com.br/api/v2/empresa/company/custom-field/edit");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: <api-key>",
"Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $corpo);
$resposta = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status . PHP_EOL . $resposta . PHP_EOL;using System.Net.Http;
using System.Text;
var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "<api-key>");
var corpo = """
{
"companyId": 12,
"customFieldValues": [
{
"id": 48,
"valueText": "Coberto, com 20 vagas"
},
{
"id": 34,
"valueOptionId": [
15
]
}
]
}
""";
var resposta = await http.PutAsync(
"https://api.sults.com.br/api/v2/empresa/company/custom-field/edit",
new StringContent(corpo, Encoding.UTF8, "application/json"));
Console.WriteLine((int)resposta.StatusCode);
Console.WriteLine(await resposta.Content.ReadAsStringAsync());No body{
"error": "'companyId' is required.",
"dateTime": "2026-11-13T14:20:00Z"
}{
"error": "Acesso não autorizado."
}{
"error": "Unauthorized",
"dateTime": "2026-11-13T14:20:00Z"
}{
"error": "Not Found",
"dateTime": "2026-11-13T14:20:00Z"
}<string>{
"error": "Internal Server Error",
"dateTime": "2026-11-13T14:20:00Z"
}