Skip to main content

PhotosRequest

A request to the Assistant V2 API for photo recommendations.

Fields

PropertyRequiredTypeDescription
idTruestringUnique identifier of the article
titleFalsestringTitle or subject of the article, when available; mutually exclusive with the paraSpecs parameter
leadFalsestringLead or abstract of the article, when available; mutually exclusive with the paraSpecs parameter
textFalsestringMain text or body of the article; mutually exclusive with the paraSpecs parameter
paraSpecsFalseList[ParaSpec]Article paragraphs; mutually exclusive with title and text parameters
categoriesFalseList[Category]Categories of the article
referenceDateFalsestringDate to be used for the analysis as a reference; values: NOW or in format YYYY-MM-DD
languageFalsestringLanguage of the article
presentationLanguageFalsestringPresentation language of the results
recommendationCountFalseintegerNumber of photographs to recommend
altPhotosCountFalseintegerMaximum number of photo alternatives to return per recommended photograph
constraintsFalsePhotoConstraintsConstraints and restrictions on the photo properties to narrow down the photo recommendation results
returnAltPhotosFalsebooleanReturn photo alternatives, when available, for the recommended photographs
returnObjectsFalsebooleanReturn PhotoData objects in addition to the photo IDs for the recommended photographs
returnObjectFieldsFalseList[string]List of photo fields to return in the PhotoData object. Ignored if returnObjects is not set to true. Photo ID field is always returned, even if not mentioned in returnObjectFields. If returnObjectFields is not specified then all photo fields are returned
cursorFalsestringEnables pagination. If cursor parameter is missing, pagination is disabled. To enable pagination, set the value to *. To retrieve the next page, use nextCursor from the previous result. Make sure not to change other parameters in a pagination request