---
title: "changeActivation"
method: PUT
path: "/api/club-spec/activation/{clubCode}/{clubSpecId}/{activated}"
tags: ["club-spec-club-resource"]
---

# changeActivation

`PUT /api/club-spec/activation/{clubCode}/{clubSpecId}/{activated}`

## Request

- Base URL: `https://api.neonclub.ir`
- URL: `https://api.neonclub.ir/api/club-spec/activation/{clubCode}/{clubSpecId}/{activated}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/neonclub/apis/ayria-api/docs/api/club-spec/activation/:clubCode/:clubSpecId/:activated/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `activated` boolean, required
- `clubCode` string, required
- `clubSpecId` integer, required

## Response `200`

OK

- ClubSpecDTO
  - `activated` boolean
  - `amount` number
  - `clubId` integer
  - `clubName` string
  - `deleted` boolean
  - `group` ClubGroupDTO
    - `clubId` integer
    - `clubName` string
    - `id` integer
    - `name` string
    - `publicId` string
  - `id` integer
  - `rewardType` 'VOUCHER' | 'SCORE'
  - `specType` 'MEMBERSHIP' | 'BIRTHDAY' | 'INVITE_FRIEND' | 'NEW_PURCHASE' | 'MONTHLY'

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/neonclub/apis/ayria-api.md) - [All operations](https://skmtc.dev/neonclub/apis/ayria-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neonclub/apis/ayria-api/revisions/1f6b876e9f89?raw)
