Set Primary Photos
POST
/v1/actions/set-primary-photos
const url = 'https://example.com/api/v1/actions/set-primary-photos';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/actions/set-primary-photos \ --header 'Authorization: <Authorization>'Sets the first photo of each item as the primary photo
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
completed
integer
Examplegenerated
{ "completed": 1}