Editar un atributo personalizado
curl --request PATCH \
--url https://api.revem.ai/custom-attributes/public/v1/{entityType}/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"options": [
"<string>"
],
"isRequired": true,
"isFilterable": true,
"isAgentVisible": true,
"isUnique": true,
"disabledFunnelIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"defaultValue": "<unknown>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
options: ['<string>'],
isRequired: true,
isFilterable: true,
isAgentVisible: true,
isUnique: true,
disabledFunnelIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
defaultValue: '<unknown>'
})
};
fetch('https://api.revem.ai/custom-attributes/public/v1/{entityType}/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revem.ai/custom-attributes/public/v1/{entityType}/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"options": ["<string>"],
"isRequired": True,
"isFilterable": True,
"isAgentVisible": True,
"isUnique": True,
"disabledFunnelIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"defaultValue": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"entityType": "ticket",
"name": "<string>",
"dataType": "<string>",
"description": "<string>",
"options": [
"<string>"
],
"optionCount": 123,
"isRequired": true,
"isFilterable": true,
"isAgentVisible": true,
"isUnique": true,
"disabledFunnelIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"defaultValue": "<unknown>"
}{
"ok": true,
"error": "<string>"
}{
"error": "Unauthorized",
"message": "Invalid API key"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": false,
"error": "Too many requests. Retry in 60 seconds."
}{
"ok": true,
"error": "<string>"
}Atributos personalizados
Editar un atributo personalizado
Modifica nombre, descripción, opciones, valor predeterminado y configuración. dataType y entityType no se pueden cambiar. options reemplaza el catálogo; omitirla lo conserva. Las opciones distinguen mayúsculas y las usadas no se eliminan. Renombrar migra claves históricas al ID sin cambiar valores; los conflictos rechazan toda la edición. El guard de concurrencia se limita al tenant y tipo de entidad. Devuelve 409 ante conflictos y 503 si excede el límite de tiempo; no hay reintentos automáticos.
PATCH
/
custom-attributes
/
public
/
v1
/
{entityType}
/
{id}
Editar un atributo personalizado
curl --request PATCH \
--url https://api.revem.ai/custom-attributes/public/v1/{entityType}/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"options": [
"<string>"
],
"isRequired": true,
"isFilterable": true,
"isAgentVisible": true,
"isUnique": true,
"disabledFunnelIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"defaultValue": "<unknown>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
options: ['<string>'],
isRequired: true,
isFilterable: true,
isAgentVisible: true,
isUnique: true,
disabledFunnelIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
defaultValue: '<unknown>'
})
};
fetch('https://api.revem.ai/custom-attributes/public/v1/{entityType}/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revem.ai/custom-attributes/public/v1/{entityType}/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"options": ["<string>"],
"isRequired": True,
"isFilterable": True,
"isAgentVisible": True,
"isUnique": True,
"disabledFunnelIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"defaultValue": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"entityType": "ticket",
"name": "<string>",
"dataType": "<string>",
"description": "<string>",
"options": [
"<string>"
],
"optionCount": 123,
"isRequired": true,
"isFilterable": true,
"isAgentVisible": true,
"isUnique": true,
"disabledFunnelIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"defaultValue": "<unknown>"
}{
"ok": true,
"error": "<string>"
}{
"error": "Unauthorized",
"message": "Invalid API key"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": false,
"error": "Too many requests. Retry in 60 seconds."
}{
"ok": true,
"error": "<string>"
}Authorizations
Path Parameters
Body
application/json
Reemplaza el catálogo completo. Una opción usada en registros (incluidos papelera y simulaciones) o en el valor predeterminado no puede eliminarse: devuelve 409. El valor predeterminado puede ajustarse en la misma solicitud.
Maximum array length:
10000Required string length:
1 - 200Pattern:
^[^,]+$Response
Definición actualizada.
