Skip to content

How do I get the publish status of an entry? #346

@eianc

Description

@eianc

Hey! 👋🏼
I got a little request.
I want to be able to query an entry based on the publish status, however I don't seem to be able to do that. 🤔
I'm logging an entry, but there doesn't seem to be any field containing the publish status:

{ 
  stackHeaders: { api_key: 'xxx', branch: 'xxx' },
  content_type_uid: 'campaign',
  urlPath: '/content_types/campaign/entries/xxx',
  title: 'Inspiration',
  url: '/campaign/inspiration',
  seo: {
    title: 'Inspiration',
    meta_description: '',
    meta_robots: '',
    canonical: ''
  },
  sections: [
    { banner: [Object] },
    { section_title: [Object] },
    { copy_block: [Object] },
  ],
  tags: [ 'content page' ],
  locale: 'en-us',
  uid: 'xxx',
  created_by: 'xxx',
  updated_by: 'xxx',
  created_at: '2022-10-31T11:36:32.972Z',
  updated_at: '2022-11-30T10:07:41.332Z',
  _version: 13,
  _in_progress: false,
  update: [Function (anonymous)],
  delete: [Function (anonymous)],
  fetch: [Function (anonymous)],
  publish: [Function (anonymous)],
  unpublish: [Function (anonymous)],
  publishRequest: [Function (anonymous)],
  setWorkflowStage: [Function (anonymous)],
  variants: [Function (anonymous)],
  includeVariants: [Function (anonymous)],
  locales: [Function (anonymous)],
  import: [Function (anonymous)]
}

I the ContentStack UI I can see the publish status

Image

Can someone shed some light on this?

Thanks a lot :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions