Hi,
When trying to add a tag via the API with python, I’m receiving this error:
{“error”:{“code”:400,“message”:“Constraints violated.”,“constraintViolations”:[{“path”:“tags”,“message”:“must not be null”,“parameterLocation”:“PAYLOAD_BODY”,“location”:null}]}}
This is the code I’m using (note url_fstring = the request url with the entity id)
tag_body_data = {“context”: “CONTEXTLESS”,“key”: “Tag_to_be_added”}
tag_body_response = requests.post(url_fstring, headers={“Content-Type”: “application/json”,‘Authorization’: "Api-Token " + api_token}, data=json.dumps(tag_body_data), verify=False)
How do I make sense of that error response, or does anyone have a python code sample of assigning a simple tag to a entityID?
Thanks!