Actions144
- Activity Log Actions
- API Info Actions
- Article Actions
- Asset Actions
- Asset Layout Actions
- Asset Layout Field Actions
- Asset Password Actions
- Card Actions
- Company Actions
- Expiration Actions
- Export Actions
- Folder Actions
- Group Actions
- IP Address Actions
- List Actions
- List Options Actions
- Magic Dash Actions
- Matcher Actions
- Network Actions
- Password Folder Actions
- Photo Actions
- Procedure Actions
- Procedure Task Actions
- Public Photo Actions
- Rack Storage Actions
- Rack Storage Item Actions
- Relation Actions
- S3 Export Actions
- Upload Actions
- User Actions
- VLAN Actions
- VLAN Zone Actions
- Website Actions
Photo → Create
AI-generatedOverview
This node operation allows users to create a photo entry in the Hudu system by uploading an image file along with associated metadata. It is useful for scenarios where users want to programmatically add photos to their Hudu account, such as attaching images to companies, assets, or articles within their documentation or asset management workflows.
Use Case Examples
- Uploading a company logo or asset image with a caption and associating it with a specific company or folder.
- Adding a photo to an article or documentation page with a descriptive caption and optional metadata like pinned status or attachment type.
Properties
| Name | Meaning |
|---|---|
| File | The name of the binary property containing the image file to upload, required for the photo creation. |
| Caption | Caption or title for the photo, required to describe the photo content. |
| Additional Fields | Optional metadata fields to specify additional details about the photo, such as company association, folder placement, attachment record ID and type, and whether the photo should be pinned. |
Output
JSON
id- Unique identifier of the created photo.caption- Caption or title of the created photo.url- URL link to access the uploaded photo.company_id- ID of the company the photo belongs to, if specified.folder_id- ID of the folder containing the photo, if specified.photoable_id- ID of the record the photo is attached to, if specified.photoable_type- Type of record the photo is attached to, if specified.pinned- Indicates if the photo is pinned.
Dependencies
- Requires an API key credential for authenticating with the Hudu REST API.
Troubleshooting
- Common issues include missing or incorrect binary property name for the image file, resulting in upload failure.
- Errors may occur if required fields like caption are missing or if invalid IDs are provided for company, folder, or attachment records.
- API authentication errors if the API key credential is not set or invalid.
- Ensure the photo file is in a supported image format and not corrupted.
Links
- Hudu API - Create Photo - Official API documentation for creating photos in Hudu.