description: "List of model field names (if applicable, nesting is supported using '.'). If provided, this list defines the query's projection (only these fields will be returned for each result entry)"
type: array
items { type: string }
}
page {
description: "Page number, returns a specific page out of the resulting list of models"
type: integer
minimum: 0
}
page_size {
description: "Page size, specifies the number of results returned in each page (last page may contain fewer results)"
type: integer
minimum: 1
}
project {
description: "List of associated project IDs"
type: array
items { type: string }
}
order_by {
description: "List of field names to order by. When search_text is used, '@text_score' can be used as a field representing the text score of returned documents. Use '-' prefix to specify descending order. Optional, recommended when using page"
type: array
items { type: string }
}
task {
description: "List of associated task IDs"
type: array
items { type: string }
}
id {
description: "List of model IDs"
type: array
items { type: string }
}
search_text {
description: "Free text search query"
type: string
}
framework {
description: "List of frameworks"
type: array
items { type: string }
}
uri {
description: "List of model URIs"
type: array
items { type: string }
}
_all_ {
description: "Multi-field pattern condition (all fields match pattern)"
"$ref": "#/definitions/multi_field_pattern_data"
}
_any_ {
description: "Multi-field pattern condition (any field matches pattern)"
"$ref": "#/definitions/multi_field_pattern_data"
}
}
dependencies {
page: [ page_size ]
}
}
response {
type: object
properties {
models: {
description: "Models list"
type: array
items { "$ref": "#/definitions/model" }
}
}
}
}
}
update_for_task {
"2.1" {
description: "Create or update a new model for a task"
description: "Indication if the model is final and can be used by other tasks Default is false."
type: boolean
default: false
}
created {
description: "Model creation time (UTC) "
type: string
format: "date-time"
}
ui_cache {
description: "UI cache for this model"
type: object
additionalProperties: true
}
project {
description: "Project to which to model belongs"
type: string
}
task {
description: "Associated task ID"
type: "string"
}
iteration {
description: "Iteration (used to update task statistics if an associated task is reported)"
type: integer
}
}
}
response {
type: object
properties {
updated {
description: "Number of models updated (0 or 1)"
type: integer
enum: [0, 1]
}
fields {
description: "Updated fields names and values"
type: object
additionalProperties: true
}
}
}
}
}
set_ready {
"2.1" {
description: "Set the model ready flag to True. If the model is an output model of a task then try to publish the task."
request {
type: object
required: [ model ]
properties {
model {
description: "Model id"
type: string
}
force_publish_task {
description: "Publish the associated task (if exists) even if it is not in the 'stopped' state. Optional, the default value is False."
type: boolean
}
publish_task {
description: "Indicates that the associated task (if exists) should be published. Optional, the default value is True."
type: boolean
}
}
}
response {
type: object
properties {
updated {
description: "Number of models updated (0 or 1)"
type: integer
enum: [0, 1]
}
published_task {
description: "Result of publishing of the model's associated task (if exists). Returned only if the task was published successfully as part of the model publishing."
type: object
properties {
id {
description: "Task id"
type: string
}
data {
description: "Data returned from the task publishing operation."
type: object
properties {
committed_versions_results {
description: "Committed versions results"
type: array
items {
type: object
additionalProperties: true
}
}
updated {
description: "Number of tasks updated (0 or 1)"
type: integer
enum: [ 0, 1 ]
}
fields {
description: "Updated fields names and values"
type: object
additionalProperties: true
}
}
}
}
}
}
}
}
}
delete {
"2.1" {
description: "Delete a model."
request {
required: [
model
]
type: object
properties {
model {
description: "Model ID"
type: string
}
force {
description: """Force. Required if there are tasks that use the model as an execution model, or if the model's creating task is published.
"""
type: boolean
}
}
}
response {
type: object
properties {
deleted {
description: "Indicates whether the model was deleted"