---
title: "Apply a credential to a host"
method: POST
path: "/credentials/{id}/apply-to-host/{hostId}"
tags: ["Credentials"]
---

# Apply a credential to a host

`POST /credentials/{id}/apply-to-host/{hostId}`

Applies a credential to an SSH host for quick application.

## Path parameters

- `id` integer, required
- `hostId` integer, required

## Response `200`

Credential applied to host successfully.

## Other responses

- `400` — Invalid request.
- `404` — Credential not found.
- `500` — Failed to apply credential to host.

---

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