Activate an API credential

PATCH {{baseUrl}}/merchants/:merchantId/apiCredentials/:apiCredentialId

Changes the API credential's roles, or allowed origins. The request has the new values for the fields you want to change. The response contains the full updated API credential, including the new values from the request. To make this request, your API credential must have the following roles: * Management API—API credentials read and write

Request Body

{"active"=>true}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"YOUR_API_CREDENTIAL","username":"YOUR_USERNAME","clientKey":"YOUR_CLIENT_KEY","allowedIpAddresses":[],"roles":["Checkout webservice role","Merchant PAL Webservice role"],"active":true,"allowedOrigins":[{"id":"YOUR_ALLOWED_ORIGIN","domain":"https://www.mystore.com","_links":{"self":{"href":"https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/allowedOrigins/YOUR_ALLOWED_ORIGIN"}}}],"_links":{"self":{"href":"https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL"},"allowedOrigins":{"href":"https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/allowedOrigins"},"generateApiKey":{"href":"https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/generateApiKey"},"generateClientKey":{"href":"https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/generateClientKey"},"merchant":{"href":"https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT"}}}