get_or_create_tag

Retrieve the specified dbnl Test Tag or create a new one if it does not exist

dbnl.experimental.get_or_create_tag(
    *,
    project_id: str,
    name: str,
    description: Optional[str] = None,
) -> Dict[str, Any]:

Parameters

Arguments
Description

project_id

The dbnl Project that this Test Tag is associated with.

name

The name of the Test Tag to be retrieved. If a Tag with the name does not exist, it will create a new Tag. Tag names must be unique.

description

An optional description for the Tag. Descriptions are limited to 255 characters.

Returns

Type
Description

Dict[str, Any]

Test Tag JSON

Test Tag JSON Schema

{
  // Tag metadata
  "id": string,
  "org_id": string,
  "created_at": timestamp,
  "updated_at": timestamp,
  
  // Tag data
  "name": string,
  "author_id": string,
  "description": string?,
  "project_id": string,
}

Last updated

Was this helpful?