Search
Search
The platform provides system methods to search and filter results by their metadata. For example, /system/findDataObjects can return a list of all data objects that you can access, filtered by name, tags, types, regions, properties, and other metadata attributes.
Regular Expressions and Globbing
In some of these API methods, you can restrict your search to names matching a particular regular expression or a glob (wildcard pattern). For the glob pattern, the wildcard "*" matches a string of any length and the wildcard "?" matches a single character. (The bracket notation [] is not supported.) If you are searching for the actual characters * , ?, or \, you must escape them with a backslash, for example, \* instead of *. Because backslashes must themselves be escaped in JSON strings, your API input requires double escaping: the input string "\\*a\\?xfoo\\\\" matches the exact string "*a?xfoo\".
Pagination of Results
The limit and starting input parameters, together with the next output field, can be used to paginate the results. The limit parameter determines the maximum number of returned results. If there are more results than limit allowed for, then next is non-null and may be used as the starting argument for a subsequent call. If the call is repeated with the starting input parameter set to the previous call's next return value, then the next unique subset of results is returned. Repeat this process until next is null to retrieve all results.
Search API Method Specifications
API method: /system/findDataObjects
/system/findDataObjectsSpecification
Searches for data objects satisfying particular constraints. By default this returns all entities and objects for which the user has at least "VIEW" permission (permission acquired by PUBLIC nature of a project is not counted in this criterion). This constraint cannot be removed. However, additional constraints can be specified that can further restrict the objects that are returned.
Ordering of results: Data objects from the same project always appear together in the search results in descending order of their last modified timestamp, unless overwritten by the sortBy input field. Ties are broken in ascending order of their IDs.
Inputs
classstring (optional) The entity type to restrict the search by.Must be one of
"record","file","applet", or"workflow".
statestring (optional) The state to filter results by. Defaults to"any".Must be one of
"open","closing","closed", or"any".
visibilitystring (optional) The visibility filter for results. Defaults to"visible".Must be one of
"hidden","visible", or"either".
namestring or mapping (optional) If a string, the exact case-sensitive name that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the name of all results must match.flagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expression.globstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the name of all results must match. The valid wildcard characters are"*"(0 or more characters) and"?"(1 character).
idarray of strings (optional) If provided, results must have object IDs among the provided list of IDs. If the ID is not accessible to the user or does not exist, that ID is not included in the results array. The array may have no more than 1000 elements. The number of results may exceed the number of IDs provided here because an object appears once in the results for each accessible project it is found in, unlessscope.projectis set.typestring or mapping (optional) Specifies the types that matching results must have. Can be provided in the following ways:A string to match a single type exactly, for example,
"gene".An AND condition requiring all specified types to match, for example,
{"$and": ["gene", "coding"]}.An OR condition requiring at least one specified type to match, for example,
{"$or": ["gene", "transcript"]}.Complex nested conditions:
{"$or": ["gene", {"$and": ["transcript", "protein"]}]}.
tagsstring or mapping (optional) Specifies the tags that matching results must have. Can be provided in the following ways:A string to match a single tag exactly, for example,
"validated".An AND condition requiring all specified tags to match, for example,
{"$and": ["validated", "curated"]}.An OR condition requiring at least one specified tag to match, for example,
{"$or": ["validated", "provisional"]}.Complex nested conditions:
{"$or": ["validated", {"$and": ["curated", "published"]}]}.
regionstring or array of strings (optional) If a string, then the result set contains only entities whose associatedregionmatches the string. If an array, then the result set contains only entities whose associatedregionis one of the specified strings.propertiesmapping (optional) Specifies the properties that matching results must have. Can be provided in the following ways:A mapping of key-value pairs where each key is a property name and each value can be:
A string: The property must have exactly this value, for example,
{"species": "human"}.A boolean
true: The property must exist with any value, for example,{"sequenced": true}.A boolean
false: The property must not exist, for example,{"deprecated": false}.The mapping
{$ne: value}: The property must not equal the specified value, for example,{"species": {$ne: "mouse"}}.
An AND condition requiring all specified property constraints to match, for example,
{"$and": [{"species": "human"}, {"sequenced": true}]}.An OR condition requiring at least one specified property constraint to match, for example,
{"$or": [{"species": "human"}, {"species": "mouse"}]}.Complex nested conditions:
{"$or": [{"species": "human"}, {"$and": [{"sequenced": true}, {"quality": "high"}]}]}.
linkstring (optional) An object ID to which matching objects must link to in their details.scopemapping (optional) Restrict the search to a particular project.projectstring (required) ID of the project in which all results must reside.folderstring (optional) Folder path inprojectin which all results must reside. Defaults to"/".recurseboolean (optional) Whether the search should be performed recursively on subfolders as well. Defaults totrue.
sortBymapping (optional) Changes the ordering that the result set is returned in. Must be specified with thescopefield.fieldstring (required) The field that determines the sort order of the result set.Must be
"created".
orderingstring (required) The arrangement of the result set based on the field.Must be one of
"ascending"or"descending".
levelstring (optional) The minimum permissions level by which to restrict the list of projects searched. Defaults to"VIEW".Must be one of
"VIEW","UPLOAD","CONTRIBUTE", or"ADMINISTER".
modifiedmapping (optional) If at least one of the following keys is specified, the resulting data objects must have been last modified in the indicated time period. If not specified, there is no constraint on when the data object was last modified. If amodifiedhash does not contain at least one of the following keys, an error is thrown.createdmapping (optional) If at least one of the following keys is specified, the resulting data objects must have been created in the indicated time period. If not specified, there is no constraint on data object creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.describeboolean or mapping (optional) Controls whether extra metadata is retrieved with the results. Defaults tofalse.If a mapping, represents the input for calling the result's corresponding describe method.
startingmapping (optional) Continue a previous query that had reached its limit. The non-null value that was returned asnextin the query's output should be provided here.limitinteger (optional) Maximum number of results that may be returned. Defaults to1000. Must be between 1 and 1000 (inclusive).archivalStatestring (optional) The archival state to filter results by. Requires the additional inputclasshaving the value"file".scope.projectandscope.foldermust also be set. Defaults to"any".Must be one of
"archived","live","archival","unarchiving", or"any".
Outputs
resultsarray of mappings List of results, each with the following fields:projectstring ID of the project in which the result was found.idstring ID of the result.describemapping The output of the result's corresponding describe method.Only present when
describewas supplied as an input.
nextmapping (nullable) Pagination cursor, ornullif all results were reported inresults. If a mapping, pass this value directly tostartingin a subsequent query if more results are desired.
Errors
InvalidInput
The input is not a hash
class(if supplied) is not one of: "record", "file", "applet", or "workflow"state(if supplied) is not one of: "open", "closing", "closed", or "any"visibility(if supplied) is not one of: "hidden", "visible", or "either"level(if supplied) is not one of: "VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER"name(if supplied) is not a string or a mapping such that any of the following is satisfiedflagsis present, but keyregexpis missing or the value supplied toflagsis not "i".Mutually exclusive keys
globandregexpare provided togetherNeither
globnorregexpis present
id(if supplied) is an array containing greater than 1000 elementstype,properties, ortags(if supplied) do not take any of the specified valuesregion(if supplied) is not a supported region. See Regions for more informationmodifiedorcreated(if supplied) does not contain either anafterorbeforetimestamplimitis not between 1 and 1000sortBywas specified without also specifyingscopearchivalStateif supplied, is not one of "archived", "live", "archival", "unarchiving", or "any". Also returns error if the value of class is not "file",scope.projectis not set, orscope.folderis not set.
PermissionDenied
VIEW access to the project specified in
scope.projectis required ifscope.projectis supplied.
API method: /system/findDatabases
/system/findDatabasesSpecification
Searches for database data objects satisfying particular constraints. By default this returns all database objects from projects for which the user has at least "VIEW" permission and which are accessible through the license. Permission acquired by PUBLIC nature of a project is counted in this criterion only when public key of the input is set to true. Additional constraints can be specified that can further restrict the objects that are returned.
Ordering of results: Database data objects from the same project always appear together in the search results in descending order of their last modified timestamp, with ties broken in ascending order of their IDs.
Inputs
databaseNamestring or mapping (optional) If a string, the exact case-sensitivedatabaseNamethat the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that thedatabaseNameof all results must match.flagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expression.globstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that thedatabaseNameof all results must match. The valid wildcard characters are"*"(0 or more characters) and"?"(1 character).
uniqueDatabaseNamestring or mapping (optional) If a string, the exact case-sensitive uniqueDatabaseName that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the uniqueDatabaseName of all results must match.flagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expression.globstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the uniqueDatabaseName of all results must match. The valid wildcard characters are"*"(0 or more characters) and"?"(1 character).
visibilitystring (optional) The visibility filter for results. Defaults to"visible".Must be one of
"hidden","visible", or"either".
regionstring or array of strings (optional) If a string, then the result set contains only entities whose associatedregionmatches the string. If an array, then the result set contains only entities whose associatedregionis one of the specified strings.scopemapping (optional) Restrict the search to a particular project.projectstring (required) ID of the project in which all results must reside.folderstring (optional) Folder path inprojectin which all results must reside. Defaults to"/".recurseboolean (optional) Whether the search should be performed recursively on subfolders as well. Defaults totrue.
levelstring (optional) The minimum permissions level by which to restrict the list of projects searched. Defaults to"VIEW".Must be one of
"VIEW","UPLOAD","CONTRIBUTE", or"ADMINISTER".
publicboolean (optional) Whether the search should be performed also on PUBLIC projects. Defaults tofalse.modifiedmapping (optional) If at least one of the following keys is specified, the resulting data objects must have been last modified in the indicated time period. If not specified, there is no constraint on when the data object was last modified. If amodifiedhash does not contain at least one of the following keys, an error is thrown.createdmapping (optional) If at least one of the following keys is specified, the resulting data objects must have been created in the indicated time period. If not specified, there is no constraint on data object creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.describeboolean or mapping (optional) Controls whether extra metadata is retrieved with the results. Defaults tofalse.If a mapping, represents the input for calling the result's corresponding describe method.
startingmapping (optional) Continue a previous query that had reached its limit. The non-null value that was returned asnextin the query's output should be provided here.limitinteger (optional) Maximum number of results that may be returned. Defaults to1000. Must be between 1 and 1000 (inclusive).
Outputs
resultsarray of mappings List of results, each with the following fields:projectstring ID of the project in which the result was found.idstring ID of the result.levelstring Permission level of the project in which the result was found.describemapping The output of the result's corresponding describe method.Only present when
describewas supplied as an input.
nextmapping (nullable) Pagination cursor, ornullif all results were reported inresults. If a mapping, pass this value directly tostartingin a subsequent query if more results are desired.
Errors
InvalidInput
databaseNameoruniqueDatabaseName(if supplied) is not a string or a mapping such that any of the following is satisfied *flagsis present, but keyregexpis missing or the value supplied toflagsis not "i".Mutually exclusive keys
globandregexpare provided togetherNeither
globnorregexpis present
level(if supplied) is not one of: "VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER"region(if supplied) is not one of the supported regions. See Regions for more informationmodifiedorcreated(if supplied) does not contain either anafterorbeforetimestamplimitis not between 1 and 1000
ResourceNotFound
Project specified in
scope.projectorstarting.projectneeds to be under license to be accessible for this action
PermissionDenied
VIEW access to the project specified in
scope.projectis required ifscope.projectis suppliedVIEW access to the project specified in
starting.projectis required ifstartingis supplied
API method: /system/findExecutions
/system/findExecutionsSpecification
Searches for execution (job or analysis) objects.
Ordering of results: Jobs and analyses returned by /system/findExecutions, /system/findJobs, and /system/findAnalyses are sorted by their created timestamp (in descending order, that is, the latest execution appears first). Ties are broken in ascending order of their IDs. Job tries with the same created timestamp and same job ID are returned in an undefined order that is consistent across API calls.
Inputs
classstring (optional) Entity type to restrict the search by.Must be one of
"job"or"analysis".
includeSubjobsboolean (optional) If set to false, only non-subjob executions are returned, which includes master jobs, origin jobs, or analyses. Defaults totrue.includeRestartedboolean (optional) If set to true, returns information about initial job tries for restarted jobs and jobs within execution subtrees rooted in these initial tries (for jobs belonging to root executions launched after July 12, 2023 00:13 UTC) also to the final job tries and execution subtrees rooted in the final job tries which are returned for bothtrueandfalsevalues of this input argument. When settingincludeRestartedflag to true, use thedescribeinput argument to output the values oftryto distinguish between different tries of the same output job ID. Defaults tofalse.launchedBystring (optional) ID of the user who launched the job.namestring or mapping (optional) If a string, the exact case-sensitive name that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the name of all results must match.flagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expression.globstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the name of all results must match. The valid wildcard characters are"*"(0 or more characters) and"?"(1 character).
idarray of strings (optional) If provided, results must have execution IDs among the provided list of IDs. The array may have no more than 1000 elements. Job IDs (if provided) output information for the latest tries./system/describeExecutionscan be used to fetch information about specific job tries.executablestring (optional) ID of the executable (app or applet) that the results were responsible for running.projectstring (optional) ID of the project context, or the project in which the job was launched.tagsstring or mapping (optional) Specifies the tags that matching results must have. Can be provided in the following ways:A string to match a single tag exactly, for example,
"completed".An AND condition requiring all specified tags to match, for example,
{"$and": ["completed", "verified"]}.An OR condition requiring at least one specified tag to match, for example,
{"$or": ["completed", "in_progress"]}.Complex nested conditions:
{"$or": ["completed", {"$and": ["verified", "reviewed"]}]}.
propertiesmapping (optional) Specifies the properties that matching results must have. Can be provided in the following ways:A mapping of key-value pairs where each key is a property name and each value can be:
A string: The property must have exactly this value, for example,
{"status": "success"}.A boolean
true: The property must exist with any value, for example,{"benchmark": true}.
An AND condition requiring all specified property constraints to match, for example,
{"$and": [{"status": "success"}, {"benchmark": true}]}.An OR condition requiring at least one specified property constraint to match, for example,
{"$or": [{"status": "success"}, {"status": "partial_success"}]}.Complex nested conditions:
{"$or": [{"status": "success"}, {"$and": [{"benchmark": true}, {"quality": "high"}]}]}.
statestring or array of strings (optional) States that the results must be in. Possible values by execution type:Execution typeStatesJob
idle,waiting_on_input,runnable,running,waiting_on_output,done,restarted,restartable,debug_hold,failed,terminating,terminatedAnalysis
in_progress,done,partially_failed,failed,terminating,terminatedQueries to
/system/findExecutionscan use states from either list.rootExecutionstring or array of strings (optional) One or more IDs of the top-level (user-initiated) execution. The results are constrained to executions in those execution trees. IfincludeRestartedinput is set to true, trees for all tries with the specified root executions (all tries of the root executions, and everything rooted in all the tries) are returned for root executions launched after July 12, 2023 00:13 UTC.originJobstring or array of strings (optional) Restrict results to executions which have one of the provided string IDs as an origin job. An origin job is one launched via/app-xxxx/runor/applet-xxxx/run, or as a stage in an analysis. IfincludeRestartedinput is set to true, trees for all tries with the specified origin jobs are returned for origin jobs that belong to root executions launched after July 12, 2023 00:13 UTC.parentJobstring (optional, nullable) If the value is a string, then all results must be executions directly launched byparentJob. If the value isnull, then only executions with no parent job are searched. Usenullvalues for this field andparentAnalysisto restrict the search to root executions only.parentJobTrynon-negative integer (optional) IfincludeRestartedis true andparentJobTryis specified, only the children ofparentJobTryofparentJobare returned. IfparentJobstring is specified butparentJobTryis not specified, only the children of the latestparentJobtry are returned.parentAnalysisstring (optional, nullable) If the value is a string, then all results must be executions launched as stages ofparentAnalysis. If the value isnull, then only executions which do not have a parent analysis are searched. Usenullvalues for this field andparentJobto restrict the search to root executions only.createdmapping (optional) If at least one of the following keys is specified, the resulting execution objects must have been created in the indicated time period. If not specified, there is no constraint on execution object creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.describeboolean or mapping (optional) Controls whether extra metadata is retrieved with the results. Defaults tofalse.If a mapping, represents the input for calling the corresponding describe method on each result. The mapping should be of the format
{"fields": {"field1": true, "field2": true, ...}}.
startingstring (optional) Continue a previous query that had reached its limit. The non-null value that was returned asnextin the query's output should be provided here.limitinteger (optional) Maximum number of results that may be returned. Defaults to1000. Must be between 1 and 1000 (inclusive).
Outputs
resultsarray of mappings List of results, each with the following fields:idstring ID of the result.describemapping The output of the result's corresponding describe method.Only present when
describewas set as an input.
nextstring (nullable) Pagination cursor, ornullif all results were reported inresults. If a string, pass this value directly tostartingin a subsequent query if more results are desired.
Errors
InvalidInput
idinput cannot be specified withincludeRestartedset totrueparentJobTrycannot be specified without specifyingparentJobinputparentJobTrycannot be specified withoutincludeRestartedset totrue
See Errors (Protocols) for additional information.
API method: /system/findAnalyses
/system/findAnalysesThis method is the same as /system/findExecutions with the class constraint set to "analysis".
API method: /system/findJobs
/system/findJobsThis method is the same as /system/findExecutions with the class constraint set to "job".
API method: /system/findApps
/system/findAppsSpecification
This API method provides functionality to search for apps. The ordering of results is arbitrary. Only apps for which the requesting user has access to are returned. This includes apps where the user is on the authorized users list.
Inputs
namestring or mapping (optional) If a string, the exact case-sensitive name that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the name of all results must match.flagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expression.globstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the name of all results must match. The valid wildcard characters are"*"(0 or more characters) and"?"(1 character).
categorystring or mapping (optional) Specifies the category or categories that matching apps must have. Can be provided in the following ways:A string to match a single category exactly, for example,
"Alignment".An AND condition requiring all specified categories to match, for example,
{"$and": ["Alignment", "NGS"]}.An OR condition requiring at least one specified category to match, for example,
{"$or": ["Alignment", "Variant Calling"]}.Complex nested conditions:
{"$or": ["Alignment", {"$and": ["NGS", "RNA-Seq"]}]}.
allVersionsboolean (optional) Whether to remove the restriction that only app versions tagged with "default" are returned. Defaults tofalse.publishedboolean (optional) If true, only published apps are returned. If false, only unpublished apps are returned.billTostring or array of strings (optional) If a string, then the result set contains only apps whosebillTomatches the string. If an array, then the result set contains only apps whosebillTois one of the specified entities.createdBystring (optional) ID of the user who created the app.developerstring (optional) ID of a developer the app must have.authorizedUserstring (optional) userID, orgID or "PUBLIC" that must exist in each app'sauthorizedUserslist.modifiedmapping (optional) If at least one of the following keys is specified, the resulting apps must have been last modified in the indicated time period. If not specified, there is no constraint on when the app was last modified. If amodifiedhash does not contain at least one of the following keys, an error is thrown.createdmapping (optional) If at least one of the following keys is specified, the resulting apps must have been created in the indicated time period. If not specified, there is no constraint on app creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.describeboolean or mapping (optional) Controls whether extra metadata is retrieved with the results. Defaults tofalse.If a mapping, represents the input for calling
/app-xxxx/describeon each of the returned results.
startingstring (optional) Continue a previous query that had reached its limit. The value that was returned asnextin the query's output should be provided here.limitinteger (optional) Maximum number of results that may be returned. Defaults to1000. Must be between 1 and 1000 (inclusive).
Outputs
resultsarray of mappings List of results, each with the following fields:idstring ID of the result.describemapping The output of the result's corresponding describe method.Only present when
describewas set as an input.
nextstring (nullable) Pagination cursor, ornullif all results were reported inresults. If a string, pass this value directly tostartingin a subsequent query if more results are desired.
Errors
API method: /system/findProjects
/system/findProjectsSpecification
Find projects accessible to a user or job at a given permission level.
Ordering of results is:
Descending by last modified time stamp, then
Ascending by ID
Inputs
namestring or mapping (optional) If a string, the exact case-sensitive name that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the name of all results must match.flagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expression.globstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the name of all results must match. The valid wildcard characters are"*"(0 or more characters) and"?"(1 character).
idarray of strings (optional) If provided, results must have project IDs among the provided list of IDs. The array may have no more than 1000 elements.billTostring or array of strings (optional) If a string, then the result set contains only projects whosebillTomatches the string. If an array, then the result set contains only projects whosebillTois one of the specified strings.cloudAccountstring (optional) If specified, the result set contains only projects that are associated with the provided cloud account ID.providerstring (optional) If specified, the result set contains only projects that are associated with the provider ID.regionstring or array of strings (optional) If a string, then the result set contains only projects whoseregionmatches the string. If an array, then the result set contains only projects whoseregionis one of the specified strings.tagsstring or mapping (optional) Specifies the tags that matching results must have. Can be provided in the following ways:A string to match a single tag exactly, for example,
"production".An AND condition requiring all specified tags to match, for example,
{"$and": ["production", "validated"]}.An OR condition requiring at least one specified tag to match, for example,
{"$or": ["production", "development"]}.Complex nested conditions:
{"$or": ["production", {"$and": ["validated", "reviewed"]}]}.
propertiesmapping (optional) Specifies the properties that matching results must have. Can be provided in the following ways:A mapping of key-value pairs where each key is a property name and each value can be:
A string: The property must have exactly this value, for example,
{"department": "genomics"}.A boolean
true: The property must exist with any value, for example,{"confidential": true}.
An AND condition requiring all specified property constraints to match, for example,
{"$and": [{"department": "genomics"}, {"confidential": true}]}.An OR condition requiring at least one specified property constraint to match, for example,
{"$or": [{"department": "genomics"}, {"department": "proteomics"}]}.Complex nested conditions:
{"$or": [{"department": "genomics"}, {"$and": [{"confidential": true}, {"status": "active"}]}]}.
levelstring (optional) The minimum permissions level of the project results to be returned. Defaults to"CONTRIBUTE".Must be one of
"VIEW","UPLOAD","CONTRIBUTE", or"ADMINISTER".
explicitPermissionboolean (optional) If a value of true is provided, then the results are restricted to projects for which there is at least one explicit or implicit permission. If false, then the results are restricted to public projects for which the user has neither explicit nor implicit permissions.publicboolean (optional) If set to true, then only public projects are included in result. If false, then no public project is included in result.createdmapping (optional) If at least one of the following keys is specified, the resulting projects must have been created in the indicated time period. If not specified, there is no constraint on project creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.describeboolean or mapping (optional) Controls whether extra metadata is retrieved with the results. Defaults tofalse.If a mapping, represents the input for calling
/project-xxxx/describeon each of the returned results.
startingstring (optional) Continue a previous query that had reached its limit. The value that was returned asnextin the query's output should be provided here.containsPHIboolean (optional) If set to true, only projects that contain PHI data are retrieved. If set to false, only projects that do not contain PHI data are retrieved.externalUploadRestrictedboolean (optional) If provided, only projects with the specifiedexternalUploadRestrictedsetting are retrieved.limitinteger (optional) Maximum number of results that may be returned. Defaults to1000. Must be between 1 and 1000 (inclusive).sharedWithstring (optional) If specified, the results are restricted to projects that are explicitly shared with the specified user ID, organization ID, or the string "PUBLIC" for public projects.
Outputs
resultsarray of mappings List of results, each with the following fields:idstring ID of the result.levelstring Maximal permission level (one of"VIEW","UPLOAD","CONTRIBUTE","ADMINISTER") held by the requesting user/job (either directly or through an organization).permissionSourcesarray of strings IDs of the sources that were granted the maximal permission levellevelthrough which the requesting user has access. Possible values are the user's ID, organization IDs, or the string "PUBLIC" for public projects.Only present when an unrestricted login token is used to make this API call.
publicboolean Whether the project is public.describemapping The output of the result's corresponding describe method.Only present when
describewas set as an input.
nextstring (nullable) Pagination cursor, ornullif all results were reported inresults. If a string, pass this value directly tostartingin a subsequent query if more results are desired.
Errors
API method: /system/findProjectMembers
/system/findProjectMembersSpecification
Returns a list of all the members (user, team, or organization) of a project.
"PUBLIC" is never included in the list of project members. Instead, the output hash contains a boolean value public to indicate whether the project is public
Ordering of results is:
Ascending by member ID.
Inputs
projectstring (required) ID of the project.levelstring (optional) The minimum permissions level that the members must have (granted directly to them). Defaults to"VIEW".Must be one of
"VIEW","UPLOAD","CONTRIBUTE", or"ADMINISTER".
describeboolean (optional) Whether describe should be called for all results. Defaults tofalse.startingstring (optional) Continue a previous query that had reached its limit. The value that was returned asnextin the query's output should be provided here.limitinteger (optional) Maximum number of results that may be returned. Defaults to1000. Must be between 1 and 1000 (inclusive).
Outputs
resultsarray of mappings List of results, each with the following fields:idstring ID of the project member.levelstring Permission level for the given project granted directly to the member.describemapping Metadata about the project member containing the following fields:Only present when the
describeinput was set.idstring ID of the member.classstring Either "user" or "org".permittedRegionsarray of strings The regions this member can operate in.The following keys are present if
classis "user":firststring The user's first name.laststring The user's last name.middlestring The user's middle name.handlestring The user's username or handle.The following key is present if
classis "org":namestring Organization name.
publicboolean Whether the project is public.nextstring (nullable) Pagination cursor, ornullif all results were reported inresults. If a string, pass this value directly tostartingin a subsequent query if more results are desired.
Errors
InvalidInput
The input is not a hash
level, if provided, is not a recognized permissions level
PermissionDenied
VIEW access to the project is required
API method: /system/findOrgs
/system/findOrgsSpecification
Lists orgs in which the requesting user has at least the specified membership level, subject to additional query constraints.
Ordering of results: Orgs are returned in ascending order by their IDs.
Inputs
idarray of strings (optional) If provided, results are limited to the org IDs included in the array. The array may have no more than 1000 elements.levelstring (required) The results contain only orgs in which the requesting user has at least the specified membership level.Must be one of
"ADMIN"or"MEMBER".
allowBillableActivitiesboolean (optional) If a boolean, then the results contain only orgs in which the requesting user either has (true) or does not have (false) theallowBillableActivitiesmembership permission.describeboolean or mapping (optional) Controls whether extra metadata is retrieved with the results. Defaults tofalse.If a mapping, represents the input for describing each result.
startingmapping (optional) Mapping used to continue a previous query that had reached its limit. The non-null value that was returned asnextin the output of that query should be specified here.limitinteger (optional) Maximum number of results that may be returned. Defaults to1000. Must be between 1 and 1000 (inclusive).
Outputs
resultsarray of mappings List of results, each with the following fields:idstring Org ID.describemapping The output of describing the corresponding org.Only present when
describeis set as an input.
nextmapping (nullable) Pagination cursor, ornullif all results were returned inresults. If a mapping, specify this value as thestartinginput in a subsequent query if more results are desired.
Errors
PermissionDenied
The requesting user does not have a full scope token
Last updated
Was this helpful?