---
title: "update_task"
summary: "];"
url: "https://docs.slack.dev/tools/deno-slack-sdk/reference/connector-functions/asana/update_task"
type: "guide"
---

Source: https://docs.slack.dev/tools/deno-slack-sdk/reference/connector-functions/asana/update_task

# update_task

## Facts {#facts}

**Description**Update a task

**Schema**`Connectors.Asana.functions.UpdateTask`

**Service**`Asana`

## Input parameters {#input-parameters}

### Required input parameters

**`asana_access_token`**`slack#/types/credential/oauth2`Required

Asana Access token. See the [authentication](#authentication) section for details.

**`task_gid`**`string`Required

The globally unique identifier for the task to update

_Examples_

`"0fb0abc-1qwe234-asdf1234-zxcv0987"`

**`workspace_gid`**`string`Required

The globally unique identifier for the workspace or organization

_Examples_

`02af8431-baa5-42d5-86ee-4fa270c5ef32`

### Optional input parameters

**`assignee`**`slack#/types/user_id`Optional

New assignee

**`completed`**`boolean`Optional

Whether this task should be marked as already complete

**`description`**`string`Optional

Free-form text describing this task

**`due_at`**`slack#/types/timestamp`Optional

The date and time when this task is due, as a Unix timestamp

**`name`**`string`Optional

A concise name for this task

**`start_at`**`slack#/types/timestamp`Optional

The date and time when this task should start, as a Unix timestamp

## Output parameters {#output-parameters}

### Required output parameters

**`permalink_url`**`string`Required

Link to task

**`task_name`**`string`Required

Task name

### Optional output parameters

**`assignee`**`string`Optional

Assignee of task

**`completed`**`boolean`Optional

Is Task Completed

**`created_at`**`string`Optional

Created at

**`description`**`string`Optional

Description

**`due_at`**`string`Optional

Due at

**`start_at`**`string`Optional

Start at

## Authentication {#authentication}

### End-user authentication

User workflows that include a connector function relying on end-user authentication can only be started with a link trigger.

```
{
  "asana_access_token": {
    "credential_source": "END_USER"
  }
}
```

**End-user experience:** User will be prompted to link their external account via OAuth when they first start the workflow that contains this connector.

**Developer experience:** Developer does not have to implement authentication in the app.

## Usage info {#usage-info}

First, import `Connectors` from `deno-slack-hub` into your project's `import_map.json` file, like this:

import\_map.json

```js
{
    "imports": {
      "deno-slack-hub/": "https://deno.land/x/deno_slack_hub@2.2.0/",
      "deno-slack-sdk/": "https://deno.land/x/deno_slack_sdk@2.14.2/",
      "deno-slack-api/": "https://deno.land/x/deno_slack_api@2.8.0/"
    }
  }
```

Next, import `Connectors` at the top of your workflow's definition file:

my\_workflow\_file.ts

```ts
import { Connectors } from "deno-slack-hub/mod.ts";
```

Finally, add the connector as a step in your [workflow](https://docs.slack.dev/tools/deno-slack-sdk/guides/creating-workflows.md) just like you would a [Slack function](https://docs.slack.dev/tools/deno-slack-sdk/guides/creating-slack-functions.md).

my\_workflow\_file.ts

```ts
SomeWorkflow.addStep(
  Connectors.Asana.functions.UpdateTask, {
  //...
```

🧙🏼 **Your admin may need to approve the connector first.** If your workspace has been configured to only allow admin-approved apps, the CLI will prompt you to send an [admin approval request](https://docs.slack.dev/tools/deno-slack-sdk/guides/controlling-permissions-for-admins.md#admin-connectors) the first time you try to use a connector that hasn't been approved by an admin yet. While waiting for admin approval, the CLI may report an error like this:

```
Workflow function X is referring to an unknown step output parameter Y
```

You can safely ignore this error; it will go away as soon as your workspace admin approves your request to use the connector.
