DAM: Files
Set a DAM file's focal point
Sets the focal point of a file, which crops made by download templates and the CDN are centred on. Both coordinates are pixels in the full-size image as it is displayed, with the top left corner at 0,0 and EXIF rotation already applied, and must fall within the width and height of that image. The width and height attributes of a file are its stored pixels, so swap them when its rotation is 90 or 270. Cached crops of the file are invalidated so the next delivery re-renders around the new focal point. Requires write access to the file.
patch/dam/files/{file_id}/focal-point
Request
- Base URLhttps://api.kontainer.com/jsonapi/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
file_idstring required
ID of File
Request body
Example request
{
"data": {
"type": "focal_point",
"attributes": {
"x_coordinate": 640,
"y_coordinate": 360
}
}
}Response
success
Example response
{
"data": {
"id": "1234",
"type": "focal_point",
"attributes": {
"x_coordinate": 640,
"y_coordinate": 360,
"created_at": "2026-08-05T10:00:00+00:00",
"updated_at": "2026-08-05T10:00:00+00:00"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.