When i try to post json data and image in API link i get the error for image as unicode error
import pandas import requests import json import base64 headers = {'Content-type': 'application/json'} files={'file': open('C:\Users\vijsi-in\PycharmProjects\RDP Access Automation\Input Method - UI Path.JPG')} with open("Input Method - UI Path.JPG","rb") as files: encoded_string = base64.b64decode((files.read())) briefDescription = "Test" data = { "briefDescription": briefDescription, "request" : "I am affected by this issue :-" + "\n" + "Yes More detailed information - Kindly I need to activate my office and when I try to activate it I get the attached error PC Number -Desk location", "status": "secondLine", "callerLookup" : {"networkLoginName" : "satna-in"}, "category" : { "id" : "c8322080-94f2-4911-9b4d-527f7d2e7cac"}, "subcategory": {"id" : "3d347c83-a0a2-4ea7-be4f-0c142ad03f97"}, "callType": {"id" : "b46bd95d-1b4b-5667-bf6a-86531696c8cc"}, "operatorGroup":{"id": "53f12042-4df0-409c-ab1b-a9c3c2889db4"}, "entryType":{"id": "b330b233-7199-548c-8c47-8586190e3aa3"}, "impact":{"id": "6dd9cf42-0529-52bc-bbee-87872646ac71"}, "urgency":{"id": "7ba734d4-1aa4-4d93-b8de-9796f0845d28"}, "entryType":{"id": "8413ecbd-6bb1-43df-b981-c06a267a2416"},ERROR I GET:
Error:File "C:/Users/vijsi-in/.PyCharmEdu2019.2/config/scratches/Incident Creation.py", line 11 files={'file': open('C:\Users\vijsi-in\PycharmProjects\RDP Access Automation\Input Method - UI Path.JPG')} ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape