---
title: "Set Auto Renew"
method: POST
path: "/api/v1/authors/{author_id}/auto-renew"
tags: ["api", "api", "authors"]
---

# Set Auto Renew

`POST /api/v1/authors/{author_id}/auto-renew`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/authors/{author_id}/auto-renew`
- Auth: HTTP bearer

## Path parameters

- `author_id` integer, required

## Query parameters

- `type` union, required
  - 'exercise' | 'video' | 'audio' | 'image' | 'course'
  - 'plan'
- `enabled` boolean, required
- `plan_id` string, nullable

## Response `200`

Successful Response

- Author
  - `id` integer, required
  - `name` string, required
  - `email` string, nullable
  - `counts` ResourceCounts, required
    - `exercise` integer
    - `video` integer
    - `audio` integer
    - `image` integer
  - `subscription_counts` ResourceCounts, required
    - `exercise` integer
    - `video` integer
    - `audio` integer
    - `image` integer
  - `plan` AuthorPlan
    - `prices` object
    - `description` string
    - `is_active` boolean
  - `subscribers_count` integer
  - `followers_count` integer
  - `my_follow` FollowInfo: Ergashish holati va muallif bergan shaxsiy shartlar.
    - `status` string, required
    - `price_percent` integer
    - `free_forever` boolean
    - `free_until` string, date-time, nullable
    - `is_free_now` boolean
  - `my_subscriptions` TypeSubscriptionInfo[]
    - `type` string, required
    - `plan_id` string, nullable
    - `plan_title` string, nullable
    - `price` integer
    - `expires_at` string, date-time, required
    - `auto_renew` boolean, required
    - `is_active` boolean, required
  - `custom_plans` CustomPlan[]
    - `id` string, required
    - `title` string, required
    - `description` string
    - `price` integer
    - `is_active` boolean
    - `counts` ResourceCounts
      - `exercise` integer
      - `video` integer
      - `audio` integer
      - `image` integer
    - `subscribers_count` integer
    - `my_subscription` TypeSubscriptionInfo: Bitta tur (yoki maxsus obuna) bo'yicha obuna — joriy foydalanuvchiniki yoki obunachiniki.
      - `type` string, required
      - `plan_id` string, nullable
      - `plan_title` string, nullable
      - `price` integer
      - `expires_at` string, date-time, required
      - `auto_renew` boolean, required
      - `is_active` boolean, required
    - `image` string
    - `subject_id` integer, nullable
    - `subject_name` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
