api/fleet - confirm¶
The confirm endpoint activates the portal user and a card. The endpoint accepts the following parameters
Parameter | Required | Description |
---|---|---|
card_id | yes | Unique card identifier |
user_id | yes | Unique user identifier |
Sample Request¶
curl --location --request PUT 'https://yourinstancename.beenergised.cloud/api/fleet/v1/confirm' \
--header 'x-api-token: your_token' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": user_id_to_activate
"card_id": card_id_to_activate,
}'
Sample Response¶
{
"status": "success",
"data": {
"user_id": "activated_user_id",
"card_id": "activated_card_id"
}
}