Create Credential Type
POST /training
Request Body
Required Fields
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Name of the credential type |
site_id |
string | No* | ID of the site |
portal_id |
string | No* | ID of the portal |
* You must include either
site_idORportal_id, but not both.
Optional Fields
| Field | Type | Default | Description |
|---|---|---|---|
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 ("years", "months", "weeks", "days", "minutes", "seconds") | |
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 |
Response
data contains the created credential type. Site moderators and portal administrators can manage their respective credential types.
See the Credentials API overview for related endpoints and shared data structures.