Ethiack Docs
Events

Update an event credential (deprecated path)

PATCH
/v1/events/{event_slug}/credentials/{credential_id}

Deprecated: use PATCH /v1/pentests/{pentest_slug}/credentials/{credential_id} instead.

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.

AuthorizationBearer <token>

An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.

In: header

Path Parameters

credential_id*integer
event_slug*string

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/events/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": {}
    }
  ]
}