curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/content-types/{id}/versions{
"data": [
{
"version": 123,
"packageVersion": "<string>",
"layoutComponentId": "<string>",
"componentIdsAllowList": [
{}
],
"createdAt": "<string>",
"createdBy": "<string>"
}
],
"pagination": {}
}Retrieve the version history for a content type
curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/content-types/{id}/versions{
"data": [
{
"version": 123,
"packageVersion": "<string>",
"layoutComponentId": "<string>",
"componentIdsAllowList": [
{}
],
"createdAt": "<string>",
"createdBy": "<string>"
}
],
"pagination": {}
}{
"data": [
{
"version": 3,
"packageVersion": "1.0.0",
"layoutComponentId": "c123",
"componentIdsAllowList": ["c124", "c125", "c126", "c127"],
"createdAt": "2024-03-22T10:00:00Z",
"createdBy": "user123"
},
{
"version": 2,
"packageVersion": "1.0.0",
"layoutComponentId": "c123",
"componentIdsAllowList": ["c124", "c125", "c126"],
"createdAt": "2024-03-21T10:00:00Z",
"createdBy": "user456"
},
{
"version": 1,
"packageVersion": "1.0.0",
"layoutComponentId": "c123",
"componentIdsAllowList": ["c124", "c125"],
"createdAt": "2024-03-20T10:00:00Z",
"createdBy": "user123"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 3
}
}
curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/content-types/ct123/versions" \
-H "Authorization: Bearer YOUR_API_KEY"