GetAllDepartment

Updated at:

getAllDepartment

Operation description

  • You can invoke this API to obtain department IDs for department group queries in certain data query APIs (such as GetHotlineServiceStatistics).

  • After creating, deleting, or updating department information, you can invoke this API to confirm whether the department information matches your expectations.

Queries per second (QPS) limits

  • Per-user invocation frequency: 100 times/second.

  • API invocation frequency: 100 times/second.

Note

If the total invocations from multiple users exceed the API frequency limit, throttling will be triggered.

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 Artificial Intelligence Cloud Call Service (AICCS) instance ID.
You can obtain it in the Instance Management section of the left-side navigation pane in the Artificial Intelligence Cloud Call Service console.

ccc_xp_pre-cn-***

Response elements

Element

Type

Description

Example

object

Returned data.

Message

string

Description of the status code.

successful

RequestId

string

Request ID.

98B032F5-6473-4EAC-8BA8-C28993513A1F

HttpStatusCode

integer

HTTP status code.

200

Data

array<object>

Department information.

object

Department information.

DepartmentName

string

Department name.

部门A

DepartmentId

integer

Department ID.

10

Code

string

Status code. A return value of 200 indicates that the request succeeded.

200

Success

boolean

Indicates whether the API invocation succeeded. Valid values:

  • true: Succeeded.

  • false: Failed.

true

Examples

Success response

JSON format

{
  "Message": "successful",
  "RequestId": "98B032F5-6473-4EAC-8BA8-C28993513A1F",
  "HttpStatusCode": 200,
  "Data": [
    {
      "DepartmentName": "部门A",
      "DepartmentId": 10
    }
  ],
  "Code": "200",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

500 SystemError A system error occurred. Please contact the administrator.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.