Update a pentest credential
Rewrite a pentest credential to new values, within its kind.
The body is the credential's full representation, kind included, as GraphQL's updatePentestCredential takes it: secrets are not kept back, so a field left out is cleared or refused rather than preserved. The kind cannot change — the credential is looked up as the kind sent, so an id of another kind is not found. The asset binding follows the new values. No one can update one holding an NTLM hash.
An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://api.ethiack.com/v1/pentests/string/credentials/0" \ -H "Content-Type: application/json" \ -d '{ "kind": "login", "login_url": "https://app.example.com/login", "username": "[email protected]", "password": "<password>", "totp_secret": "JBSWY3DPEHPK3PXP" }'{
"id": 0,
"kind": "login",
"login_url": "string",
"username": "string",
"password": "string",
"sso_provider": "google",
"totp_secret": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}List pentest credentials GET
List the credentials provisioned for a pentest, optionally by kind. Each item carries its `kind` and only that kind's keys.
Delete a draft pentest DELETE
Cancel a pentest that was never started, releasing its reserved credits. Its debits never took effect, so they are released rather than refunded, and the row goes with its members, scope and credentials.