---
title: "Upload and attach a file to an item"
method: POST
path: "/credentials/{credential_id}/file"
tags: ["File"]
---

# Upload and attach a file to an item

`POST /credentials/{credential_id}/file`

## Path parameters

- `credential_id` integer, required

## Response `200`

The result

- object
  - `result` boolean

## Other responses

- `default` — Unexpected error

## Changes

- **2016-09-08** `e2294e4e3228` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nextcloud/apis/passman-api/changes/credentials/:credential_id/file/post.md)

---

[API](https://skmtc.dev/nextcloud/apis/passman-api.md) · [All operations](https://skmtc.dev/nextcloud/apis/passman-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nextcloud/passman-api/revisions/797b454b1497/schema)
