Actions52
- Project Actions
- Project Photo Actions
- Project Collaborator Actions
- Project Document Actions
- Project User Actions
- Project Label Actions
- Project Checklist Actions
- User Actions
- Photo Actions
- Tag Actions
- Group Actions
- Other Actions
Overview
The "Delete Photo" operation in the Photo resource of this node allows users to remove a specific photo from their CompanyCam account via the CompanyCam API. This is useful for managing and organizing project photos by deleting outdated, incorrect, or unwanted images.
Typical use cases include:
- Cleaning up project photo libraries by removing irrelevant photos.
- Automating photo management workflows where photos are deleted after certain conditions are met (e.g., after approval or archiving).
- Integrating with other systems that require synchronization of photo data, including deletion.
Properties
| Name | Meaning |
|---|---|
| Resource | The type of entity to operate on; here it is "Photo". |
| Operation | The action to perform on the resource; here it is "Delete Photo". |
| Notice | Informational notices displayed in the node UI indicating incomplete features or funding. |
Note: The provided properties JSON only contains notice-type entries indicating that some parts of the node are not yet built or funded. No explicit input parameters for the Delete Photo operation are shown in the provided snippet. Typically, such an operation would require at least a photo identifier to specify which photo to delete.
Output
The output of the Delete Photo operation typically includes a JSON object confirming the deletion status. This might be a success message or an error description if the deletion failed.
Since the source code does not explicitly show the output structure, the expected output JSON usually contains fields like:
{
"success": true,
"message": "Photo deleted successfully",
"photoId": "string"
}
If binary data were involved (which is unlikely for a delete operation), it would represent file contents or attachments, but this operation focuses on deletion confirmation.
Dependencies
- Requires an active connection to the CompanyCam API.
- Needs an API key credential configured in n8n for authentication.
- The base URL for API requests is
https://api.companycam.com/v2. - Proper permissions on the API key to delete photos.
Troubleshooting
Common Issues:
- Missing or invalid photo ID parameter (not shown in the provided properties but required logically).
- Insufficient API permissions leading to authorization errors.
- Network connectivity issues preventing access to the CompanyCam API.
- Attempting to delete a photo that does not exist or has already been deleted.
Error Messages:
- 401 Unauthorized: Check that the API key credential is correctly set and has necessary permissions.
- 404 Not Found: Verify the photo ID is correct and exists.
- 400 Bad Request: Ensure all required parameters are provided and valid.
- 500 Internal Server Error: Retry later or contact CompanyCam support.