{"type":"api","title":"Undeploy Data Pipeline","meta":{"id":"/apps/pubhub/media/cisco-edge-intelligence-2-2-0-api/2d8524cb89cd60e1e2e66bcc438913d05fdc9eff/262737b2-b3c2-32cd-b07b-fdbdcd23918f","info":{"title":"Edge Intelligence Local Manager API Documentation","description":"This API enables management of data policies within the Cisco Edge Intelligence IOx Application.\n\n**Key Features**:\n- User Authentication\n- Data Policy Management\n- Agent Management\n\n**Versioning**:\n- Current version: v2\n- Access pattern: `/api/v{version_number}/edge-intelligence`\n\n**Security**:\n- All endpoints secured with JWT Bearer token authentication\n- Tokens expire after 5 mins\n- Refresh tokens using the `/token` endpoint\n","version":"2.2.0"},"tags":[{"name":"Authentication","description":"User authentication and token management"},{"name":"Policy Management","description":"Data policy management"},{"name":"Agent Management","description":"Edge Intelligence Agent management"},{"name":"Metrics","description":"Edge Intelligence Metrics"}],"x-parser-conf":{"overview":{"markdownPath":"reference/overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://localhost/api/v2/edge-intelligence","description":"Local development server"}],"securitySchemes":{"Bearer":{"type":"apiKey","description":"JWT Authorization header using the Bearer scheme.\nExample: \"Authorization: Bearer {token}\"\n","name":"Authorization","in":"header"}}},"spec":{"tags":["Policy Management"],"summary":"Undeploy Data Pipeline","description":"Undeploys an existing data pipeline","operationId":"undeployPipeline","parameters":[{"name":"pipelineId","in":"path","required":true,"description":"Unique identifier of the pipeline","schema":{"type":"string"},"$$ref":"#/components/parameters/PipelineId"}],"responses":{"204":{"description":"Pipeline undeployed successfully","content":{"application/json":{"schema":{"description":"Object for successful deletion of pipeline","properties":{"success":{"type":"boolean","description":"boolean value indicating success or failure","example":true},"data":{"type":"object","description":"pipeline data","properties":{"id":{"type":"string","description":"id of pipeline","example":"e2d47c95-2eef-4f5c-b3a9-8137a98acc66_72919765-1665-49bc-b210-fda06ca6d46e"},"status":{"type":"string","description":"pipeline status","example":"[[SUCCESS]]"}}},"message":{"type":"string","description":"message describing success or failure","example":"Operation Successful"}},"$$ref":"#/components/schemas/PipelineConfigDeleteSuccess"}}}},"400":{"description":"Issue in pipeline undeployment","content":{"application/json":{"schema":{"type":"object","description":"PipelineConfigDeleteBadRequest","properties":{"success":{"type":"boolean","description":"boolean value indicating success or failure"},"error":{"type":"object","description":"error message","properties":{"code":{"type":"string","description":"error code of failure"},"message":{"type":"string","description":"detailed error message"}}}},"$$ref":"#/components/schemas/PipelineConfigDeleteBadRequest","example":{"success":false,"error":{"code":"INVALID_REQUEST","message":"Pipeline with ID 020aa190-5db2-4198-9db9-477901f2b1ca_2c157e50-3552-4f1c-a820-091dee209e40 does not exist"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","description":"Error response object","properties":{"success":{"type":"boolean","description":"boolean value indicating success or failure"},"error":{"type":"object","description":"error message","properties":{"code":{"type":"string","description":"error code of failure"},"message":{"type":"string","description":"detailed error message"}}}},"$$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"error":{"code":"INVALID_TOKEN","message":"Invalid token"}}}},"$$ref":"#/components/responses/Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","description":"Error response object","properties":{"success":{"type":"boolean","description":"boolean value indicating success or failure"},"error":{"type":"object","description":"error message","properties":{"code":{"type":"string","description":"error code of failure"},"message":{"type":"string","description":"detailed error message"}}}},"$$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"error":{"code":"FORBIDDEN","message":"Unauthorised operation performed"}}}},"$$ref":"#/components/responses/Forbidden"},"404":{"description":"Requested resource not found","content":{"application/json":{"schema":{"type":"object","description":"Error response object","properties":{"success":{"type":"boolean","description":"boolean value indicating success or failure"},"error":{"type":"object","description":"error message","properties":{"code":{"type":"string","description":"error code of failure"},"message":{"type":"string","description":"detailed error message"}}}},"$$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"error":{"code":"NOT_FOUND","message":"Data not found"}}}},"$$ref":"#/components/responses/NotFound"},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","description":"Error response object","properties":{"success":{"type":"boolean","description":"boolean value indicating success or failure"},"error":{"type":"object","description":"error message","properties":{"code":{"type":"string","description":"error code of failure"},"message":{"type":"string","description":"detailed error message"}}}},"$$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"error":{"code":"INTERNAL_SERVER_ERROR","message":"Internal server error"}}}},"$$ref":"#/components/responses/InternalServerError"}},"security":[{"Bearer":[]}],"__originalOperationId":"undeployPipeline","method":"delete","path":"/pipelines/{pipelineId}"}}