---
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: >-
  eJztWN1v2zgM/1cIvbTFOU7vbocd8tYNG9ADNhRdiw4YioWx6FirLXmS3DQX+H8/ULLz0bjZrnvZw/pSRx/Uj+SPFKmV8Dh3YvJJ3Bh7l5dmAVgqdOTEbSIkucyq2iujxURcGKW9A19QXAPoAbXxBVmgB+W80nOwdK+cMjqFc0lVbTxpn4pEmJossqBzKSZi0R02CoImTS3Rk0hEjRYr8mQZ0kooPrZGX4hEaKxITISSIhGWvjbKkhQTbxtKhMsKqlBMVsIva17lvFV6LtrHKqyVtJSTJZ3RBBAc2Xuyo0ppTxKUhOPpIv+cpun0BIwNCveAjxxkpSLtR1lhHGm4oyUcl2ZBNkNH4MpmnkCj1deGoCYLxs5Rq3+D6idsCHrAqi4Z5CL/rPKbV7ObvG7mp1q0yaDGwUQ/ovTV2mEsMYVpiZ6cn4JyYCkoLwG1BGy8GVWotEelSe6iLdU9ifY24iDnXxm55MMzo9nH/Il1XaosqDr+4vjs1T5KM/tCmd/R55PoWcOkqy1zxStyvGs9s5HAbpqT3Ub3og1/iXCUNVb5ZaDPjNCSPWt8ISafbiN2Vxvtoug/Tk/5376xIh1lNBpb4ft1VD4Y66zz2SGde0qdy97XyUbbRGDm2eKJ6NCc+X3jbInYo8FhpnXkOrQpOjz5Tg/82a4hb9bNjCkJWZtHYVhQyBrrVHLkwFs1n5N1gJYgSGKtU0awscAA4NzYCr2YCF4z8qqirS2vloPxUZFHiX6Alm0iOiAfPEfJEHF3dXmHNZi8h8/ZwxtQ3vU6KKPBsSwmEkqpeATLix1H9ry52jp7gD673mepjRt0om4qplhNWsaRMnIpR1US803pzlm3vd/+r4UlPWtbic6/sdbYIcvu6leRczgfYGnLESmHJjgF2EbzYe+e9PFjD17GDcCrwTVZARhvuc6nRw6mC5oVxtxd23Ka7gHdTA5BesrrnMXb/i8RLz5+3M9Gr8NdA8QGS4Fz08zIJThcOlgU6GHB0wtr9HwCqONCmDKEaQIIRVOhHllCibOSYCrJoyp5SssEjIZ7LJWMJGVuNJYcjxOQ9nYZb7A8jzSCXFEpD+TD2ppZSdVvT+fFi7higNr7Wdh51BKt7JQKih9fvn0NL/8+fQndWRA1cgn095iD6VOYpif7vos49tm7iycwFngNXF+eJ0DpPIVp4X3tJuPxuppxS+epSiXdjwNot5nSxo9y02g53b1WnyUjpKlo0kMZ/L3xsF6/ly2GrtHTFyGy2aTfEr0uiWChfMF579EtE2tCx2crzc7MvgF3ragbS8qVDjHjxgOXVzTMljS0Fpd7Xrvg6kb7J3g++TbPladq8ArY5VCo1w6r5jzVbuwy1OPM6Fx119ATCW57a9U4DwXeE/TFA3SnL+GI0+CR2Moifw1lkWtNDzVlXNLEUrdLKL8i+Vck/4rknzKSY5FaGG6W6yYADdCeMu1KyXbcde7jVfhoBbdDHO6xmW64PFmzFGuV6qYs6xI9V2ppZqrQ3vUd1AcO+WiV7T5qrSALEl0XGmr9sEgk3cfbvvr75+YqFEEctpeb1vFNb5btFu9FYFhueJRxR+f/np6mp2IdJ+L9Fmw4uzhnB9TG+QpDrura5kuq+b2Cq6K+g97h1Fbn+mMvG509PD34cV2iCrxuYi0Ynbbp9SKKtdtEIibhQaN/c0nEJIK9TURhnOe9q9UMHV3bsm15+GtDltvb20Tco1Vc1wX3SuX4W4pJjqWjA9oeX3b0O4Gf4D1k0Hx9MtCcCu6xbPiXSMQdLeMbEL+VPEvjH3kMeQbU6M2Wu6yCUJINvopzryO+0RVL2Ozde2FgXeOOsyyj2h9ce7uVOC6urzgeu4eaKrRMwuKCHxpwEWGaOjKR45DHVqJEPW9CMhNRZGhhdoP/UbAHpQYNsVrFFVfmjnTbru3i+TfbpW3/A1BOKyI=
sidebar_class_name: put api-method
info_path: docs/api/nullplatform-api
custom_edit_url: null
canonical: 'https://docs.nullplatform.com/docs/api/workflow-alias-update'
---
<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>

