Skip to main content

Add a keystore secret.

POST/api/v1/keystore-secretskeystore:write

The value is stored encrypted and is never returned. A name that already has a secret is 409 already_exists: change its value with PATCH.

Scopekeystore:write (sensitive)
AsynchronousNo
MCP toolcreate_keystore_secret
Portal permissionscreate_workflow_keystore_entries

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonKeystoreSecretCreateInput

Responses​

StatusDescriptionBody
201Success.application/json KeystoreSecret or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

KeystoreSecret​

FieldTypeRequiredDescription
activebooleanRequired
added_atstring (date-time) or nullRequired
added_byUserRefRequired
keystore_secret_idstringRequiredThe base64url (no padding) of the secret's name.
namestringRequired

KeystoreSecretCreateInput​

FieldTypeRequiredDescription
namestringRequired
valuestringRequired

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired