Apaleo icon

Apaleo

Interact with Apaleo API

Actions66

Block → HEAD block exists

AI-generated

Overview

This node operation checks if a specific block exists in the Apaleo system by performing a HEAD request using the block's ID. It is useful for verifying the existence of a block before performing further actions such as retrieval or deletion, ensuring that subsequent operations do not fail due to a missing block.

Use Case Examples

  1. Before deleting a block, use this operation to confirm the block exists to avoid errors.
  2. Check if a block is present in the system before attempting to update or retrieve its details.

Properties

Name Meaning
Block ID The unique identifier of the block to check for existence.

Output

JSON

  • exists - Boolean indicating whether the block exists (true) or not (false).

Dependencies

  • Requires an API authentication token (access token) for the Apaleo API.

Troubleshooting

  • If the block ID is invalid or not provided, the node will throw an error indicating the block cannot be found.
  • Ensure the API credentials are correctly set and have the necessary permissions to access block data.
  • If the API returns a 404 status, it means the block does not exist; handle this gracefully in your workflow.

Links

Discussion