---
title: "createOstanban"
method: POST
path: "/api/ostanbans"
tags: ["ostanban-resource"]
---

# createOstanban

`POST /api/ostanbans`

## Request body

- Ostanban
  - `id` integer
  - `ostan` Ostan, required
    - `amarCode` integer, required
    - `id` integer
    - `name` string, required
    - `phoneCode` string
  - `user` User, required
    - `activated` boolean, required
    - `clubCardNumber` integer
    - `clubCode` integer
    - `clubType` 'AYRIA' | 'PERSEPOLIS' | 'KARAFARIN' | 'BIMEHKHAVARMIYANE'
    - `email` string
    - `firstName` string
    - `fullname` string
    - `gender` 'MALE' | 'FEMALE'
    - `id` integer
    - `imageUrl` string
    - `langKey` string
    - `lastName` string
    - `locked` boolean
    - `login` string, required
    - `mobile` string
    - `nickname` string
    - `notSystem` boolean
    - `originClubCode` integer
    - `persepolisi` boolean
    - `plan` 'BASIC' | 'GOLD' | 'STAR' | 'GALAXY'
    - `system` boolean

## Response `200`

OK

## Other responses

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

---

[API](https://skmtc.dev/ayriaclub/apis/ayria-api.md) · [All operations](https://skmtc.dev/ayriaclub/apis/ayria-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ayriaclub/ayria-api/revisions/e53c83aeee1d/schema)
