---
title: "Put an document for an id4n"
method: PUT
path: "/api/v1/documents/{id4n}/{organizationId}"
tags: ["Storage"]
---

# Put an document for an id4n

`PUT /api/v1/documents/{id4n}/{organizationId}`

Creating or overwriting an existing document

## Path parameters

- `organizationId` string, required
- `id4n` string, required

## Response `200`

OK

- Document
  - `filename` string — File Name
  - `mimeType` string — Mime Type
  - `ownerOrganizationId` string — The organization's namespace which owns the document
  - `visibility` Visibility
    - `public` boolean — Document is publicly readable (if ID4N is owned by the same organization)
    - `sharedOrganizationIds` string[] — Document is readable by these organizations (independend of ID4N ownership)

## Other responses

- `202` — Accepted
- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `405` — Method not allowed
- `406` — Not Acceptable
- `409` — Conflict
- `415` — Unsupported Media Type
- `500` — Internal Server Error

---

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