All Products
Search
Document Center

Simple Log Service:UpsertResourceRecord

Last Updated:Sep 02, 2026

Writes or updates resource records in batches.

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

PUT /resources/{resourceName}/records HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

resourceName

string

Yes

The resource name.

sls.alert.user

Request parameters

Parameter

Type

Required

Description

Example

body

object

Yes

The batch write request.

records

array

Yes

The list of records to write. A maximum of 200 records can be written at a time. If no ID is specified for a record, the server automatically generates one.

ResourceRecord

No

The resource record struct.

Response elements

Element

Type

Description

Example

None defined.

Examples

Success response

JSON format

{}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.