It would be nice to have the API identifier of the model/bock/field on responses of records’ payloads
I don’t know why you can’t pick it in the API Explorer GUI, but you can use _modelApiKey
. Like this:
query MyQuery {
allPages {
title
id
_modelApiKey
}
}
Returns:
{
"data": {
"allPages": [
{
"title": "Embed Test Page",
"id": "42746360",
"_modelApiKey": "page"
},
(snipped)
Where page
is the singular API identifier of that model
in the Content Management API and not GraphQL
Thanks
GraphQL cannot be used in my use case where we GET records, change them and PUT back
API Explorer I saw changes the fields name