Unable to set schema type to NewsArticle via REST API

#1052505
  • Resolved Douglas Lucena
    Rank Math free

    Hi, I’m using the WordPress REST API along with Rank Math to automate the publication of AI-rewritten news articles on my blog. I’m able to set the SEO title, meta description, and other fields via a POST request, but I haven’t been able to change the schema type from “Article” to “NewsArticle”.

    Could you please clarify which field should be used in the API payload to correctly change the schema type to “NewsArticle”? If this isn’t currently supported via REST, is there any recommended workaround?

    Thanks in advance for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with setting the schema type to NewsArticle via the REST API. Unfortunately, the specific details regarding the REST API capabilities for changing schema types in Rank Math are not covered in the provided context.

    To get the most accurate assistance, we recommend replying to your ticket with this question. A human agent from the Rank Math Support team will be able to provide you with the necessary guidance or any workarounds that may be available.

    Thank you for raising this concern, and we appreciate your understanding as we work to assist you further!

    Hello,

    Please note that the newsArticle schema can be set via the News Sitemap feature, which is available with Rank Math PRO.

    Here’s a link for more information:
    https://rankmath.com/kb/news-sitemap/

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Unable to set schema type to NewsArticle via REST API’ is closed to new replies.