Skip to content

Mixtures_GetSource

GET
/v1/accounts/{account}/datasets/{dataset}/sources/{source}
curl --request GET \
--url https://dev-api.qualiastudios.dev/v1/accounts/example/datasets/example/sources/example \
--header 'X-API-Key: <X-API-Key>'

Gets one source.

account
required
string

The account id.

dataset
required
string

The dataset id.

source
required
string

The source id.

OK

Media type application/json

One thing a mixture reads (QUA-2240): an upload or another mixture by name, or every upload carrying one label value, now and later. Each is followed on a channel or pinned to a tag. An upload or label source arrives raw (what the upload kept); a mixture source arrives curated (what it yields, its own rejects already out, and inherited). A mixture cannot read itself, however far round. There are no weights.

Served by qds-api. Only a MIXTURE dataset has sources.

object
name

Accounts/{account}/datasets/{dataset}/sources/{source}

string
dataset

Accounts/{account}/datasets/{dataset}: an upload, a mixture or a merged dataset by name. Not an upload a merge took (QUA-3511): name its merged dataset; a pin of one of its own tags, left from before, stays.

string
label

Every upload and merged dataset with this label value, present and future: a merged dataset by its own labels (a method by its own method tags, the union of its uploads’, and then all of it), and no upload a merge took (QUA-3511).

object
field
required

The label.

string format: enum
Allowed values: FIELD_UNSPECIFIED TASK ROBOT OPERATOR METHOD SCENE
value
required

The value it must equal, exactly.

string
linkedTask

Accounts/{account}/tasks/{task}: every upload and merged dataset linked to this task (Dataset.linked_task), present and future (QUA-3116); no upload a merge took (QUA-3511). A task of the mixture’s account; NOT_FOUND otherwise. Deleting the task is not refused: the source stays, reads nothing and says so in state (TASK_DELETED).

string
follow

How it is followed; unset means stable. A pin names a tag of dataset; a label or task source can only follow a channel.

object
channel

Move with a channel.

string format: enum
Allowed values: CHANNEL_UNSPECIFIED STABLE HEAD
pin

Stay on this version tag of the source dataset, e.g. “1.0”.

string
resolutions

What it resolves to now, one row per dataset (one for a dataset source, every matching upload and merged dataset for a label source).

Array<object>

One dataset the source resolved to, and where it is read.

object
dataset

Accounts/{account}/datasets/{dataset}

string
kind

Upload, merged dataset or mixture.

string format: enum
Allowed values: KIND_UNSPECIFIED UPLOAD MIXTURE MERGED
version

The tag it is read at; empty at head.

string
digest

The digest it is read at.

string
episodeCount

Episodes it brings in, before this mixture’s rejects.

string
rejectedCount

Episodes this mixture rejected among them.

string
empty

Nothing to read: the followed channel has no tag yet (stable on a dataset still in review).

boolean
reviewedCount

Upload or merged dataset (over the uploads it holds) only: ruled / total, for the sources panel’s progress.

string
totalCount

Upload or merged dataset (over the uploads it holds) only: total episodes.

string
episodeCount

Episodes it brings into head, after this mixture’s rejects.

string
inheritedRejectCount

Mixture source only: episodes the source mixture had rejected itself, inherited unseen.

string
update

Pinned source only: set when a newer stable tag exists.

object
version

The newer tag.

string
addedCount

Episodes it would add.

string
removedCount

Episodes it would remove.

string
changedCount

Episodes in both at another revision.

string
creator

Who added it.

object
kind

What kind of actor it is.

string format: enum
Allowed values: KIND_UNSPECIFIED PERSON VALIDATION RULE MODEL OPERATOR SYSTEM
user

The person’s user id when kind is PERSON; empty otherwise.

string
displayName

The person’s display name at the time, for rendering without a lookup.

string
agent

The rule code, or the model id (e.g. “gemini-robotics-er”), when not a person.

string
run

The run a model or rule finding came from, when it has one.

string
apiKey

The API key’s id when a person acted through one; empty for a session. Never the key itself.

string
attribution

Signed identity evidence recorded with the change, kept apart from the principal above. Unset on older records and wherever none was signed.

object
authentication

How the principal authenticated.

string format: enum
Allowed values: AUTHENTICATION_UNSPECIFIED SESSION API_KEY SERVICE
initiator

The user id of a person verified as starting the work: the person of a session, or the person a trusted service’s signed job record names. Empty when nobody was verified.

string
initiatorDisplayName

The initiator’s display name at the time, never their email.

string
credentialCreator

The user id of the key’s creator at the time. Not who used the key.

string
credentialOwner

Who owned the key at the time.

string format: enum
Allowed values: CREDENTIAL_OWNER_UNSPECIFIED PERSON SPACE
credentialOwnerSpace

The owning space’s id (a workspace or the organization) when credential_owner is SPACE.

string
createTime

When it was added.

string format: date-time
updateTime

When its follow last changed.

string format: date-time
etag

Sent back on UpdateSource.

string
position

Its place in the sources panel, from 0; the first source that brings an episode in is the one it counts under. A new source goes last; setting it moves the others along.

integer format: int32
state

Whether it can still read what it names; TASK_DELETED once its linked_task is gone.

string format: enum
Allowed values: STATE_UNSPECIFIED ACTIVE TASK_DELETED
Example
{
"label": {
"field": "FIELD_UNSPECIFIED"
},
"follow": {
"channel": "CHANNEL_UNSPECIFIED"
},
"resolutions": [
{
"kind": "KIND_UNSPECIFIED"
}
],
"creator": {
"kind": "KIND_UNSPECIFIED",
"attribution": {
"authentication": "AUTHENTICATION_UNSPECIFIED",
"credentialOwner": "CREDENTIAL_OWNER_UNSPECIFIED"
}
},
"state": "STATE_UNSPECIFIED"
}

Default error response

Media type application/json

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

object
code

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

integer format: int32
message

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

string
details

A list of messages that carry the error details. There is a common set of message types for APIs to use.

Array<object>

Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

object
@type

The type of the serialized message.

string
key
additional properties
any
Example generated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}