Help Center/ Object Storage Service/ SDK Reference/ C/ Parameters/ Request Parameters for Modifying an Object
Updated on 2026-08-03 GMT+08:00

Request Parameters for Modifying an Object

Table 1 List of request parameters

Parameter

Type

Mandatory (Yes/No)

Description

options

const obs_options *

Yes

The context of the requested bucket. Refer to Configuring option (SDK for C) to set the AK, SK, endpoint, bucket, timeout, and temporary credentials through obs_options.

key

char *

Yes

Object name

content_length

uint64_t

Yes

Length of the object content

position

char *

Yes

Start position of modification

put_properties

obs_put_properties*

Yes

Properties of the uploaded object

encryption_params

server_side_encryption_params *

No

Encryption setting of the uploaded object

handler

obs_modify_object_handler *

Yes

A callback structure where all members are pointers to callback functions, used to set the callback functions that handle response data. You can set a callback function to copy the response data from the server to your custom callback_data.

callback_data

void *

No

Custom callback data.