• 0
BB--MX

Modificar publiación, realizando PUT de MANUFACTURING_TIME

Question

Hola, espero se encuentren bien, he querido realizar el PUT para que los artículos de la tienda tengan 6 días de demora pero no he podido realizarlo, me devuelve un error 400, mi código es el siguiente en python3, agradezco su atención, saludos.

import requests

items_id = ["MLM711293767"]

for i in items_id:
    headers = {
        'Content-Type': 'application/json',
    }

    params = (
        ('access_token', 'MY_ACCESS_TOKEN'),
    )

    data = {"sale_terms": [{"id": "MANUFACTURING_TIME","value_name": "6 días"}]}
    response = requests.put('https://api.mercadolibre.com/items/{}'.format(i), headers=headers, params=params, data=data)

    print(response)

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now