Skip to main content

Create resources for a dataset according to the specified chain

POST 

/v1/dataset/:project_id/resources

Create a chain of resources for a dataset.

This endpoint allows you to specify a list of resources to create, with their dependencies. Resources will be created in the correct order based on their dependencies.

Request

Path Parameters

    project_id Project Idrequired

Body

array

required

  • Array [

  • anyOf

    resource_type Resource Type (string)required

    The type of resource to create. e.g. 'EMBEDDING_SET'

    dependencies

    object

    A mapping of resource types to the ids of the resources that must be created before this one. We will look in two different places for the string values here:

    First, in the refs field of the passed list of resources. Finally, this will be treated as the UUID of a resource in the database.

    property name*

    object

    anyOf

    string

    dataset_id Dataset Id (string)required

    The id of the dataset to use for this resource.

    composite_filter

    object

    anyOf

    columns

    object

    anyOf

  • Array [

  • string

  • ]

  • timestamp

    object

    anyOf

    integer

    ref Ref (string)required

    An identifier to use for this resource in the context of building a set of jobs. This id WILL NOT BE used in the database or system.

  • ]

Responses

Successful Response

Schema

  • Array [

  • type Type (string)required

    Resource type.

    id Id (string)required

    The resource id.

    dataset_id Dataset Id (string)required

    The dataset id associated with the resource.

    status ResourceStatus (string)required

    Possible values: [COMPLETED, FAILED, BUILDING, WAITING]

    The resource status.

    params

    object

    required

    Resource-specific parameters.

    property name* any

    Resource-specific parameters.

  • ]

Loading...