Space Docs
API ReferenceCredential Request

credentialRequest.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
workspaceIdstringNo—ID of the associated workspace
credentialIdstringNo—ID of the associated credential
siteIdstringYes—ID of the associated site
systemIdstringNo—ID of the associated system
requestTypeenum(new, modify, revoke, renew)Yes—Request type
requestedScopestringYes—Requested scope
impactedSystemsunknownYes[]Impacted systems
requestedBystringYes—Requested by
assignedApproverstringNo—Assigned approver
statusenum(pending, approved, denied, cancelled)Yes"pending"Status
policyCheckResultunknownNo—Policy check result
approvedBystringNo—Approved by
approvedAtstring.date-timeNo—Approved at
deniedReasonstringNo—Denied reason
notesstringNo—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"
}

On this page