Workflow Search
search.workflow_search(SearchWorkflowSearchParams**kwargs) -> SyncSearchHitsOffset[SearchWorkflowSearchResponse]
POST/search/workflows
Search for workflows.
At least one of the following fields must have a value: query or filter.
Parameters
project_id: Optional[str]
The projectId used for ownership resource management. Either to assert ownership or to set the owner of the resource(s)
hits_per_page: Optional[float]
Maximum number of documents returned for a page. Must be used with page.
maximum100
minimum1
limit: Optional[float]
Maximum number of documents returned. Must be used with offset.
maximum100
minimum1
Workflow Search
import os
from scenario_sdk import Scenario
client = Scenario(
api_key=os.environ.get("SCENARIO_SDK_API_KEY"), # This is the default and can be omitted
api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"), # This is the default and can be omitted
)
page = client.search.workflow_search()
page = page.hits[0]
print(page.id){
"hits": [
{
"id": "id",
"authorId": "authorId",
"collectionIds": [
"string"
],
"createdAt": "createdAt",
"description": "description",
"name": "name",
"ownerId": "ownerId",
"privacy": "privacy",
"status": "status",
"tags": [
"string"
],
"teamId": "teamId",
"updatedAt": "updatedAt",
"after": {
"assetId": "assetId",
"url": "url"
},
"before": {
"assetId": "assetId",
"url": "url"
},
"score": 0,
"shortDescription": "shortDescription",
"thumbnail": {
"assetId": "assetId",
"url": "url"
}
}
],
"limit": 0,
"offset": 0,
"estimatedTotalHits": 0,
"hitsPerPage": 0,
"page": 0,
"totalHits": 0,
"totalPages": 0
}Returns Examples
{
"hits": [
{
"id": "id",
"authorId": "authorId",
"collectionIds": [
"string"
],
"createdAt": "createdAt",
"description": "description",
"name": "name",
"ownerId": "ownerId",
"privacy": "privacy",
"status": "status",
"tags": [
"string"
],
"teamId": "teamId",
"updatedAt": "updatedAt",
"after": {
"assetId": "assetId",
"url": "url"
},
"before": {
"assetId": "assetId",
"url": "url"
},
"score": 0,
"shortDescription": "shortDescription",
"thumbnail": {
"assetId": "assetId",
"url": "url"
}
}
],
"limit": 0,
"offset": 0,
"estimatedTotalHits": 0,
"hitsPerPage": 0,
"page": 0,
"totalHits": 0,
"totalPages": 0
}