Write Antifraud Partner Credentials
Replaces the whole credential bundle that TED JD uses on the calls to the antifraud partner of one flow. The body is {"credentials": {...}}. The bundle accepts secret (required), certPem and keyPem (both or neither), and header.<Name>. TED JD refuses any other key. When the route of the flow uses hmac-v1, the secret must have at least 32 characters. A 204 answer has no body, and no answer returns a credential value.
TED JD writes nothing when it refuses the bundle with AFC-0001. After AFC-0003, the write may have landed, so read the status before you write again.
In BYOC, this operation exists only when PLUGIN_AUTH_ENABLED is true, ANTIFRAUD_SECRETS_BACKEND is set, and TED JD read the runtime settings at startup. Otherwise the path answers 404. The caller needs the antifraud_credentials:write permission, which the editor role holds. A person or an application that holds the permission can call it. TED JD authorizes the application with its own permissions, whatever the value of AUTH_M2M_INVERSION_ENABLED.
The answers AFC-0001 to AFC-0004 are not problem documents. Their body holds code (the HTTP status), title (the error code) and message. The 401 and 403 answers, and the 503 answer with BTF-0402, are problem documents. This endpoint does not require the X-Organization-Id header.
Autorizaciones
Parámetros de ruta
Cuerpo
Respuesta
TED JD replaced the bundle. The answer has no body.

