cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2268
Views
10
Helpful
2
Replies

CCMP (Unified Contact Center Management Porta) Rest API POST body example

heyphets
Level 1
Level 1

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. 

 

2 Replies 2

ryan.pierce54
Level 1
Level 1

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

Thanks!