---
title: "Update user's ingestion token"
method: PUT
path: "/api/{org_id}/passcode"
tags: ["Organizations"]
---

# Update user's ingestion token

`PUT /api/{org_id}/passcode`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/passcode`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/passcode/put.ts> (a function with typed inputs; its response is checked against the schema)

Generates a new ingestion token (passcode) for the authenticated user within the specified organization. The old token will be invalidated and all ingestion processes using the old token will need to be updated with the new token. Requires Admin or Root role.

## Path parameters

- `org_id` string, required

## Response `200`

Success

- object
  - `data` IngestionPasscode, required
    - `passcode` string, required
    - `user` string, required

## Other responses

- `403`: Forbidden
- `404`: NotFound

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
