---
title: "Upload dep token to a tenant"
method: PUT
path: "/tenant/v0/deptokens/{id}/"
tags: ["tenant_DEP Tokens"]
---

# Upload dep token to a tenant

`PUT /tenant/v0/deptokens/{id}/`

Upload dep token for a public key for a tenant based on ID of DEP public key

## Path parameters

- `id` string, UUID, required

## Response `200`

Upload dep token for a public key by id

- object
  - `code` integer
  - `message` string
  - `content` object
    - `schema` TenantDEPTokenGET
      - `id` string, UUID — id of DEP token
      - `token_name` string — name of DEP Token
      - `meta` object — meta information about the DEP token
        - `token_expiry_on` string
      - `state` 'CSR_GENERATED' | 'COMPLETED' — state of DEP token upload
      - `created_by` string — user id of the user
      - `updated_by` string — user id of the user
      - `created_at` string — Timestamp of DEP token creation
      - `updated_at` string — Timestamp of DEP token creation

## Other responses

- `400` — Upload DEP token by id error - Bad Request
- `401` — Upload DEP token by id error - Unauthorized
- `404` — Not Found
- `500` — Upload DEP token by id error - Internal Server Error

---

[API](https://skmtc.net/esper/apis/esper-api-reference.md) · [All operations](https://skmtc.net/esper/apis/esper-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esper/esper-api-reference/revisions/e1f64cbb488e/schema)
