---
id: workflow-alias-update
title: "Repoint an alias"
description: "Points the alias at another existing revision. Idempotent."
sidebar_label: "Repoint an alias"
hide_title: true
hide_table_of_contents: true
api: eJztWFtv47YS/isDvuRyZDmnZ4sWfstud4EcoEWQTbAFtkFNiyOLDUVqebHjGvrvxZCSbMdKtt196cPmJbJEDueb+WY4M1vm+dKx2Uf2wdiHUpk1cCW5Q8fuMybQFVY2XhrNZuzaSO0d+ArTGuAeuDa+Qgv4KJ2XegkWV9JJo3O4Elg3xqP2OcuYadByEnQl2Iytu8MmUdAsNIJ7ZBlruOU1erSk0pZJOrbhvmIZ07xGNmNSsIxZ/BSkRcFm3gbMmCsqrDmbbZnfNLTKeSv1krVPIQwgLZZoURc4Aw4O7QrtpJbaowAp4HS+Ln/P83x+BsZGwL3CJw4KJVH7SVEZhxoecAOnyqzRFtwhOBWWGQQtPwWEBi0Yu+Ra/hmhn5Eh8JHXjSIl1+XvsvzwevGhbMLyQrM2G0UcTfQ1oG8Hh5HEHOaKe3R+DtKBxQheANcCePBmUnOpPZcaxaG2Sq6QtfdJD3T+tREbOrwwmnxMj7xplCwi1Okfjs7eHmtpFn9g4Q/wfGQ9a4h0jSWueImOdg1fdhLITUu0+9q9auNfxhwWwUq/ifRZILdoL4Ov2OzjfdLdNUa7JPq7iwv6d2ysREeRjEZW+PsYpY/Guux89hLmnlJXovd1tkObMV54snjGOm0u/bFx9kQc0eBlpnXkemlTcnj2Nz3wv3ZQebduYYxCTmiehGGFMWsMqeTEgbdyuUTrgFuEKIlQ56TBzgIjCpfG1tyzGaM1Ey9r3NvyejMaHzV6LrgfoWWbsU6R956iZIy4h1h+5g2Yslefsoc3IL3rMUijwZEsIhIXQtIbrq4PHNnz5nbv7BH6HHqfpAY36kQdaqJYg1qkNypxqeRSIfFN6s5Z973f/qmFBX7RNsWdf2utsWOWPcRXo3N8OcLSliJSjH2gFGCDpsN+ftbHTz14kzYArQYXigp4uuU6n544mK9xURnzcGfVPD9SdPdxTKXnvE5ZvO3/M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hz3GesNF4NcSEfPgs1Krhy+gPb0pktCZ/AvmIqNmq+/EjRdCCuuAv1iGXvATZoE0sTsixB/zUjsC1RN3myp166QC7TRV+nbm6Tf5JYk7PYezZkIa9pxWRTY+BfX3u9dH9d3t5SVu3FdHRtnZvmaxk18ndQ0TWIiZWN6t2WK62WIVxpLImMje3gFPEn5EdSoIbbbtOLWPKBu28Eunn6TXdr2L3do4+Y=
sidebar_class_name: "put api-method"
info_path: docs/api/workflows
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Repoint an alias"}
>
</Heading>

<MethodEndpoint
  method={"put"}
  path={"/workflows/definitions/{id}/aliases/{alias}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Points the alias at another existing revision. Idempotent.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Workflow reference: a server-minted id (`wf_...`) or the workflow's client-chosen key (lowercase slug, unique per organization).","example":"wf_ifWBbWfpug0n"},{"in":"path","name":"alias","required":true,"schema":{"type":"string"},"description":"The alias name. `latest` is reserved and auto-maintained.","example":"live"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"type":"object","required":["revision"],"properties":{"revision":{"type":"integer","example":4}}}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"The updated alias.","content":{"application/json":{"schema":{"title":"Alias","type":"object","required":["workflowId","name","revision","active","updatedAt"],"properties":{"workflowId":{"type":"string","example":"wf_ifWBbWfpug0n"},"name":{"type":"string","example":"live"},"revision":{"type":"integer","example":3},"active":{"type":"boolean","description":"Whether the alias's triggers are activated."},"updatedAt":{"type":"string","format":"date-time"},"updatedBy":{"type":"string"},"metadata":{"type":"object"},"triggerStates":{"type":"object","description":"Map of trigger id to its activation state.","additionalProperties":{"title":"TriggerState","type":"object","properties":{"status":{"type":"string","enum":["pending","live","failed","inactive"]},"activatedAt":{"type":"string","format":"date-time"},"deactivatedAt":{"type":"string","format":"date-time"},"lastError":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}}},"runtimeMetadata":{"type":"object","description":"Runtime data such as the trigger's `webhookUrl`.","properties":{"webhookUrl":{"type":"string"}},"additionalProperties":true}}}}}}}}},"4XX":{"description":"Client error. The body says what went wrong: an error `type`, a human-readable `detail`, and, on validation failures, one entry per offending field.","content":{"application/problem+json":{"schema":{"title":"Problem","type":"object","description":"The standard error body (RFC 7807 problem details, served as `application/problem+json`).","properties":{"type":{"type":"string","description":"Error type URI, e.g. `https://workflow-system.dev/errors/workflow-not-found`.","example":"https://workflow-system.dev/errors/workflow-not-found"},"title":{"type":"string","example":"Not found"},"status":{"type":"integer","example":404},"detail":{"type":"string","example":"No workflow with id wf_ifWBbWfpug0n exists"},"instance":{"type":"string","example":"/workflows/definitions/wf_ifWBbWfpug0n"},"errors":{"type":"array","description":"Present on validation failures: one entry per offending field.","items":{"type":"object","properties":{"path":{"type":"string","example":"/steps/scan/config"},"message":{"type":"string","example":"must have required property 'code'"}}}}}}}}},"5XX":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"title":"Problem","type":"object","description":"The standard error body (RFC 7807 problem details, served as `application/problem+json`).","properties":{"type":{"type":"string","description":"Error type URI, e.g. `https://workflow-system.dev/errors/workflow-not-found`.","example":"https://workflow-system.dev/errors/workflow-not-found"},"title":{"type":"string","example":"Not found"},"status":{"type":"integer","example":404},"detail":{"type":"string","example":"No workflow with id wf_ifWBbWfpug0n exists"},"instance":{"type":"string","example":"/workflows/definitions/wf_ifWBbWfpug0n"},"errors":{"type":"array","description":"Present on validation failures: one entry per offending field.","items":{"type":"object","properties":{"path":{"type":"string","example":"/steps/scan/config"},"message":{"type":"string","example":"must have required property 'code'"}}}}}}}}}}}
>
  
</StatusCodes>


      