--- title: "Rename an issuer" canonical: "https://admiral.io/docs/api/issuers/IssuerAPI_RenameIssuer" --- # Rename an issuer `POST https://api.admiral.io/v1/issuers/{issuer}/rename` - ALREADY_EXISTS when another issuer has the new name. - ABORTED when `etag` is set and the issuer changed since it was read. Scope: `serviceaccount:write` ### Path parameters - `issuer` (string, required): The issuer id. ### Request body - `new_name` (string, required): The new name, under the same rules as the issuer's `name`. new_name.not_uid // an issuer name may not have the shape of a uid Pattern `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. Length 1 to 63. - `etag` (string): When set, the rename is refused unless it matches the issuer's current etag. ### Response 200 Success - `issuer` (Issuer): The issuer under its new name. - `uid` (string): `iss-` and twelve base36 characters. Never changes and is never reused, so it is what a reference to the issuer holds. Pattern `^iss-[0-9a-z]+$`. Read-only. - `name` (string, required): (IMMUTABLE) The name, such as `github-actions`. Unique among the organization's issuers, set on create and changed only by RenameIssuer. One made at enrollment takes the name of the agent that enrolled it. Lowercase letters, digits and hyphens, starting with a letter and ending with a letter or digit, 1 to 63 characters. It may not have the shape of a uid (`iss-` and twelve characters). name.not_uid // an issuer name may not have the shape of a uid Pattern `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. Length 1 to 63. - `display_name` (string): A label for people, such as "GitHub Actions". Optional; clients show the name when it is unset. Length at most 128. - `resource_name` (string): (IDENTIFIER) The resource name, `issuers/{issuer}`, such as `issuers/github-actions`. Built from the issuer's name, so it changes when the issuer is renamed; refer to it by `uid` to keep a reference stable. Pattern `^issuers/[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - `iss` (string): (IMMUTABLE) The `iss` every token must carry, exactly, e.g. `https://token.actions.githubusercontent.com`. One made at enrollment takes it from the enrolling token. Fixed once set. Length 1 to 2048. - `keys` (IssuerKeys, required): IssuerKeys is where Admiral gets the keys that verify an issuer's tokens. - Exactly one of `jwks_uri`, `jwks`, `reported` is set. - `jwks` (string): A JSON Web Key Set, pasted in. It replaces the trusted set, so paste the whole set the issuer serves: during a rotation that holds the old key and the new one. Length 2 to 65536. - `jwks_uri` (string (uri)): Fetched and refreshed when a token names a key not yet seen. Rotation needs no action. string.prefix = "https://" Length at most 2048. - `reported` (Reported): The first keys arrive when an agent enrolls. Keys agents report after that wait in `pending_key_ids` for an admin to accept. Never set on create: an issuer with reported keys is made only by enrollment. - `key_ids` (array of string): The key ids currently trusted. Read-only. - `keys_updated_at` (Timestamp): A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC. Read-only. - `pending_key_ids` (array of string): Key ids an agent reported that are not trusted yet. They are never applied on their own: an admin accepts them with SetIssuerKeys. Read-only. - `pending_keys_at` (Timestamp): A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC. Read-only. - `etag` (string): Changes whenever the issuer does. Send it back on rename or delete to refuse the change if someone else changed the issuer first. Read-only. - `created_by` (ActorRef): ActorRef is a lightweight reference to the user or agent that performed an action. Server-populated on all resource responses. Clients should never send this. Read-only. - `id` (string): The actor's typed id: a `usr-` user id or an `sa-` service account id. - `display_name` (string): Human-readable name (e.g., "John Smith", "deploy-bot"). - `email` (string): Email address (empty for non-human actors). - `created_at` (Timestamp): A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC. Read-only.