• Resolved Ultimate Peter

    (@peastvoldqbservicesnet)


    I have over 2,000 products I would like to update quantities for on a daily basis. I plan to use “Batch Update” like so: (3 products)

    {"update": [
    	{"id": 3025,"stock_quantity": "10"}
    	,
    	{"id": 1836,"stock_quantity": "5"}
    	,
    	{"id": 1605,"stock_quantity": "3"}
    	]}

    Documentation did not state a max. Is there a max limit on products? Can I do the 2,000 products all in a single JSON call?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @peastvoldqbservicesnet!

    This is largely dependent on the webserver.

    There’s a post_max_size variable in PHP that is (I stand under correction), at a default of 2mb. You can increase the value though. And as long as you don’t exceed that value in the request size you should be all good.

    Cheers!

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy!

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

    Thread Starter Ultimate Peter

    (@peastvoldqbservicesnet)

    Turns out the update limit is 100 products at a time. Wish they would state that in the API reference.

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

The topic ‘REST API – Max Limit of Products in Update Call?’ is closed to new replies.