Skip to main content
PUT
/
user
/
v1
/
cards
/
{cardId}
/
pin
Update card pin
curl --request PUT \
  --url https://api.machines.cash/user/v1/cards/{cardId}/pin \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};

fetch('https://api.machines.cash/user/v1/cards/{cardId}/pin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.machines.cash/user/v1/cards/{cardId}/pin"

payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
{
  "ok": true,
  "data": {},
  "summary": "success"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer session token for User API operations. Legacy UserSessionBearer naming remains supported.

Path Parameters

cardId
string
required

Body

application/json

The body is of type object.

Response

Success

ok
boolean
data
object
summary
string
errors
object[]
next
string