API ReferenceCredential Request
credentialRequest.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| workspaceId | string | No | — | ID of the associated workspace |
| credentialId | string | No | — | ID of the associated credential |
| siteId | string | Yes | — | ID of the associated site |
| systemId | string | No | — | ID of the associated system |
| requestType | enum(new, modify, revoke, renew) | Yes | — | Request type |
| requestedScope | string | Yes | — | Requested scope |
| impactedSystems | unknown | Yes | [] | Impacted systems |
| requestedBy | string | Yes | — | Requested by |
| assignedApprover | string | No | — | Assigned approver |
| status | enum(pending, approved, denied, cancelled) | Yes | "pending" | Status |
| policyCheckResult | unknown | No | — | Policy check result |
| approvedBy | string | No | — | Approved by |
| approvedAt | string.date-time | No | — | Approved at |
| deniedReason | string | No | — | Denied reason |
| notes | string | No | — | Notes |
Example
{
"workspaceId": "550e8400-e29b-41d4-a716-446655440000",
"credentialId": "550e8400-e29b-41d4-a716-446655440000",
"siteId": "550e8400-e29b-41d4-a716-446655440000",
"systemId": "550e8400-e29b-41d4-a716-446655440000",
"requestType": "new",
"requestedScope": "example",
"impactedSystems": [],
"requestedBy": "example",
"status": "pending"
}