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
}

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