Skip to main content
Create a new credential for a target.

POST /credentials/target/:target/:target_id

Path Parameters

Request Body

Response

Errors

Storing a credential hands the target the keys to some other system entirely, so it is a human act: a service account’s own key gets 403 for every target, even one it otherwise administers with admin. Use an acting token when automation has to store one on a human’s behalf.
target=user/{account} stores the credential on a service account. Those are the credentials retirement deletes — see Delete User.

Example