Ingestion

Configure content ingestion.

Content Filtering

When ingesting content from feeds, you may want to limit the types of content and files which are allowed.

By specifying the content types and/or fileTypes properties, you can configure the content filtering for the ingestion stage of the workflow.

In this example, the workflow allows only AUDIO file types, such as MP3 or M4A.

Mutation:

mutation CreateWorkflow($workflow: WorkflowInput!) {
  createWorkflow(workflow: $workflow) {
    id
    name
    state
    ingestion {
      if {
        content {
          types
          fileTypes
        }
      }
    }
  }
}

Variables:

{
  "workflow": {
    "ingestion": {
      "if": {
        "content": {
          "types": [
            "FILE"
          ],
          "fileTypes": [
            "AUDIO"
          ]
        }
      }
    },
    "name": "Ingestion Stage"
  }
}

Response:

{
  "ingestion": {
    "if": {
      "content": {
        "types": [
          "FILE"
        ],
        "fileTypes": [
          "AUDIO"
        ]
      }
    }
  },
  "id": "8a1225b2-234c-4305-8207-15a1a6f87856",
  "name": "Ingestion Stage",
  "state": "ENABLED"
}

Add To Collections

When ingesting content, you can add content to collections, so that the content is easier to filter on later.

Add one or more collections to the collections array in the ingestion stage, and as content is ingested, it will be automatically added to those collections.

Mutation:

mutation CreateWorkflow($workflow: WorkflowInput!) {
  createWorkflow(workflow: $workflow) {
    id
    name
    state
    ingestion {
      collections {
        id
      }
    }
  }
}

Variables:

{
  "workflow": {
    "ingestion": {
      "collections": [
        {
          "id": "0a385b61-b98f-4cd7-95aa-f5d635eaa5da"
        }
      ]
    },
    "name": "Add To Collection"
  }
}

Response:

{
  "ingestion": {
    "collections": [
      {
        "id": "0a385b61-b98f-4cd7-95aa-f5d635eaa5da"
      }
    ]
  },
  "id": "a8141a54-c57e-497b-afba-d31ad31cff94",
  "name": "Add To Collection",
  "state": "ENABLED"
}

Last updated