Hey,
I got some trouble with making get request to get data from Singleton. In new docs I didn`t find anything on this subject.
So if for content request looks GET /content/item/{model} for singleton it should be GET /singleton/item/{singleton name} ??
artur
August 15, 2022, 9:09am
2
GET /content/item/{model}
to get the content for a singleton model. Please make sure that the singleton state is set to “published”
Having trouble too
In both my code and the playground I get
{
"error": "Permission denied"
}
when calling GET /content/item/TermsAndConditions1
artur
August 22, 2022, 9:15pm
4
If you don’t use an API-Key for the REST requests, then make sure that you assign a role to the public access user (settings > api & security) that has read permissions for the targeted content model
Can You confirm if the correct header for passing the APi key please?
Cockpit-Token
or
api-key?
TIA
From experimentation it looks like it is now the api-key
Header