---
title: "POST Complete link AB tests"
description: "Completes a link's AB tests if they're ready, scheduled by QStash."
last_updated: "2026-10-12T07:01:04.288907+00:00"
canonical_url: "https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/api/cron/postcronlinkscompletetests"
---

<APIEndpoint
  method={"POST"}
  path={"/api/cron/links/{linkId}/complete-tests"}
  summary={"Complete link AB tests"}
  description={"Completes a link's AB tests if they're ready, scheduled by QStash."}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"linkId","in":"path","required":true,"description":"The ID of the link","schema":{"type":"string"}}]} />

## Responses

<APIResponse
  statusCode={"200"}
  description={"Result of AB test completion"}
  contentType={"text/plain"}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/api/cron/links/{linkId}/complete-tests"}
  parameters={[{"name":"linkId","in":"path","required":true,"description":"The ID of the link","schema":{"type":"string"}}]}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/llms.txt) for all pages in this wiki.
