ImportRamUsers

Updated at:

Imports existing RAM users as contact center agents.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

ccc-test

RoleId

string

Yes

The role ID. This specifies the role assigned to the agent in the instance after a successful import. Valid roles include administrator, skill group supervisor, and agent.

Agent@ccc-test

SkillLevelList

string

No

The list of skill levels for skill groups, formatted as a JSON array string. Each array element is an object that contains two fields: skillGroupId and skillLevel. Set skillGroupId to the ID of the skill group to associate with the agent. Set skillLevel to the skill level of the agent in the skill group. Valid values: 1 to 10. A smaller value indicates stronger business capabilities, allowing the agent to handle more calls per unit of time.

[{"skillGroupId":"skillgroup@ccc-test","skillLevel":5}]

RamIdList

string

Yes

The list of Resource Access Management (RAM) user IDs to be added.

["28036411123456****","29234301123456****"]

WorkMode

string

Yes

The work mode.

ON_SITE

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

The HTTP status code.

200

Data

string

The import execution ID.

1ca2b084-6f0a-454b-9851-29768a9a5832

RequestId

string

The request ID.

03C67DAD-EB26-41D8-949D-9B0C470FB716

Code

string

The response code.

OK

Message

string

The response message.

None

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "Data": "1ca2b084-6f0a-454b-9851-29768a9a5832\n",
  "RequestId": "03C67DAD-EB26-41D8-949D-9B0C470FB716",
  "Code": "OK",
  "Message": "无"
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Enumeration The parameter %s must be one of the value of enumeration %s. The parameter must be one of the enumeration values defined by the system.
400 Parameter.Maximum The parameter %s must be less than or equal to %s. The parameter must be less than or equal to the maximum value defined by the system.
400 Parameter.Minimum The parameter %s must be greater than or equal to %s. The parameter must be greater than or equal to the minimum value defined by the system.
400 Parameter.Blank The parameter %s may not be null or blank. The parameter cannot be null or a string that contains whitespace characters.
400 Parameter.Empty The parameter %s may not be null or empty. The parameter cannot be null or an empty string.
404 NotExists.InstanceId The specified instance %s does not exist. The specified call center instance does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.