createUserPhoto
Attach a photo record to a member by providing their user ID, an image filename already in storage, and the photo type (logo, photo, or cover photo).
Instructions
Create a user photo - Create a new userphoto record. Writes live data.
Use when: attaching a new photo record to a member. The image file must already exist in site storage (upload via admin or auto_image_import).
Required: user_id, file, type.
Parameter interactions:
user_id- the membertype- slot:logo,photo, orcover_photofile- image filename (must already exist in site storage)
See also: updateUserPhoto (modify existing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | ||
| file | Yes | Image filename | |
| type | Yes |