Update Credential Type
POST /training/{training_id}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
training_id |
string | Yes | ID of the credential type to update |
Request Body
Optional Fields
| Field | Type | Description |
|---|---|---|
name |
string | Name of the credential type |
description |
string | Description of the credential type |
duration_default |
integer | Default duration for credentials of this type |
duration_default_unit |
string | Unit for the default duration |
active |
boolean | Whether the credential type is active |
user_name_affix |
string | Text to display next to user names with this credential |
never_expires |
boolean | Whether credentials of this type never expire |
silent |
boolean | Whether to suppress notifications |
Set silent explicitly when updating an existing type. Omission resets it to false. Deactivating a credential type removes it as a resource requirement.
Response
data contains the updated credential type.
See the Credentials API overview for related endpoints and shared data structures.