PUT
/ vars/ v1/ agents/ {agentId}Related guide: Register an agent.
Authentication: the method you chose, X-Pay-Token or two-way TLS; see X-Pay-Token / mTLS. X-Pay uses the signed apiKey query.
Parameters
Request body
Required JSON body. Every field is optional, so send only what changes.
Responses
| HTTP | Meaning | Schema |
|---|---|---|
200 | Agent updated. | AgentResponse |
403 | Agent is deactivated. | ErrorResponse |
404 | Agent not found. | ErrorResponse |
409 | A conflict, such as a duplicate domain, or a contactEmail already used on your TRID. A plus-address counts as a different email. | ErrorResponse |
422 | Unsupported / invalid fields. | ValidationError |
The token covers this URL's exact query and the exact request body, so each request needs a new one. Replace the YOUR_ values with your own.
base='https://sandbox.api.visa.com/vars/v1'
curl --request PUT \
"$base/agents/YOUR_AGENT_ID?apiKey=YOUR_API_KEY" \
--header 'Accept: application/json' \
--header 'x-pay-token: TOKEN_FOR_THIS_EXACT_REQUEST' \
--header 'Content-Type: application/json' \
--data-binary @agent-update.json{
"contactEmail": "agent-team+tap-updated@example.com"
}