Skip to main content
PUT
/
media
/
image
/
{imageId}
Replace image content
curl --request PUT \
  --url https://app.myhero.so/media/image/{imageId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image": {
    "type": "Buffer",
    "data": [
      127
    ]
  }
}
'
{
  "data": true
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Replaces the binary content of an existing image in object storage and refreshes its signed URL. Requires edit access to the document the image belongs to. Returns true on success.

Authorizations

Authorization
string
header
required

HERO personal access token

Path Parameters

imageId
string
required
Minimum string length: 1

Body

application/json
image
object
required

Response

200 response

data
enum<boolean>
required
Available options:
true