> For the complete documentation index, see [llms.txt](https://user.netmera.com/netmera-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/push-notifications/start-update-or-end-live-activity.md). Agents can also search and read this documentation through its [MCP server](https://user.netmera.com/netmera-developer-guide/~gitbook/mcp).

# Start, Update or End Live Activity

Starts, updates or ends an iOS Live Activity for a group. Netmera creates a live activity campaign message for `groupId` and queues it for sending.

{% hint style="danger" %}
**Requests sent from Test it are real.** Test it opens a request panel; pressing **Send** in that panel calls the live API with the key you enter. With a production API key it starts, updates or ends the Live Activity on every iOS device that holds an activity for the `groupId`. Use a test application's key or a `groupId` used only by your test devices.
{% endhint %}

#### Capabilities

* **Start** — Set `action` to `START` to start the activity.
* **Update** — Set `action` to `UPDATE` to update the activity's content.
* **End** — Set `action` to `END` to end the activity.

#### How it works

1. Send the activity's `groupId` and an `action`, with the new content in `contentState`.
2. Netmera accepts a valid request with HTTP 200 and an empty body.
3. The message is sent asynchronously, only to iOS devices that hold a token for a started activity with this `groupId`.

<details>

<summary>Notes</summary>

* Live activities are available on iOS only.
* Always send `action`. A request without it returns HTTP 400, code `2001`, "An unexpected error occurred. Retry later.".
* If no device has started an activity for the group, nothing is sent and no error is returned.
* An empty `groupId` returns HTTP 406 with an RFC 7807 body (`"title": "Not Acceptable"`).
* Messages created through this endpoint are exempt from the application's user message limits. They are not filtered out when a user reaches the limit, and they do not increase the user's message count.

</details>

```json
{"openapi":"3.1.0","info":{"title":"Netmera REST API","version":"3.0"},"tags":[{"name":"Push Notifications","description":"Send push notifications to an audience or to individual users.\n\n<table data-view=\"cards\"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type=\"content-ref\"></th></tr></thead><tbody><tr><td><strong>Send Bulk Notification</strong></td><td><code>POST</code> Send one message to an audience: tags, segments, profile attributes, a location or everyone.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/push-notifications/send-bulk-notification\">Send Bulk Notification</a></td></tr><tr><td><strong>Create Notification Definition</strong></td><td><code>POST</code> Create a reusable transactional message once; use its key for every personal send.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/push-notifications/create-notification-definition\">Create Notification Definition</a></td></tr><tr><td><strong>Send Transactional Notification</strong></td><td><code>POST</code> Send a personal message, such as an OTP or an order update, to one or more users.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/push-notifications/send-transactional-notification\">Send Transactional Notification</a></td></tr><tr><td><strong>Start, Update or End Live Activity</strong></td><td><code>POST</code> Start, update or end an iOS Live Activity for a group.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/push-notifications/start-update-or-end-live-activity\">Start, Update or End Live Activity</a></td></tr></tbody></table>\n"}],"servers":[{"url":"https://restapi.netmera.com","description":"Netmera REST API"}],"security":[{"REST-API-key":[]}],"components":{"securitySchemes":{"REST-API-key":{"type":"apiKey","in":"header","name":"X-netmera-api-key","description":"REST API key. Available in the Netmera Panel under Developers > API.\n"}},"schemas":{"NetmeraError":{"type":"object","description":"Standard Netmera error body.","required":["code","error"],"properties":{"code":{"type":"integer","description":"Netmera error code. See the error table in the API description."},"error":{"type":"string","description":"Human readable error message."}}},"ProblemDetail":{"type":"object","description":"RFC 7807 error body returned by the framework instead of the Netmera error body when a\nrequired query parameter is missing or a parameter cannot be converted to its type.\n","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}}}},"responses":{"InvalidApiKey":{"description":"The `X-netmera-api-key` header is missing or the key is not valid.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetmeraError"}}}},"IpNotAllowed":{"description":"The application restricts REST calls to a list of allowed IP addresses and the caller's\nIP is not on it. The check runs after the API key is validated and before the request\nbody and parameters are validated, so a restricted application returns this error even\nfor a malformed request.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetmeraError"}}}}}},"paths":{"/rest/3.0/update-live-activity":{"post":{"operationId":"updateLiveActivity","tags":["Push Notifications"],"summary":"Start, Update or End Live Activity","description":"Starts, updates or ends an iOS Live Activity for a group. Netmera creates a live activity campaign\nmessage for `groupId` and queues it for sending.\n\n{% hint style=\"danger\" %}\n**Requests sent from Test it are real.** Test it opens a request panel; pressing **Send** in\nthat panel calls the live API with the key you enter. With a production API key it starts,\nupdates or ends the Live Activity on every iOS device that holds an activity for the\n`groupId`. Use a test application's key or a `groupId` used only by your test devices.\n{% endhint %}\n\n### Capabilities\n\n- **Start** — Set `action` to `START` to start the activity.\n- **Update** — Set `action` to `UPDATE` to update the activity's content.\n- **End** — Set `action` to `END` to end the activity.\n\n### How it works\n\n1. Send the activity's `groupId` and an `action`, with the new content in `contentState`.\n2. Netmera accepts a valid request with HTTP 200 and an empty body.\n3. The message is sent asynchronously, only to iOS devices that hold a token for a started activity\n   with this `groupId`.\n\n<details>\n\n<summary>Notes</summary>\n\n- Live activities are available on iOS only.\n- Always send `action`. A request without it returns HTTP 400, code `2001`, \"An unexpected error\n  occurred. Retry later.\".\n- If no device has started an activity for the group, nothing is sent and no error is returned.\n- An empty `groupId` returns HTTP 406 with an RFC 7807 body (`\"title\": \"Not Acceptable\"`).\n- Messages created through this endpoint are exempt from the application's user message limits. They\n  are not filtered out when a user reaches the limit, and they do not increase the user's message\n  count.\n\n</details>\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupId":{"type":"string","description":"Group identifier of the live activity; it is not checked against existing live\nactivities. An empty or missing value returns 400 with\n`{\"error\": \"Please provide a valid group id!\"}`.\n"},"action":{"type":"string","enum":["START","UPDATE","END"],"description":"Live activity action, case-sensitive: `START`, `UPDATE` or `END`. Required; a missing\nvalue returns 400, code `2001`, and an invalid value 400 with an RFC 7807 body.\n"},"contentState":{"type":"object"},"priority":{"type":"integer","description":"Delivery priority of the update."},"staleDate":{"type":"string","format":"date-time","description":"ISO-8601 UTC timestamp, for example `2030-01-01T10:00:00Z`. An unparseable value returns\n400 with code 2001.\n"},"dismissalDate":{"type":"string","format":"date-time","description":"ISO-8601 UTC timestamp, for example `2030-01-01T10:00:00Z`. An unparseable value returns\n400 with code 2001.\n"}},"required":["groupId","action"]}}}},"responses":{"200":{"description":"The update was accepted. Returns no response body."},"400":{"description":"Error responses the API can return.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NetmeraError"},{"type":"object","description":"Error body without a Netmera code.","required":["error"],"properties":{"error":{"type":"string"}}}]}},"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"$ref":"#/components/responses/InvalidApiKey"},"403":{"$ref":"#/components/responses/IpNotAllowed"},"406":{"description":"`groupId` is empty.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"415":{"description":"Error responses the API can return.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/push-notifications/start-update-or-end-live-activity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
