# Publish a measure

Publish a measure that belongs to a published app by using the [Publish method](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/EngineJSONAPI/Content/service-genericmeasure-publish.htm).

The target of the request is the handle of the measure.

## Example

[](https://help.qlik.com/en-US/sense-developer/Subsystems/EngineAPI/Content/Sense_EngineAPI/WorkingWithAppsAndVisualizations/PublishAppVisualizations/publish-measure.htm)

#### The goal is to publish a measure that belongs to an app that is published.

Prerequisite:

* The app is published.

1. Create a measure in the app.

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "CreateMeasure",
  "handle": 1,
  "params": [
    {
      "qInfo": {
        "qId": "Measure01",
        "qType": "Measure"
      },
      "qMeasure": {
        "qLabel": "Count of Country",
        "qDef": "=Count(Country)"
      }
    }
  ]
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 5,
  "result": {
    "qReturn": {
      "qType": "GenericMeasure",
      "qHandle": 3
    },
    "qInfo": {
      "qId": "Measure01",
      "qType": "Measure"
    }
  },
  "change": [
    3
  ]
}
```

The measure is created and has 3 as a handle.

2. Publish the measure. The handle of the request is 3 because the handle of the measure is 3.

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 6,
  "method": "Publish",
  "handle": 3,
  "params": []
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 6,
  "result": {}
}
```

The measure is published.

## Learn more

* [Publish an app to a stream](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/EngineAPI/Content/Sense_EngineAPI/WorkingWithAppsAndVisualizations/PublishAppVisualizations/publish-app-to-stream.htm)
* [Publish a bookmark](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/EngineAPI/Content/Sense_EngineAPI/DiscoveringAndAnalysing/Bookmarks/publish-bookmark.htm)
* [Publish a dimension](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/EngineAPI/Content/Sense_EngineAPI/WorkingWithAppsAndVisualizations/PublishAppVisualizations/publish-dimension.htm)
* [Publish a generic object](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/EngineAPI/Content/Sense_EngineAPI/WorkingWithAppsAndVisualizations/PublishAppVisualizations/publish-generic-object.htm)