GetHttpEventConfig

Updated at:

Retrieves the HTTP callback event configuration.

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 syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

BaseMeAgentId

integer

No

The workspace ID.

123456

JsonStr

string

No

The complete JSON string of the request parameters.

{"id":"Configuration ID"}

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

9987D326-83D9-4A42-B9A5-0B27F9B40539

Code

string

The result code. A value of 200 indicates success, and other values indicate failure. You can use this code to determine the cause of the failure.

200

Message

string

The error details returned when the request fails, or "successful" when the request succeeds.

successful

Success

boolean

Indicates whether the request is successful. A value of true indicates success, and a value of false or null indicates failure.

true

Data

object

The HTTP callback event configuration.

SwitchFlag

boolean

Specifies whether HTTP callback push is enabled.

true

CallbackUrl

string

The callback URL.

http://123213.com

HttpMethod

string

The callback request method.

GET

EventConfig

object

The collection of event subscription switches. Each field in the collection is a Boolean value. A value of true indicates that the corresponding event is subscribed to, and a value of false indicates that the event is not subscribed to.

"eventConfig": { "taskCompleteEvent":true}

FileReviewedEvent

boolean

The file review event.

true

SyncTaskCompleteEvent

boolean

The real-time quality inspection completion event.

true

TaskCompleteEvent

boolean

The offline quality inspection completion event.

true

ComplaintHandledEvent

boolean

The appeal event.

true

Examples

Success response

JSON format

{
  "RequestId": "9987D326-83D9-4A42-B9A5-0B27F9B40539",
  "Code": "200",
  "Message": "successful",
  "Success": true,
  "Data": {
    "SwitchFlag": true,
    "CallbackUrl": "http://123213.com",
    "HttpMethod": "GET",
    "EventConfig": {
      "FileReviewedEvent": true,
      "SyncTaskCompleteEvent": true,
      "TaskCompleteEvent": true,
      "ComplaintHandledEvent": true
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.