Space Docs
API ReferenceSecret

secret.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
assetIdstringNoID of the associated asset
systemIdstringNoID of the associated system
systemNamestringYesSystem name
usernamestringNoUsername
passwordstringYesPassword
hoststringNoHost
portintegerNoPort
notesstringNoNotes

Example

{
  "assetId": "550e8400-e29b-41d4-a716-446655440000",
  "systemId": "550e8400-e29b-41d4-a716-446655440000",
  "systemName": "example",
  "username": "example",
  "password": "example",
  "host": "example"
}

On this page