# How to publish a Capsule

Publishing a Capsule means making it available for use in pipelines.

## Prerequisites

To publish a Capsule, you must meet these criteria:

* Add a JSON schema to the Contract tab of the [configuration form](/documentation/developer-guide/development-cycle/build-overview/capsulas/how-to-use-capsules/how-to-configure-a-capsule.md).
* Complete the [Save form](/documentation/developer-guide/development-cycle/build-overview/capsulas/how-to-use-capsules/how-to-save-a-capsule.md).
* Have the permission CAPSULE:UPDATE:PUBLISH. Read more in the [Roles documentation](/documentation/developer-guide/platform-administration/administration/new-access-control/access-control-roles.md).

## Publishing a capsule

Once all these criteria are met, there are two ways to publish a capsule:

### Capsule tab

In the **Build** page, go to the **Capsules** tab and find the desired capsule inside its group. Click the three-dot menu and select **Publish**.

<figure><img src="/files/fLvu270W7th9tWddDnWG" alt=""><figcaption></figcaption></figure>

### Canvas

On Canvas, click **Publish** in the upper right corner. The button is disabled if any required criteria are not met.

Once the Capsule is published, it receives the **Published** tag and is added to the list of available Capsules that can be used in the pipelines. Public Capsules with a check mark are certified by Digibee.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digibee.com/documentation/developer-guide/development-cycle/build-overview/capsulas/how-to-use-capsules/how-to-publish-a-capsule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
