10-10-2018 12:51 PM
Hi All,
I was wondering if anyone have an example of a valid POST JSON body to create an Agent Agent Team Member . There is no example for REST in the Webservices reference guide. Here is what I'm trying to send based on documentation:
POST /resourcemanagement/rest/resources/agent-agent-team-members/
[ { "Identity": "-1", "Type": "Agent Agent Team Member", "Fields": [ { "Name": "ParentId", "Value": "1425" }, { "Name": "ChildId", "Value": "14109" }, { "Name": "PhysicalMember", "Value": "true" } ] } ]
And I get back 200 OK with NO body, but I don't see agent actually being added to the team.
03-20-2019 08:06 AM
Gotta love the lack of documentation. This worked for mapping an agent to a team.
POST https://<ccmp server>/Portal/ws/ResourceManagement/rest/resources
{ "Resources": [ { "Type": "Agent Agent Team Member", "EffectiveFromRFC3339": "2012-02-17T08:21:57.853Z", "EffectiveToRFC3339": "2050-02-17T08:21:57.853Z", "Status": "R", "Changestamp": 0, "RefURL": "", "Fields": [ { "Name": "ParentId", "Value": "1" }, { "Name": "ChildId", "Value": "21" }, { "Name": "Supervisor", "Value": "false" }, { "Name": "PrimarySupervisor", "Value": "false" }, { "Name": "PhysicalMember", "Value": "true" } ] } ] }
RefURL is required but empty.
ParentId Identity is the Agent Team Identity
ChildId is the Agent Identity
05-10-2021 03:54 AM - edited 05-10-2021 05:46 AM
Thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide