Episodes_LocateEpisode
const url = 'https://dev-api.qualiastudios.dev/v1/accounts/example/datasets/example/episodes/example:locate';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dev-api.qualiastudios.dev/v1/accounts/example/datasets/example/episodes/example:locate \ --header 'X-API-Key: <X-API-Key>'Where one episode sits in a filtered, ordered list of its dataset: its position and neighbours, for “12 / 340” and prev / next in the studio (QUA-1820). NOT_FOUND when the filter excludes it.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The account id.
The dataset id.
The episode id.
Query Parameters
Section titled “Query Parameters ”Same language as ListEpisodes.filter.
Same values as ListEpisodes.order_by.
The page size the returned page_token is for; same rules as ListEpisodes.page_size. Pass the same value to ListEpisodes.
Locate it in the list as this version froze it (QUA-3539), the one ListEpisodes.version reads: that version’s episodes, in its order. Same values as ListEpisodes.version; pass the same value to ListEpisodes.
Responses
Section titled “ Responses ”OK
Response for Episodes.LocateEpisode.
object
Its index in the filtered order, from 0.
Episodes the filter leaves.
The episode before it; empty at the start.
The episode after it; empty at the end.
A ListEpisodes page_token that starts the page containing it.
Example generated
{ "position": 1, "totalSize": 1, "previousEpisode": "example", "nextEpisode": "example", "pageToken": "example"}default
Section titled “default ”Default error response
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
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
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.
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
object
The type of the serialized message.
Example generated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}