diff --git a/instruct/handlers.py b/instruct/handlers.py index 36ae045..5e7edb8 100644 --- a/instruct/handlers.py +++ b/instruct/handlers.py @@ -172,7 +172,7 @@ async def _send_sd_api_request(requester_email: str, subject: str, description: headers = {"authtoken": SD_TOKEN, "Accept": "application/vnd.manageengine.sdp.v3+json"} async with httpx.AsyncClient(verify=False) as client: - response = await client.post(url, headers=headers, json=payload, timeout=15.0) + response = await client.post(url, headers=headers, data={"input_data": json.dumps(payload)}, timeout=15.0) if response.status_code in (200, 201): res_json = response.json()