Skip to main content
POST
https://api.thehyperstack.com
/
v1
/
credential
/
{document_id}
/
update
Update Credential
curl --request POST \
  --url https://api.thehyperstack.com/v1/credential/{document_id}/update \
  --header 'Content-Type: application/json' \
  --data '{
  "expiry": 123
}'
{
  "success": true
}

Description

This endpoint allows you to update an existing credential. Currently supports updating the expiry date of a credential.

Headers

Authorization
string
required
Bearer YOUR_API_TOKEN — obtainable from Hyperstack Dashboard → Settings → API Access

Path Parameters

document_id
string
required
The unique ID (key) of the credential to update.

Body Parameters

expiry
number
required
Unix timestamp (seconds) representing the new expiry date for the credential. Pass null or omit to remove the expiry date.

Success Response Fields

success
boolean
Indicates whether the credential was successfully updated.

Responses

{
  "success": true
}
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
  }'
Last modified on February 22, 2026