How to update an object from an Edge Storage bucket

This guide walks you through updating an object from an Edge Storage bucket using the Azion API, Azion CLI, and Azion Runtime.

Updating an object from a bucket

Run the following PUT request in your terminal, replacing [TOKEN VALUE] with your personal token, bucket_name with the name of the bucket, and object_key with the key of the object:

curl --location --request PUT 'https://api.azion.com/v4/storage/buckets/bucket_name/objects/object_key' \
--header 'Accept: application/json' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/octet-stream' \
--data '@'

You should receive the following response:

{ "state": "executed", "data": { "object_key": "people-100.txt" }
}

Contributors