HumanFirst icon

HumanFirst

Call HumanFirst playbook API

Delete Package

AI-generated

Overview

This node operation deletes a single package (referred to as a 'prompt' in the code) by its ID from a specified playbook within a namespace in the HumanFirst platform. It is useful for managing and cleaning up packages that are no longer needed in a playbook.

Use Case Examples

  1. Deleting an outdated or incorrect package from a playbook to maintain the playbook's relevance and accuracy.
  2. Removing a test package after validation to keep the playbook clean.

Properties

Name Meaning
Namespace The namespace under which the playbook exists. Required to identify the scope of the playbook.
Playbook ID The unique identifier of the playbook from which the package will be deleted.
Package ID The unique identifier of the package (prompt) to be deleted from the playbook.

Output

JSON

  • json - The JSON response from the HumanFirst API confirming the deletion or providing status information.

Dependencies

  • Requires an API key credential for the HumanFirst API to authenticate requests.

Troubleshooting

  • Common issues include missing or incorrect Namespace, Playbook ID, or Package ID, which will cause the API request to fail.
  • API authentication errors if the API key is invalid or missing.
  • Network or permission errors from the HumanFirst API service.
  • Error messages from the API will be returned in the JSON response, which can help diagnose issues.

Discussion