Please provide layout id error

I’m issuing the following api command in python but getting the error “Please provide Layout Id or Campaign Id” which in fact I’m providing:

import requests

url = “http://ip_address/api/displaygroup/17/action/changeLayout”

headers = {
‘Authorization’: ‘Bearer 3tXMlTJAXQ0UwlvOkBPYhGIMF1uSeDki3dVcr5Lx’,
‘Content-Type’: ‘multipart/form-data; boundary=--------------------------971091280307378530741039’
}

payload = {‘layoutId’: 26, ‘changeMode’: ‘replace’}
response = requests.request(“POST”, url, headers=headers, data=payload)

Please let me know what’s wrong in the provided layout because I’ve seen curl example in xibo swagger and it’s providing the payload like this.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.