Create custom metadata field
Add custom metadata field
POST
https://api.imagekit.io/v1/customMetadataFields
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | base64 encoding of Note the colon in the end. |
Request Body
Name | Type | Description |
---|---|---|
name* | string | Name of the metadata field, unique across all (deleted or not deleted) custom metadata fields |
label* | string | Label of the metadata field, unique across all non deleted custom metadata fields |
schema* | object | An object that describes the rules for the custom metadata key. |
Allowed values in the schema object
Parameter name | Type | Required | Descriptions |
---|---|---|---|
type |
| Yes | Type of the field
Allowed values -
|
selectOptions | An | Only if | An array of options to select from.
Example - |
defaultValue |
| Only if | The default value for the field
Should be of the same type as that provided in the For For For For |
isValueRequired |
| No | Sets field as required |
minValue |
| No | Minimum value of the field Allowed only if |
maxValue |
| No | Maximum value of the field Allowed only if |
minLength |
| No | Minimum length of string Allowed only if |
maxLength |
| No | Maximum length of string Allowed only if |
Examples
Here is the example request to understand the API usage.
Last updated