Bulk Listing Creation for Load Testing

  • Posted 4 weeks ago

Hi Team,

A load test is planned with 5,000 ads across 3 post types. Is there an automated way to create these in bulk, such as via REST API endpoints or WP-CLI?

I reviewed the api v=1&action=create_post API, which is used by the post creation form. However, it already expects an existing post ID and requires the wordpress_logged_in_ header. Therefore, it is not suitable for our use case.

Are there any alternative APIs or recommended workarounds for this?

Also, is there a supported method to assign a plan to a user (even a free plan is fine) via API, WP-CLI, or database update? If the plan assignment is not supported, proceeding with a fixed test user account is acceptable, but a bulk listing creation approach is still required.

Best regards,
Team Q