• Hi all,

    I’ve created some custom status for a CPT. When i try to call api with
    – /wp-json/wp/v2/my_cpt, an empty array is returned
    – /wp-json/wp/v2/my_cpt/123, an error 401 is returned (code: “rest_forbidden”)

    When API check read permission, it fails because:
    – post_status is not “publish” or “inherit”
    – custom status is not “public”

    Any idea to solve this?

    • This topic was modified 4 years, 6 months ago by sbelaud.
  • The topic ‘Custom status with API’ is closed to new replies.