400 Error When trying to create group

I am trying to create a new group and keep getting the follow error response

{“description”:“Validation failed”,“errors”:[{“field”:“type”,“message”:“It should be one of these values: ‘support_agent_group’”,“code”:“invalid_value”}]}

The data I am posting the body are
{“description”:“Group”,“name”:“Unique Group Name”,“agent_ids”:[101003692251],“escalate_to”:null}

The agent ID is a value returned by the system so I know its a valid agent ID.

Any ideas?

@RobAtOpinyin,
Good Day!
There are two APIs to create a group,

  1. Old
  2. new

Kindly verify the body and URL which you are using are the same as per the sample curl call in the document.

Hope it helps :slight_smile:

Thanks

1 Like

Hi Santosh,

Thanks for that. I knew I was likely doing something stupid but just couldn’t see it. I was trying to create an admin group with the body parameters for a standard group… doh!

Everything now working as expected.

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.