Create view
Save a View in the caller’s org, private unless the request asks for org-wide visibility.
Authorization lives in :meth:ViewsService.create_for, shared with the chat’s View tools.
Access control
- Restricted tokens need the API scope
api.everything_else
/v1/views/createAuthorizationBearer token · headerrequiredX-Roboto-Org-IdstringX-Roboto-User-Idstringapplication/jsonnamestringrequiredtargetQueryTargetrequiredThe type of resource a specific query is requesting.
collectionsdatasetsdevicesfilessessionstopicstopic_message_pathseventsdefinitionViewDefinitionrequiredThe saved contents of a View: what its author searched for, and how they were shown it.
Stored as JSON, with no schema constraint behind it: this model is the only thing enforcing the shape.
A View records intent, not a query. It holds what the author expressed — filter controls
or RoboQL text — and the client rebuilds an executable query from that on load. It does not
hold a ready-made :class:~roboto.query.QuerySpecification, because one cannot be stored
faithfully: Comparator has no way to say "the last 7 days", so translating a relative
date filter resolves it to fixed instants. A stored query would show the week the View was
saved forever after, presented as though it were live.
Intent is nonetheless recorded in a typed form — :class:~roboto.query.SavedFilters — so
that anything able to call the API can create a View, not only a client that already knows
how a filter control is shaped. A filter-backed View still has to be translated into a query
before it runs, and the Roboto web app is what does that; a RoboQL View needs no
translation, since its text runs anywhere.
A View's search target is not part of this definition. The View itself carries it, and repeating it here would let the two disagree.
Show propertiesHide properties
schemestringroboqlstring | nullShow propertiesHide properties
stringnullfiltersSavedFilters | nullShow propertiesHide properties
filtersStringFilter | NumericFilter | MetricFilter | DateFilter | BooleanFilter | SetFilter | EnumFilter | IdentityFilter[]Show propertiesHide properties
StringFilter | NumericFilter | MetricFilter | DateFilter | BooleanFilter | SetFilter | EnumFilter | IdentityFilterfieldstringrequiredtypestringcomparatorstringrequiredEQUALSNOT_EQUALSCONTAINSNOT_CONTAINSLIKENOT_LIKEIS_NULLIS_NOT_NULLvaluesstring[]fieldstringrequiredtypestringcomparatorstringrequiredEQUALSNOT_EQUALSGREATER_THANLESS_THANGREATER_THAN_OR_EQUALLESS_THAN_OR_EQUALIS_NULLIS_NOT_NULLvaluesnumber[]fieldstringrequiredtypestringunitstring | nullShow propertiesHide properties
stringnullcomparatorstringrequiredEQUALSNOT_EQUALSGREATER_THANLESS_THANGREATER_THAN_OR_EQUALLESS_THAN_OR_EQUALIS_NULLIS_NOT_NULLvaluesnumber[]fieldstringrequiredtypestringcomparatorstringrequiredLESS_THANGREATER_THANIS_NULLIS_NOT_NULLBETWEENTODAYLAST_3_HOURSLAST_8_HOURSLAST_24_HOURSLAST_7_DAYSLAST_30_DAYSLAST_90_DAYSTHIS_MONTHvaluesstring[]fieldstringrequiredtypestringcomparatorstringrequiredEQUALSIS_NULLIS_NOT_NULLvaluesboolean[]fieldstringrequiredtypestringcomparatorstringrequiredCONTAINSNOT_CONTAINSvaluesstring[]fieldstringrequiredtypestringcomparatorstringrequiredEQUALSNOT_EQUALSIS_NULLIS_NOT_NULLvaluesstring[]fieldstringrequiredtypestringcomparatorstringrequiredIS_USERIS_DEVICEIS_INVOCATIONIS_INTEGRATIONIS_ORGIS_ANY_USERIS_ANY_DEVICEIS_ANY_INVOCATIONIS_ANY_INTEGRATIONIS_ANY_ORGvaluesLabeledOption[]Show propertiesHide properties
LabeledOptionvaluestringrequiredlabelstringrequiredmatch_modeFilterMatchModeHow separate filters combine.
ANDORnulldisplayViewDisplayHow a View presents its results: which columns, in what order, sorted how, how many rows.
Presentation state only. Nothing here changes which records match.
Show propertiesHide properties
visible_columnsstring[]sort_bystring | nullShow propertiesHide properties
stringnullsort_directionSortDirection | nullShow propertiesHide properties
stringnullpage_sizeinteger | nullShow propertiesHide properties
integernullvisibilityViewVisibilityWho a View is visible to: asked for when it is created, reported when it is read.
Governs who can see a View, never who can change it. An organization View is
readable by the whole org and still editable only by its author, anyone granted
editor on it, and org admins.
privateorganizationOK
dataobjectrequiredA wire-transmissible representation of a View.
A View is a named, org-scoped, shareable search over one resource type. Who may see or edit
it is held in the authorization service rather than in the table this record is read from.
:attr:visibility is the one part of that answer carried here, because a client cannot
otherwise separate a caller's own Views from their team's without a request per row; every
finer-grained grant stays behind the access endpoint.
Show propertiesHide properties
view_idstringrequirednamestringrequiredorg_idstringrequiredtargetQueryTargetrequiredThe type of resource a specific query is requesting.
collectionsdatasetsdevicesfilessessionstopicstopic_message_pathseventsdefinitionViewDefinitionrequiredThe saved contents of a View: what its author searched for, and how they were shown it.
Stored as JSON, with no schema constraint behind it: this model is the only thing enforcing the shape.
A View records intent, not a query. It holds what the author expressed — filter controls
or RoboQL text — and the client rebuilds an executable query from that on load. It does not
hold a ready-made :class:~roboto.query.QuerySpecification, because one cannot be stored
faithfully: Comparator has no way to say "the last 7 days", so translating a relative
date filter resolves it to fixed instants. A stored query would show the week the View was
saved forever after, presented as though it were live.
Intent is nonetheless recorded in a typed form — :class:~roboto.query.SavedFilters — so
that anything able to call the API can create a View, not only a client that already knows
how a filter control is shaped. A filter-backed View still has to be translated into a query
before it runs, and the Roboto web app is what does that; a RoboQL View needs no
translation, since its text runs anywhere.
A View's search target is not part of this definition. The View itself carries it, and repeating it here would let the two disagree.
Show propertiesHide properties
schemestringroboqlstring | nullShow propertiesHide properties
stringnullfiltersSavedFilters | nullShow propertiesHide properties
filtersStringFilter | NumericFilter | MetricFilter | DateFilter | BooleanFilter | SetFilter | EnumFilter | IdentityFilter[]Show propertiesHide properties
StringFilter | NumericFilter | MetricFilter | DateFilter | BooleanFilter | SetFilter | EnumFilter | IdentityFilterfieldstringrequiredtypestringcomparatorstringrequiredEQUALSNOT_EQUALSCONTAINSNOT_CONTAINSLIKENOT_LIKEIS_NULLIS_NOT_NULLvaluesstring[]fieldstringrequiredtypestringcomparatorstringrequiredEQUALSNOT_EQUALSGREATER_THANLESS_THANGREATER_THAN_OR_EQUALLESS_THAN_OR_EQUALIS_NULLIS_NOT_NULLvaluesnumber[]fieldstringrequiredtypestringunitstring | nullShow propertiesHide properties
stringnullcomparatorstringrequiredEQUALSNOT_EQUALSGREATER_THANLESS_THANGREATER_THAN_OR_EQUALLESS_THAN_OR_EQUALIS_NULLIS_NOT_NULLvaluesnumber[]fieldstringrequiredtypestringcomparatorstringrequiredLESS_THANGREATER_THANIS_NULLIS_NOT_NULLBETWEENTODAYLAST_3_HOURSLAST_8_HOURSLAST_24_HOURSLAST_7_DAYSLAST_30_DAYSLAST_90_DAYSTHIS_MONTHvaluesstring[]fieldstringrequiredtypestringcomparatorstringrequiredEQUALSIS_NULLIS_NOT_NULLvaluesboolean[]fieldstringrequiredtypestringcomparatorstringrequiredCONTAINSNOT_CONTAINSvaluesstring[]fieldstringrequiredtypestringcomparatorstringrequiredEQUALSNOT_EQUALSIS_NULLIS_NOT_NULLvaluesstring[]fieldstringrequiredtypestringcomparatorstringrequiredIS_USERIS_DEVICEIS_INVOCATIONIS_INTEGRATIONIS_ORGIS_ANY_USERIS_ANY_DEVICEIS_ANY_INVOCATIONIS_ANY_INTEGRATIONIS_ANY_ORGvaluesLabeledOption[]Show propertiesHide properties
LabeledOptionvaluestringrequiredlabelstringrequiredmatch_modeFilterMatchModeHow separate filters combine.
ANDORnulldisplayViewDisplayHow a View presents its results: which columns, in what order, sorted how, how many rows.
Presentation state only. Nothing here changes which records match.
Show propertiesHide properties
visible_columnsstring[]sort_bystring | nullShow propertiesHide properties
stringnullsort_directionSortDirection | nullShow propertiesHide properties
stringnullpage_sizeinteger | nullShow propertiesHide properties
integernullschema_versionintegerrequiredcreatedstring<date-time>requiredcreated_bystringrequiredmodifiedstring<date-time>requiredmodified_bystringrequiredvisibilityViewVisibility | nullShow propertiesHide properties
stringnullThrown when the conversation context (messages, system prompt, tool results) exceeds the model's context window limit.
The token estimate and the model's context limit are not carried on the exception, so a caller cannot read usage numbers off it.
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown when authentication fails
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown if an operation would exceed a user or org level limit.
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown if a user is attempting to perform an action unrecognized by the Roboto platform.
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown if there is a conflict between a resource you're creating and another existing resource
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown if a resource is missing or expired.
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullAn error the platform reported that this SDK release cannot resolve to a specific exception class.
Reported for an element of a :py:class:~roboto.http.BatchResponse whose error names a code this release
defines no class for, or that arrived without a code, without a message, or as text that is not an
error envelope at all. It carries whatever code and message the platform sent, so a caller handling the
failure still learns what went wrong; when no message could be read, the message is the error's raw text.
The error envelope carries no status code, so http_status_code reports the 500 inherited from
:py:class:RobotoDomainException rather than the status the failure actually had.
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown by shimmed out APIs which have not yet been implemented
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown when a service is unavailable, such as when it's under heavy load and can't accept new requests. This is expected to be transient and ought to be retried.
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown when the service times out while processing a request. This is exepcted to be transient and ought to be retried.
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | nullThrown when the server cannot complete the request because the response payload exceeds a storage or transport capacity limit (e.g., Lambda response size). This is NOT expected to be transient and should NOT be retried.
errorobjectShow propertiesHide properties
error_codenumbermessagestringstack_tracestring | null