---
title: "PUT /v2/activities/{name}/{merchant_id}"
method: PUT
path: "/v2/activities/{name}/{merchant_id}"
tags: ["activities"]
---

# PUT /v2/activities/{name}/{merchant_id}

`PUT /v2/activities/{name}/{merchant_id}`

## Request

- Base URL: `https://api.loyaltylion.com`
- URL: `https://api.loyaltylion.com/v2/activities/{name}/{merchant_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP basic

## Path parameters

- `name` string, required
- `merchant_id` string, required

## Request body

- ActivitiesUpdateActivityByNameAndMerchantIdRequestBody
  - `state` 'approved' | 'declined' | 'void', required: The new state of this activity

## Response `204`

204

- ''

## Other responses

- `400`: Bad Request
- `401`: 401
- `403`: 403
- `422`: 422

## Changes

- **2026-11-03** `69cbd7bf7128`: 2 info
  - added the optional property `error/code` to the response with the `401` status
  - added the optional property `error/code` to the response with the `403` status

[Operation history](https://skmtc.dev/loyaltylion/apis/loyaltylion-admin-api/changes/v2/activities/:name/:merchant_id/put.md)

---

[API](https://skmtc.dev/loyaltylion/apis/loyaltylion-admin-api.md) - [All operations](https://skmtc.dev/loyaltylion/apis/loyaltylion-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loyaltylion/apis/loyaltylion-admin-api/revisions/69cbd7bf7128?raw)
