Posted on 02-09-2023 09:23 AM
xml = """<extension_attributes><extension_attribute><id>67</id><name>Lifecycle Status</name><type>String</type><multi_value>false</multi_value><value>Active</value></extension_attribute></extension_attributes>""" headers = {"Authorization": f'Bearer {token}', 'Content-Type': 'application/xml', 'Accept': 'application/xml'} res = requests.put(url, data=xml, headers=headers)
res status from PUT is 409 error - "Conflict" : The request could not be completed due to a conflict with the current state of the resource You can get technical details http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10
Solved! Go to Solution.
Posted on 02-12-2023 08:38 AM
Yes indeed, thank you @sdagley ! The quotes are the problem.
Posted on 02-09-2023 09:26 AM
I have confirmed that the API user has Full Admin Access.
02-09-2023 10:16 AM - edited 02-09-2023 12:03 PM
@securekindness That script fragment you posted has some problems: The """s should just be "s,
f'Bearer
looks like it's either missing text or incorrectly quoted. Please post your full script for review.
Posted on 02-12-2023 08:38 AM
Yes indeed, thank you @sdagley ! The quotes are the problem.