Description
This endpoint allows you to update an existing credential. Currently supports updating the expiry date of a credential.
Bearer YOUR_API_TOKEN — obtainable from Hyperstack Dashboard → Settings → API Access
Path Parameters
The unique ID (key) of the credential to update.
Body Parameters
Unix timestamp (seconds) representing the new expiry date for the credential. Pass null or omit to remove the expiry date.
Success Response Fields
Indicates whether the credential was successfully updated.
Responses
curl -X POST "https://api.thehyperstack.com/v1/credential/j4nDvaxF6ehodPXI84p4X1yhQe7lrYgx/update" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"expiry": 1893456000
}'