Olá!
Nesse exemplo utilizava a API para carregar o resumo do copiloto nos atributos, quando ele era localizal apenas por API:
{
"name": "Update the attributes copilot",
"integrationType": "purecloud-data-actions",
"actionType": "custom",
"config": {
"request": {
"requestUrlTemplate": "/api/v2/conversations/${input.conversationId}/participants/${input.participantId}/attributes",
"requestType": "PATCH",
"headers": {
"Content-Type": "application/json"
},
"requestTemplate": "{\n \"attributes\": \n{\n\"resumo\":\"${input.resumo}\",\n\"followup\": \"${input.followup}\",\n\"resolution\": \"${input.resolution}\",\n\"tabulacaoSugerida\": \"${input.tabulacaoSugerida}\"\n}\n}"
},
"response": {
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "${rawResult}"
}
},
"contract": {
"input": {
"inputSchema": {
"type": "object",
"properties": {
"conversationId": {
"type": "string"
},
"participantId": {
"type": "string"
},
"resumo": {
"default": "desconexaoDuplicidadeWhatsApp",
"type": "string"
},
"followup": {
"type": "string"
},
"resolution": {
"type": "string"
},
"tabulacaoSugerida": {
"type": "string"
}
},
"additionalProperties": true
}
},
"output": {
"successSchema": {
"type": "object",
"properties": {},
"additionalProperties": true
}
}
},
"secure": false
}
------------------------------
Augusto Aranha
Gerente de Desenvolvimento de Sistemas e Planejamento
------------------------------
Original Message:
Sent: 05-14-2026 00:44
From: Stuart Gielen
Subject: API request for creating Work Item with custom attributes
Has anyone used the APIs to create work items with custom attributes?
The documentation (https://developer.genesys.cloud/commdigital/taskmanagement/task-management-custom-attributes) shows they are added as a key value pair:
{
"name": "Workitem with custom attributes",
"customFields" : { "custom_attribute_text":"Text for custom attribute", "custom_attribute_2_integer":100 }
}
But when using the API explorer (create, patch or bulk add work items), custom attributes are added as a key object pair:
{
"name": "dumm",
"customFields": {
"custom_key": {
"some_key": "some_value"
}
}
}
It's not clear how to format the object. Any ideas? Or is this a bug in the API explorer?
#PlatformAPI
------------------------------
Stuart Gielen
IT Lead
------------------------------