From 36dbae5a56d192972f8d8888cb4648eba8b01108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9A=D1=80=D0=B8=D0=B2?= =?UTF-8?q?=D0=BE=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Wed, 29 Jul 2026 00:52:07 +0700 Subject: [PATCH] fix: use input_data form field for SD API in instruct --- instruct/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()