Create photo upload link
pedra_create_upload_linkCreate a no-login 24-hour upload link for sending phone/computer photos, 360° images, or virtual tour files into a property.
Instructions
Get a link where the user (or their photographer) uploads photos from their phone or computer into a property. No login, valid 24 hours. Use this whenever the photos are files on the user's device that weren't attached to the chat: for editing, videos or virtual tours. Regular photos and 360° photos both work (360° photos are recognised automatically); pass type "360" for a virtual tour so anything else is refused. Creates the property if no propertyId is given. Give the user the uploadUrl, wait until they say they're done, then use pedra_list_property_images (type "360" for 360° photos), or pedra_create_virtual_tour with the propertyId. (With this local server, files on this computer can also be passed directly: a local path as imageUrl, or pedra_add_local_panoramas for 360° photos.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the new property, e.g. the listing address. Ignored when propertyId is given. | |
| type | No | "any" (default) takes photos and 360° photos; "360" only takes 360° photos. | |
| language | No | Language of the tour page and of AI room names. Defaults to "en". | |
| propertyId | No | Property to upload into (from pedra_list_properties). Omit to create a new one. |