# Deploy the linked branch now

> Fetch the linked branch and deploy it without waiting for a push. Returns immediately; follow the outcome with GET /v1/functions/{functionId}/git-link, whose lastStatus and lastError describe the run.

`POST https://api.zavu.dev/v1/functions/{functionId}/git-link/deploy`

Fetch the linked branch and deploy it without waiting for a push. Returns immediately; follow the outcome with `GET /v1/functions/{functionId}/git-link`, whose `lastStatus` and `lastError` describe the run.

## Parameters

- `functionId` (path, string, required): Zavu Function ID.

## Responses

### 202

Deploy scheduled.

- `scheduled` (boolean, required)

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 404

No repository is linked to this function.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 409

A deploy for this link is already running.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X POST "https://api.zavu.dev/v1/functions/function_abc123/git-link/deploy" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY"
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

const result = await zavu.functions.gitLink.deployNow("function_abc123");

console.log(result);
```
