Closed diluno closed 5 years ago
Hi @diluno Did you find any solution for this ?
No, unfortunately I didn't.
@diluno, where did you get that list of status
types? If I combine that with 'draftId' => $draftId,
then I can get a disabled entry. But I want to make sure I'm not missing any status
types.
I tried getting all entries, with status "disabled" or "live". I think getting one specific disabled entry works (with 'draftId'), but I can't seem to get multiple.
@diluno, are there other statuses besides 'disabled' and 'live'?
@diluno, are there other statuses besides 'disabled' and 'live'?
@ryanpcmcquen Yes, there are the following statuses: 'live', 'pending', 'expired', 'disabled'
@diluno, where are these documented?
Wether entries are 'live', 'pending', 'expired' or 'disabled', adding 'status' => null
combined with 'enabledForSite' => false
to your criteria will:
I'm having some trouble accessing disabled entries. I have two sites (DE and FR), and call the API by their respective site-URL. (/api/entries or /fr/api/entries). I would like to get the entries for each site whether they're disabled or not.
I tried the following critierias, and always got a 404:
'criteria' => ['enabledForSite' => false, 'slug' => $slug]
'criteria' => ['anyStatus' => true, 'slug' => $slug]
'criteria' => ['status' => ['disabled', 'live'], 'slug' => $slug]