diff --git a/__init__.py b/__init__.py index dfb19df..54212e4 100644 --- a/__init__.py +++ b/__init__.py @@ -109,7 +109,7 @@ async def publish_workflow_handler(request): async with aiohttp.ClientSession() as session: async with session.post(target_api_url, json=payload, headers=headers) as response: response_text = await response.text() - if response.status == 200: + if response.status == 200 or response.status == 201: return web.json_response( {"status": "success", "message": "Workflow published successfully!", "details": response_text}) else: