Skip to main content
When this API operates on the current page, call getPageDisplaySize first to get the current page display size. Do not call PluginFileAPI.getPageSize to get the file page size, otherwise the position data may not match.
The elements you pass in typically come from existing elements (with uuid) obtained via getElements, etc.; uuid stays the same before and after modification. Two checks apply here as well: the uuid must still be present in the native cache (if not found, the item is silently skipped without a separate error), and the element must already exist on the page; a missing cache entry is caught at the earlier stage and never reaches the “does it already exist on the page” check. See Element Caching and Release for details. Parameters Returns
  • APIResponse<number[]>: result is the list of in-page element indices modified successfully, starting from 1
Throws
  • Throws a parameter validation error when elements is not a valid element array
  • Throws a parameter validation error when page is not an integer greater than or equal to 0
  • Throws a parameter validation error when layer is provided but is not an integer in the range 0-3

Example