Create secret

POST

Create a new secret in this organization.

Only organization admins can create secrets.

Headers

IB-ContextstringOptional

Specify whether to use your community account or organization account to complete the request. To use your community account, define as your user ID. To use your organization account, define as your organization ID. If unspecified, defaults to community account context. See Authorization and context identification for details.

Request

This endpoint expects an object.
aliasstringRequired

Name of the secret.

valuestringRequired

Content of the secret.

allowed_workspaces_typeenumRequired
Allowed values: ALLSOMENONE

Which workspaces in this organization are allowed to use this secret in custom functions.

descriptionstringOptional

Description of the secret.

allowed_workspaceslist of stringsOptional

Which workspaces are allowed to use this secret, if only some are allowed.