---
agentTools:
  projectIndex: https://trace-space.readme.io/llms.txt
---

# Create Items

Can be used in 2 ways: Provide Items without pre-generated sequential Ids (UUIDs/GUIDs) and place their children within the Children field OR provide Items with pre-generated Ids (use of sequential COMB GUID generation algorithm is mandatory) and their child Items with according Relations all as top level items not using the Children field at all (this second option is much more performant, as it doesn't have to recursively traverse the tree of Items and their children). Returns an array of the newly created Items' Ids (UUIDs/GUIDs). The Ids of child Items' that are nested within the Children fields are not returned - only the Ids of the newly created top level Items are returned.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Trace.Space Core API (EngineCore)",
    "description": "Create and query pliable Items with unrestricted Relations between them and use Types (multi/duck-typing coming soon!) for structure\n\nContact Support:\n Name: Trace.Space (K.Broders CTO)\n Email: karlis@trace.space",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.tracespace.dev"
    }
  ],
  "components": {
    "securitySchemes": {
      "apikeyAuth": {
        "type": "http",
        "scheme": "apikey"
      }
    }
  },
  "security": [
    {
      "apikeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "items > many"
    }
  ],
  "paths": {
    "/core/items/many": {
      "post": {
        "tags": [
          "items > many"
        ],
        "summary": "Create Items",
        "description": "Can be used in 2 ways: Provide Items without pre-generated sequential Ids (UUIDs/GUIDs) and place their children within the Children field OR provide Items with pre-generated Ids (use of sequential COMB GUID generation algorithm is mandatory) and their child Items with according Relations all as top level items not using the Children field at all (this second option is much more performant, as it doesn't have to recursively traverse the tree of Items and their children). Returns an array of the newly created Items' Ids (UUIDs/GUIDs). The Ids of child Items' that are nested within the Children fields are not returned - only the Ids of the newly created top level Items are returned.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": [
                  {
                    "id": "<uuid>",
                    "fields": {
                      "ut_d2c": {},
                      "labore_d": {}
                    },
                    "relations": [
                      {
                        "to": "<uuid>",
                        "type": "CHILD",
                        "description": "<string>",
                        "orderIndex": "<double>",
                        "isRelatedItemDeleted": "<boolean>"
                      },
                      {
                        "to": "<uuid>",
                        "type": "PARENT",
                        "description": "<string>",
                        "orderIndex": "<double>",
                        "isRelatedItemDeleted": "<boolean>"
                      }
                    ],
                    "itemType": "<string>",
                    "uiDisplayInfo": {
                      "fieldOrder": [
                        "<string>",
                        "<string>"
                      ],
                      "titleField": "<string>",
                      "mainFields": [
                        "<string>",
                        "<string>"
                      ],
                      "fieldDescriptions": {
                        "seddda": "<string>",
                        "incididunt8c": "<string>"
                      }
                    },
                    "children": [
                      {
                        "value": "<Circular reference to #/components/schemas/CreateItemWithChildrenResource detected>"
                      },
                      {
                        "value": "<Circular reference to #/components/schemas/CreateItemWithChildrenResource detected>"
                      }
                    ],
                    "authors": [
                      {
                        "id": "<uuid>",
                        "name": "<string>",
                        "email": "<string>",
                        "avatarUrl": "<string>",
                        "organizationDomainNames": [
                          "<string>",
                          "<string>"
                        ],
                        "organizationIds": [
                          "<uuid>",
                          "<uuid>"
                        ],
                        "provider": "<string>"
                      },
                      {
                        "id": "<uuid>",
                        "name": "<string>",
                        "email": "<string>",
                        "avatarUrl": "<string>",
                        "organizationDomainNames": [
                          "<string>",
                          "<string>"
                        ],
                        "organizationIds": [
                          "<uuid>",
                          "<uuid>"
                        ],
                        "provider": "<string>"
                      }
                    ]
                  },
                  {
                    "id": "<uuid>",
                    "fields": {
                      "irure_a2": {},
                      "aliquip8b3": {},
                      "mollit_7d6": {}
                    },
                    "relations": [
                      {
                        "to": "<uuid>",
                        "type": "RELATED",
                        "description": "<string>",
                        "orderIndex": "<double>",
                        "isRelatedItemDeleted": "<boolean>"
                      },
                      {
                        "to": "<uuid>",
                        "type": "RELATED",
                        "description": "<string>",
                        "orderIndex": "<double>",
                        "isRelatedItemDeleted": "<boolean>"
                      }
                    ],
                    "itemType": "<string>",
                    "uiDisplayInfo": {
                      "fieldOrder": [
                        "<string>",
                        "<string>"
                      ],
                      "titleField": "<string>",
                      "mainFields": [
                        "<string>",
                        "<string>"
                      ],
                      "fieldDescriptions": {
                        "officiaa58": "<string>"
                      }
                    },
                    "children": [
                      {
                        "value": "<Circular reference to #/components/schemas/CreateItemWithChildrenResource detected>"
                      },
                      {
                        "value": "<Circular reference to #/components/schemas/CreateItemWithChildrenResource detected>"
                      }
                    ],
                    "authors": [
                      {
                        "id": "<uuid>",
                        "name": "<string>",
                        "email": "<string>",
                        "avatarUrl": "<string>",
                        "organizationDomainNames": [
                          "<string>",
                          "<string>"
                        ],
                        "organizationIds": [
                          "<uuid>",
                          "<uuid>"
                        ],
                        "provider": "<string>"
                      },
                      {
                        "id": "<uuid>",
                        "name": "<string>",
                        "email": "<string>",
                        "avatarUrl": "<string>",
                        "organizationDomainNames": [
                          "<string>",
                          "<string>"
                        ],
                        "organizationIds": [
                          "<uuid>",
                          "<uuid>"
                        ],
                        "provider": "<string>"
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Target-Organization",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Target organization to direct calls to a specific Organization of the User"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "example": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "example": ""
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 52,
      "2": 145,
      "3": 172,
      "4": 254,
      "5": 34,
      "6": 224,
      "7": 0,
      "8": 46,
      "9": 226,
      "10": 56,
      "11": 154
    }
  }
}
```