WorkspaceSecretService
Workspace Secrets

Create a new workspace secret

Creates a new workspace secret in the workspace

post/v1/workspaces/{workspaceId}/workspace_secrets

Path parameters

workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q

The workspace that will own this secret.

Request body

workspaceIdstring

The workspace that will own this secret.

Example request

{
  "workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q"
}

Response

OK

Example response

{
  "metadata": {
    "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
    "workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
    "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
  },
  "info": {
    "createdBy": {
      "metadata": {
        "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
        "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
      }
    }
  }
}

Changes

Changed in 3 of the 57 revisions of this API.32

    • removed the request property metadata/bundleKey

      request-property-removed

    • removed the optional property metadata/bundleKey from the response with the 200 status

      response-optional-property-removed

    • added the optional property info/allOf[WorkspaceSecretInfo]/createdBy/metadata/createdAt to the response with the 200 status

      response-optional-property-added

    This revision also has 27 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property metadata/updatedAt to the response with the 200 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new PROFILE_TYPE_UNSPECIFIED enum value to the info/allOf[WorkspaceSecretInfo]/createdBy/spec/type response property for the response status 200

      response-property-enum-value-added