Actions21
Overview
This node interacts with the Financial Cents API to manage project resources, specifically allowing users to delete a resource (user) assigned to a project. It is useful in scenarios where you need to remove a user's access or association with a particular project within Financial Cents.
For example, if a team member leaves a project or organization, this node can be used to programmatically remove their user ID from the project's resources list, ensuring that they no longer have permissions or visibility on that project.
Properties
| Name | Meaning |
|---|---|
| Debug: Include Raw Response | If enabled, the raw JSON response from the API will be included in each output item under __raw. Useful for debugging or inspecting full API responses. |
| Use /projects path (not /work) | When enabled, the node uses the /projects API endpoint path instead of /work. This depends on your API version or configuration. |
| Project | The specific project to operate on. You select the project by its name or ID from a loaded list. |
| User ID | The user ID of the resource to remove from the project. This is required to identify which user to delete as a project resource. |
Output
The node outputs an array of JSON objects representing the result of the delete operation. The typical structure includes:
- A success indicator or any returned data from the API confirming the deletion.
- If "Debug: Include Raw Response" is enabled, the raw API JSON response is included under the
__rawproperty for each item.
Example output JSON snippet when deletion is successful:
{
"success": true,
"__raw": { /* full raw API response */ }
}
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the Financial Cents API.
- The node depends on the Financial Cents API being accessible and properly configured.
- The user must have appropriate permissions to delete project resources via the API.
- Optionally, the node may require correct API endpoint paths depending on whether
/projectsor/workis used.
Troubleshooting
Missing User ID: If the User ID is not provided when attempting to delete a project resource, the node throws an error:
"User ID is required to delete a project resource."
Ensure you specify the User ID of the resource to remove.Invalid Project ID: If the selected project does not exist or the ID is incorrect, the API call will fail. Verify the project selection.
API Authentication Errors: If the API key credential is missing or invalid, requests will fail with authentication errors. Confirm that the API key is correctly set up in n8n credentials.
Endpoint Path Mismatch: If your API uses
/projectsbut the node is configured to use/work(or vice versa), operations may fail. Toggle the "Use /projects path (not /work)" option accordingly.Permission Issues: The authenticated user must have permission to delete resources from the project. Lack of permissions will cause API errors.
Links and References
- Financial Cents API Documentation (general reference for endpoints and usage)
- n8n Documentation on Creating Custom Nodes
- For API authentication setup, refer to your Financial Cents account settings for generating API keys.
This summary covers the static analysis of the node's execute method for the "Project Resource" resource and "Delete" operation, based on the provided source code and properties.