POST
/
configurations
/
time
/
set
Set system mock time
curl --request POST \
  --url https://localhost:5000/configurations/time/set \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mockTime": "<string>"
}
'
{
  "success": true,
  "message": "Set the system time to 2024-10-01 10:00:00 successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
mockTime
string
required

Mock time in format: 2024-10-01 10:00:00

Response

Mock time set successfully

success
boolean
Example:

true

message
string
Example:

"Set the system time to 2024-10-01 10:00:00 successfully"