POST
/
apps
/
{app_id}
/
collections
curl --request POST \
  --url https://api.withcortex.ai/apps/{app_id}/collections \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "visibility": "PUBLIC",
  "from_collection_id": "<string>",
  "tags_ids": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "app": {
    "id": "<string>",
    "name": "<string>",
    "verified": true
  },
  "visibility": "PUBLIC",
  "tags": [
    {
      "id": "<string>",
      "name": "<string>",
      "app_id": "<string>",
      "created_at": "2023-12-25",
      "updated_at": "2023-12-25"
    }
  ],
  "records_count": 123,
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25",
  "config": {
    "id": "<string>",
    "mappings": [
      {
        "source_path": "<string>",
        "destination_paths": [
          "<string>"
        ]
      }
    ],
    "created_at": "2023-12-25",
    "updated_at": "2023-12-25",
    "rules": [
      {
        "name": "<string>",
        "key": "<string>",
        "execution_order": "<string>",
        "on_success": "PASS",
        "on_fail": "PASS",
        "workflow_id": "<string>",
        "workflow_version_id": "<string>",
        "workflow_use_latest": true,
        "workflow_input_default": {},
        "disabled": true,
        "workflow": {
          "id": "<string>",
          "name": "<string>",
          "description": "<string>",
          "app": {
            "id": "<string>",
            "name": "<string>",
            "verified": true
          },
          "visibility": "PUBLIC",
          "version": {
            "id": "<string>",
            "description": "<string>",
            "version": 123,
            "created_at": "2023-12-25",
            "key": "<string>",
            "input": {},
            "input_default": {},
            "steps": [
              {
                "type": "code",
                "key": "<string>",
                "conditional": "<string>",
                "loop": "<string>",
                "code": "<string>"
              }
            ]
          },
          "tags": [
            {
              "id": "<string>",
              "name": "<string>",
              "app_id": "<string>",
              "created_at": "2023-12-25",
              "updated_at": "2023-12-25"
            }
          ],
          "created_at": "2023-12-25",
          "updated_at": "2023-12-25",
          "key": "<string>",
          "input": {},
          "input_default": {},
          "steps": [
            {
              "type": "code",
              "key": "<string>",
              "conditional": "<string>",
              "loop": "<string>",
              "code": "<string>"
            }
          ]
        },
        "workflow_version": {
          "id": "<string>",
          "description": "<string>",
          "version": 123,
          "created_at": "2023-12-25",
          "key": "<string>",
          "input": {},
          "input_default": {},
          "steps": [
            {
              "type": "code",
              "key": "<string>",
              "conditional": "<string>",
              "loop": "<string>",
              "code": "<string>"
            }
          ]
        }
      }
    ]
  }
}

Path Parameters

app_id
string
required

Body

name
string
required
Maximum length: 64
description
string | null
Maximum length: 1024
visibility
enum<string>
Available options:
PUBLIC,
PRIVATE
from_collection_id
string
tags_ids
string[]

Response

200 - application/json
id
string
required
name
string
required
description
string | null
required
app
object
required
visibility
enum<string>
required
Available options:
PUBLIC,
PRIVATE
tags
object[]
required
records_count
number
required
created_at
string | null
required
updated_at
string | null
required
config
object | null
required