grace_seconds (0 to 604800). The new client_secret in the response is shown once and never stored. Requires a system admin or the owner of the machine's owning team. When the machine sits on a person's personal team and anyone but that person makes this credential, the machine is removed from that personal team in the same transaction. Any other caller with system access is answered 404, exactly as for an id that does not exist. Where an external identity provider mints this instance's tokens, the credential is still dormant: true.Authorization: ********************client_secretcurl --location '/api/machine-clients//rotate-secret' \
--header 'X-Temper-Surface;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"grace_seconds": 0
}'{
"client": {
"client_id": "string",
"created": "2019-08-24T14:15:22.123Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"issuer": "string",
"label": "string",
"last_seen_at": "2019-08-24T14:15:22.123Z",
"profile_id": "bfcb6779-b1f9-41fc-92d7-88f8bc1d12e8",
"registered_by_profile_id": "18e6908a-ccb7-48bf-a180-a379e0568e01",
"revoked_at": "2019-08-24T14:15:22.123Z",
"revoked_by_profile_id": "e2512452-9e5c-40a6-8117-21bb43a829e4",
"secret_rotated_by_profile_id": "d73cae19-470b-43f5-9688-cb1abc10cb63",
"team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba"
},
"client_secret": "string",
"dormant": true
}