createUserPhoto
Attach a new photo record to a member by providing the user ID, an image file already in site storage, and the 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 |
|---|---|---|---|
| file | Yes | Image filename | |
| type | Yes | ||
| user_id | Yes |