---
title: "Enable a task on an agent"
method: POST
path: "/agents/{id}/tasks/{taskId}/enable"
tags: ["agents"]
---

# Enable a task on an agent

`POST /agents/{id}/tasks/{taskId}/enable`

## Request

- Base URL: `https://be.skipcalls.com` (the document declares no server; this is the origin it was published from)
- URL: `https://be.skipcalls.com/agents/{id}/tasks/{taskId}/enable`
- Auth: HTTP bearer

Enables a task for the agent — creates the link if absent, updates priority if already enabled. The agent will offer this task during calls provided its prerequisites are met (e.g., `calendar_connected` requires a linked calendar). Priority defaults to 0.

## Path parameters

- `id` string, required
- `taskId` string, required

## Request body

- EnableTaskDto
  - `priority` number: Priority (lower = higher priority)

## Response `200`

- AgentTaskLinkDto
  - `id` string, required: Unique link identifier
  - `agentId` string, required: Agent this task is linked to
  - `taskId` string, required: Task definition this link references
  - `priority` number, required: Priority (lower = higher priority)
  - `createdAt` string, date-time, required: Link creation timestamp
  - `task` TaskDefinitionDto, required: Full task definition
    - `id` string, required: Unique task definition identifier
    - `slug` string, required: URL-friendly task identifier
    - `title` string, required: Human-readable task title
    - `description` string, required: Instruction for the agent on how to perform this task
    - `completionCriteria` string, required: Criteria to determine when the task is completed
    - `prerequisiteType` string, nullable: Prerequisite type required before task can be enabled (e.g. "calendar_connected")
    - `groupName` string, nullable: Group label for frontend task grouping (e.g. "Scheduling", "Communication")
    - `userId` string, nullable: Owner user ID (null = system/global task)
    - `createdAt` string, date-time, required: Task definition creation timestamp

---

[API](https://skmtc.dev/skipcalls/apis/skipcalls-public-api.md) - [All operations](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/revisions/c893bb6c0091?raw)
