[SOLVED] Missing field in API

Hi,
I have application in squidex cloud. There is one schema with 5 fields. When I try call schemas contents in GraphQL I can see everything. But if I try REST API in response missing 1 field. But If I try link from attribute _links, there are correct data:

GET https://cloud.squidex.io/api/content/vocalls-microsite/team/15c1c15f-6780-4a14-863d-0b29b46cf4c2/

{
    "id": "15c1c15f-6780-4a14-863d-0b29b46cf4c2",
    "createdBy": "subject:5cc6e48d387fef00017efbca",
    "lastModifiedBy": "subject:5cc6e48d387fef00017efbca",
    "data": {
        "header": {
xxxx
        },
        "description": {
xxxx
        },
        "ourTeamTitle": {
xxxx
        },
        "claim": {
xxxx
        }
    },
    "created": "2019-09-25T20:38:24Z",
    "lastModified": "2020-03-20T14:08:58Z",
    "status": "Published",
    "statusColor": "#4bb958",
    "schemaName": "team",
    "schemaDisplayName": "team",
    "version": 24,
    "_links": {
        "self": {
            "href": "/api/content/vocalls-microsite/team/15c1c15f-6780-4a14-863d-0b29b46cf4c2",
            "method": "GET"
        },
        "previous": {
            "href": "/api/content/vocalls-microsite/team/15c1c15f-6780-4a14-863d-0b29b46cf4c2/23",
            "method": "GET"
        }
    }
}

But when I try call:
GET https://cloud.squidex.io/api/content/vocalls-microsite/team/15c1c15f-6780-4a14-863d-0b29b46cf4c2/24 there are correct data

{
    "header": {
xxxx
    },
    "description": {
xxxx
    },
    "ourTeamTitle": {
xxxx
    },
    "claim": {
xxxx
    },
    "members": {
        "iv": [
xxxx
        ]
    }
}

Do you have any idea what happened?

Thanks
Adam

What kind of field is it? Is it hidden?

It is array

    "members": {
        "iv": [
            {
                "name": "xxx",
                "jobTitle": "xxx",
                "photo": [
                    "ca6840a0-3144-42f6-8ee6-12ca257363a1"
                ]
            },

Hi, I have pushed a potential fix. The problem in your case was that the new draft system was not working properly for singleton contents like your example. But all your changes were actually made to a draft version and not to the new version. But I have fixed that in the UI and you can publish the new version to see them in the API as well.

Please give me an update if it works :slight_smile:

Now it works.

Thanks you!
Adam

1 Like