Updated on 2025-06-27 GMT+08:00

Deleting a Message Template

Function

This API is used to delete a message template.

Calling Method

For details, see Calling APIs.

URI

DELETE /v2/{project_id}/events/notification/templates

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which can be obtained from the console or by calling an API. For details, see Obtaining a Project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token obtained from IAM.

Content-Type

Yes

String

Content type, which is application/json.

Enterprise-Project-Id

No

String

Enterprise project ID.

  • To delete the message template of an enterprise project, enter the enterprise project ID.

  • If this parameter is not specified, the message template of the default enterprise project is deleted.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

names

Yes

Array of strings

List of message templates to be deleted.

Response Parameters

Status code: 204

No Content: The request is successful, but no content is returned.

None

Example Requests

Delete the message template named aaa.

https://{Endpoint}/v2/{project_id}/events/notification/templates

{
  "names" : [ "aaa" ]
}

Example Responses

None

Status Codes

Status Code

Description

204

No Content: The request is successful, but no content is returned.

Error Codes

See Error Codes.