Skip to main content
Add an existing prompt to a vault so you can organise and share it alongside related prompts. A single prompt can belong to any number of vaults at the same time — saving it to a new vault never removes it from the vaults it already belongs to.
POST https://www.promptbank.club/api/v1/prompts/{promptId}/save

Path Parameters

integer
required
The unique numeric ID of the prompt you want to save to a vault.

Request Body

integer
required
The ID of the vault to add the prompt to.

Example Request

Example Response

A successful save returns HTTP 200 OK with the updated prompt object. Notice that vaultIds now contains both the original vault (7) and the newly added vault (15). A prompt’s full list of current vault memberships is always reflected in the vaultIds array — you can verify the save succeeded by checking that the target vault ID appears in that array.