arazzo: 1.0.1
info:
title: Logz.io Notification Endpoint Cleanup
summary: List notification endpoints, confirm one by id, and delete it.
description: >-
Safely removes a notification endpoint. The workflow lists all notification
endpoints configured in the account, reads the targeted endpoint by id to
confirm its type and title before any destructive action, then deletes the
endpoint. Every step spells out its request inline so the flow can be read
and executed without opening the underlying OpenAPI description.
version: 1.0.0
sourceDescriptions:
- name: logzioApi
url: ../openapi/logz-io-manage-notification-endpoints-api-openapi.yml
type: openapi
workflows:
- workflowId: cleanup-endpoint
summary: Confirm a notification endpoint exists and then delete it.
description: >-
Lists notification endpoints, retrieves the target endpoint by id, and
deletes it.
inputs:
type: object
required:
- apiToken
- endpointId
properties:
apiToken:
type: string
description: Logz.io API token sent in the X-API-TOKEN header.
endpointId:
type: integer
description: ID of the notification endpoint to delete.
steps:
- stepId: listEndpoints
description: >-
Retrieve all notification endpoints configured in the account so the
target endpoint can be confirmed.
operationId: getAllEndpoints
parameters:
- name: X-API-TOKEN
in: header
value: $inputs.apiToken
successCriteria:
- condition: $statusCode == 200
- stepId: getEndpoint
description: >-
Read the targeted endpoint by id to confirm its type and title before
deleting it.
operationId: getEndpointById
parameters:
- name: X-API-TOKEN
in: header
value: $inputs.apiToken
- name: id
in: path
value: $inputs.endpointId
successCriteria:
- condition: $statusCode == 200
outputs:
endpointType: $response.body#/endpointType
title: $response.body#/title
- stepId: deleteEndpoint
description: >-
Delete the confirmed notification endpoint by its id.
operationId: deleteEndpoint
parameters:
- name: X-API-TOKEN
in: header
value: $inputs.apiToken
- name: id
in: path
value: $inputs.endpointId
successCriteria:
- condition: $statusCode == 204
outputs:
deletedEndpointId: $inputs.endpointId
deletedEndpointType: $steps.getEndpoint.outputs.endpointType
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.