---
title: "Set Organization Alias"
method: POST
path: "/v1/organizations/me/aliases"
tags: ["aliases"]
---

# Set Organization Alias

`POST /v1/organizations/me/aliases`

Create or update a stored alias in one of the organization's workspaces.

Organization owners and admins only, with the same two scope rules the policy
write has: ``workspace_id`` is required and resolved inside the caller's
organization, and ``user_id`` is not accepted.

## Request body

- AliasRequest — Request to create or update an alias.
  - `name` string, required — Display name callers use as the model, e.g. 'fast-model'.
  - `target` string, required — Selector the alias resolves to, as 'provider:model' or 'instance:model'.
  - `user_id` string, nullable — User this alias belongs to. Omit for an alias every caller in the workspace sees. A user-scoped alias resolves only for that user and shadows the workspace-wide one of the same name.
  - `workspace_id` string, uuid, nullable — Workspace this alias belongs to. Omit for the deployment's default workspace. The alias resolves only for requests in that workspace, so two workspaces can each point the same name at a different model.

## Response `200`

Successful Response

- AliasResponse — A model alias and where it is defined.
  - `created_at` string, nullable
  - `name` string, required
  - `source` string, required
  - `target` string, required
  - `updated_at` string, nullable
  - `user_id` string, nullable
  - `workspace_id` string, uuid, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-02** `be434013dd3d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mozilla-ai/apis/otari/changes/v1/organizations/me/aliases/post.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc.dev/mozilla-ai/apis/otari/revisions/80c117c36f36?raw)
