queryBranches( )


Retrieves a list of branches, given the provided paging, filtering, and sorting.

Query Branches runs with these defaults, which you can override:

  • updatedDate is sorted in DESC order
  • paging.limit is 50
  • paging.offset is 0

For field support for filters and sorting, see Supported Filters and Sorting.

To learn how to query branches, see API Query Language.

PROPERTYSUPPORTED FILTERS & SORTING
sourceBranchProperties.branchIdeq()
sourceBranchProperties.branchRevisioneq()
typeeq(),ne(),exists(),in(),hasSome(),ascending(),descending()
nameeq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending()
lastPublishDateeq(),ne(),exists(),in(),hasSome(),lt(),le(),gt(),ge(),ascending(),descending()
editorTypeeq(),ne(),exists(),in(),hasSome(),ascending(),descending()
editorType.editorTypeOptionseq(),ne(),exists(),in(),hasSome(),ascending(),descending()
_createdDateeq(),ne(),exists(),in(),hasSome(),lt(),le(),gt(),ge(),ascending(),descending()
_updatedDateeq(),ne(),exists(),in(),hasSome(),lt(),le(),gt(),ge(),ascending(),descending()
Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Manage Site Branches
Learn more about app permissions.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?