---
updatedAt: 2025-11-11T23:39:13.000Z
agentTools:
  projectIndex: https://shield.docs.arthur.ai/llms.txt
---

# Managing multiple applications in Arthur Shield

Tasks in Arthur Shield represent conceptual use cases. You can isolate an application or set of applications by grouping them under separate tasks.

<Image align="center" width="70% " src="https://files.readme.io/65fd117-Frame_7.png" />

## Step 1: Create Tasks in Arthur Shield

Create a Task for **each** use case or set of use cases that you want to isolate.

[POST \{hostname}/api/v2/task](https://shield.docs.arthur.ai/reference/create_task_api_v2_task_post)

```json Example RequestBody
{
  "name": "Example Task Name"
}
```

Hold on to the *id* returned in the ResponseBody by this endpoint, it will be necessary for the upcoming steps.

## Step 2: Configure rules for each Task as needed

Arthur Shield is deployed with no rules enabled, teams receive value from deciding which rules to enable and customizing those rules for their organization and specific use cases.

### Step 2a: Configure default rules to be applied to all Tasks

Default Rules exist globally within an instance of Arthur Shield. Default rules are applied universally across existing Tasks and any subsequently created new Tasks.  Please the reference the [Rule Configuration Guide](https://shield.docs.arthur.ai/docs/rule-configuration-guide) for more information on how to create default rules.

### Step 2b: Configure Task specific rules as needed

Task Rules only apply to a single Task. When you [Create a Task](https://shield.docs.arthur.ai/reference/create_task_api_v2_task_post), all existing default rules will be auto-applied for this new Task. You can see which rules have been auto-applied  in the *rules* ResponseBody field when you create a task.

```json Example ResponseBody
{
  "id": "f29c9876-4528-425e-934d-eca2c9633a18",
  "name": "Example Task Name",
  "created_at": "2023-08-24T14:15:22Z",
  "updated_at": "2023-08-24T14:15:22Z",
  "rules": [
    {
      "id": "9719a514-d9eb-4113-9b6c-48499145b293",
      "name": "Example Rule",
      "type": "KeywordRule",
      "apply_to_prompt": true,
      "apply_to_response": true,
      "enabled": true,
      "created_at": "2023-08-24T14:15:22Z",
      "updated_at": "2023-08-24T14:15:22Z",
      "config": {
        "regex": "\\d{3}-\\d{2}-\\d{4}"
      }
    }
  ]
}
```

Once a Task is created, you can [create a rule to be applied only to this Task](create_task_rule_api_v2_tasks__task_id__rules_post). You can also [enable or disable any rule for a given Task](https://shield.docs.arthur.ai/reference/update_task_rules_api_v2_tasks__task_id__rules__rule_id__patch) as needed. Please the reference the [Rule Configuration Guide](https://shield.docs.arthur.ai/docs/rule-configuration-guide) for more information.

## Step 3: Maintain a mapping of Tasks to your use cases

Once you have set up Tasks and rules as desired, you are ready to start using Arthur Shield across your applications. In order to do so, you will need to maintain a mapping of which application or use case belongs to which **task\_id.**

## Step 4: Route requests to their respective Task endpoints

As explained in the [Quickstart Guide](https://shield.docs.arthur.ai/docs/arthur-shield-quickstart), each application can validate prompts before they are routed to your LLM using the `validate_prompt` endpoint. To specify which task the request belongs to, you can specify the `task_id` in the url path:

[POST \{hostname}/api/v2/task/\{task\_id}/validate\_prompt](https://shield.docs.arthur.ai/reference/validate_prompt_api_v2_tasks__task_id__validate_prompt_post)

For more information, please reference [Step 2 in our quickstart guide.](https://shield.docs.arthur.ai/docs/arthur-shield-quickstart#step-2-validate-prompt-with-arthur-shield)

Similarly, you can validate responses after they are generated by the LLM using the `validate_response` endpoint. To specify which task the request belongs to, you can specify the `task_id` in the url path:

[POST \{hostname}/api/v2/tasks/\{task\_id}/validate\_response/\{inference\_id}](https://shield.docs.arthur.ai/reference/valdiate_response_api_v2_tasks__task_id__validate_response__inference_id__post)

For more information, please reference [Step 4 in our quickstart guide.]()