Updated on 2023-11-08 GMT+08:00

Deleting All Configurations

Function

This API is used to delete all configurations.

URI

DELETE /v1/{project_id}/kie/kv

Table 1 Path parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Fixed value: default.

Request

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

Authorization

No

String

This parameter is mandatory if security authentication is enabled for an exclusive ServiceComb engine. Otherwise, this parameter is not required.

The token of an exclusive ServiceComb engine with security authentication enabled is in the following format:

Authorization:Bearer {Token}

For details about how to obtain the token, see Obtaining the User Token of an Exclusive ServiceComb Engine.

Table 3 Request body parameter

Parameter

Mandatory

Type

Description

ids

Yes

List<String>

ID list of the configurations to be deleted. See Querying the Configuration List.

Response

Status code: 204

Successfully deleted.

Status code: 404

Table 4 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error message.

detail

String

Location details.

Status code: 500

Table 5 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error message.

detail

String

Location details.

Example Request

Delete all configurations.

DELETE https://{endpoint}/v1/{project_id}/kie/kv

{
    "ids":[
        "id1",
        "id2"
    ]
}

Example Response

Status code: 204

Successfully deleted.

Status Code

Status Code

Description

204

No Content

400

Bad Request

500

Internal Server Error

Error Code

See ServiceComb Error Codes.