Skip to main content
POST
/
asset-categories
Typescript (SDK)
import { Idalia } from "idalia";

const idalia = new Idalia({
  apiKeyAuth: process.env["IDALIA_API_KEY_AUTH"] ?? "",
});

async function run() {
  const result = await idalia.assetCategories.create();

  console.log(result);
}

run();
[
  {
    "id": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "workspaceId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "parentId": "<string>"
  }
]

Body

application/json
name
string
required

The category name

description
string | null

Optional description

Response

Returns newly created asset category objects

id
string
required

The asset category ID

createdAt
string
required

Datetime when the category was created

updatedAt
string
required

Datetime when the category was last updated

workspaceId
string
required

ID of the workspace the category belongs to

name
string
required

The category name

description
string | null

Optional description

parentId
string | null

The parent asset category