# Set or Update Authentication Method
source: https://developer.mastercard.com/mastercard-processing-core/documentation/use-cases/card-lifecycle/set-update-auth-method/index.md

## Overview {#overview}

The use case describes the process to set or update the authentication method using a dedicated API operation if you use the Mastercard Processing Access Control Server (ACS) vendor for 3-D Secure transaction authentication. For example, you can use the operation to update the static password value for the 3DS transactions for the specified card contract.

## Sequence diagram {#sequence-diagram}

Diagram set-auth-method

### Explanation {#explanation}

1. The server sends a `PUT` request to the `/contracts/{contract_id}/authentication-method` endpoint passing in the request body the required `authenticationTypeCode` field and the list of `AuthenticationParameter` object with the fields `name` and `value` to which `authenticationTypeCode` must be set or updated.
2. The API returns the HTTP status `204`. Tip: To reset the authentication method parameter's value, it is required to send only the `name` in the `AuthenticationParameter` object.   
   Refer to [Sandbox testing](https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/card-lifecycle-management/set-update-auth-method/index.md) for information on how to execute the use case in the Sandbox environment.

## Endpoint {#endpoint}


API Reference: `PUT /contracts/{contract_id}/authentication-method`

