Actions66
- Block Actions
- Block Action Actions
- Booking Actions
- Group Actions
- Offer Actions
- Payment Account Actions
- Payment Account Action Actions
- Reservation Actions
- Reservation Action Actions
- Types Actions
- Folio Actions
- Folio Action Actions
Block → HEAD block exists
AI-generatedOverview
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
- Before deleting a block, use this operation to confirm the block exists to avoid errors.
- 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
- Apaleo API Documentation - HEAD Block Exists - Official documentation for the HEAD block exists operation in the Apaleo API.