Update custom metadata field
patch
https://api.imagekit.io
/v1/customMetadataFields/:id
Update an existing custom metadata field

Examples

cURL
Ruby
1
curl -X PATCH "https://api.imagekit.io/v1/customMetadataFields/6152fc9a2fd12044cb4cefe2" \
2
-H 'Content-Type: application/json' \
3
-u your_private_key: -d'
4
{
5
"schema": {
6
"minValue": 500,
7
"maxValue": 2500
8
}
9
}
10
'
Copied!
1
imagekitio = ImageKitIo::Client.new("your_private_key", "your_public_key", "your_url_endpoint")
2
imagekitio.update_custom_metadata_field(
3
id: '598821f949c0a938d57563dd', #required
4
label: '', #required if schema not available
5
schema: { #required if label not available
6
minValue: 100
7
}
8
)
Copied!