Allow to change orders of previews for a single revision.
PUT
/actions/preview-files/{preview_file_id}/update-position
curl
curl -X PUT "http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-position" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"position": 2
}'
import requests
url = "http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-position"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
"Content-Type": "application/json"
}
params = {}
payload = {
"position": 2
}
response = requests.put(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
curl \
--request PUT 'http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-position' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"position":2}'
Request examples
{
"position": 2
}
Response examples (200)
{
"id": "a24a6ea4-ce75-4665-a070-57453082c25",
"position": 2
}