I successfully updated the component using the PUT command, and after that Strapi threw the error:
Error: The target polymorphic type "components_COMPONENT_NAME" is not one of the defined target types
The command I used to update the Strapi component:
PUT http://localhost:1337/content-type-builder/components/COMPONENT_DIR.COMPONENT_NAME
{
"components": [],
"component": {
"category": "COMPONENT_DIR",
"icon": "biohazard",
"name": "COMPONENT_NAME",
"description": "",
"connection": "default",
"collectionName": "components_COMPONENT_DIR_COMPONENT_NAME",
"attributes": {
"type": {
"type": "string",
"default": ""
},
"uuid": {
"type": "string"
},
"title": {
"type": "text"
},
"description": {
"type": "text"
},
"banner_image": {
"type": "media",
"multiple": false
}
}
}
}