curl --request GET \
--url https://cms.thepublive.com/publisher/{publisher_id}/entities/content-type/custom-component/{custom_entity_schema_id} \
--header 'Authorization: Basic <encoded-value>'{
"id": "abc123",
"name": "Main Section",
"meta_data": {
"description": "A reusable hero section component with title"
},
"field_types": [
{
"name": "title",
"type": "short_text",
"meta_data": {
"label": { "value": "Title" },
"tooltip": { "value": "The main heading for the hero section" },
"type": { "value": "input" }
},
"validations": {
"required": { "value": true },
"max_length": { "value": 100 }
},
"group_id": ""
}
],
"settings": {}
}
Retrieve a single custom component schema by ID
curl --request GET \
--url https://cms.thepublive.com/publisher/{publisher_id}/entities/content-type/custom-component/{custom_entity_schema_id} \
--header 'Authorization: Basic <encoded-value>'{
"id": "abc123",
"name": "Main Section",
"meta_data": {
"description": "A reusable hero section component with title"
},
"field_types": [
{
"name": "title",
"type": "short_text",
"meta_data": {
"label": { "value": "Title" },
"tooltip": { "value": "The main heading for the hero section" },
"type": { "value": "input" }
},
"validations": {
"required": { "value": true },
"max_length": { "value": 100 }
},
"group_id": ""
}
],
"settings": {}
}
{
"id": "abc123",
"name": "Main Section",
"meta_data": {
"description": "A reusable hero section component with title"
},
"field_types": [
{
"name": "title",
"type": "short_text",
"meta_data": {
"label": { "value": "Title" },
"tooltip": { "value": "The main heading for the hero section" },
"type": { "value": "input" }
},
"validations": {
"required": { "value": true },
"max_length": { "value": 100 }
},
"group_id": ""
}
],
"settings": {}
}
Was this page helpful?