Updating Featured/Verified Attributes Using API

Hey everyone,

I’m working with the API to manage listings and have successfully updated basic fields like the title and description. However, I’m stuck trying to update the following attributes:

  1. Verified (Checkbox)
  2. Featured (Checkbox)
  3. Featuring Date
  4. Expiration Date

I’ve read through the API documentation, but it’s not clear how to handle these specific fields. Has anyone run into this before or knows the correct way to update them?

Any guidance or example would be super helpful — thanks in advance!

Verified means that the admin checked some of the credentials provided by the user, whatever they are, depending on your business case.

Featured means you are promoting this listing (just like Google Ads)
Featuring date specifies for how long this listing will be promoted (could be two weeks or 3 months).

Expiration date specifies for how long the listing will be visible.

Please note that if you use paid listings plugin, the duration you set in your packages will take precedence over the one defined in default HivePress settings.

1 Like

Thanks so much for taking the time to share that detailed explanation — really appreciate it!

That said, I’m already familiar with what those attributes mean. My question is more about how to update them via the API.

I’ve been able to successfully update basic fields like title and description, but I’m stuck trying to programmatically set the following:

  1. Verified (Checkbox)
  2. Featured (Checkbox)
  3. Featuring Date
  4. Expiration Date

Any guidance on the correct API fields, structure, or even a sample request would be incredibly helpful!

Hi,

If you use WP REST API, then the mentioned fields are stored as post meta fields of hp_verified, hp_featured (set to 1 or empty value), hp_featured_time, hp_expired_time (set to timestamp or empty value).

It seems that WP REST API also requires explicitly registering the meta field names for updating them WordPress REST API: Update Post Meta

Hope this helps

That makes complete sense. Thank you so much :folded_hands: