Create or Update MLE Configuration for Target
PUT/targets/:id/mle/
Create or replace the MLE configuration for a target by uploading public key and client's private key as PEM files.
Request
Path Parameters
id stringrequired
- multipart/form-data
Body
required
key_id stringrequired
The non-sensitive Key ID from Visa.
scope string[]required
List of API paths where MLE is applied (e.g., ["/api/v1/payments", "/api/v1/manage_card/*"]).
server_public_key urirequired
Possible values: Value must match regular expression (?:pem)$
The .pem file containing Visa's public key.
client_private_key urirequired
Possible values: Value must match regular expression (?:pem)$
The .pem file containing the client's private key.
Responses
- 200
- 400
- 403
- 404
- application/json
- Schema
- Example (from schema)
Schema
configured booleanrequired
Indicates if MLE is configured for the target.
enabled booleanrequired
Indicates if MLE is currently enabled for the target.
key_id stringnullablerequired
The Key ID for MLE configuration.
scope string[]nullablerequired
List of API paths where MLE is applied.
{
"configured": true,
"enabled": true,
"key_id": "string",
"scope": [
"string"
]
}
- application/json
- Schema
- Example (from schema)
Schema
<field name> string[]
non_field_errors string[]
{
"<field name>": [
"Errors related to field <field name>."
],
"non_field_errors": [
"Errors not related to any field specific field."
]
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "You do not have permission to perform this action."
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "Not found."
}
Loading...