---
title: "CreateOrupdateCourseSetting"
method: PUT
path: "/core/api/v1/member/course-subscription/{memberId}"
tags: ["member-course-controller"]
---

# CreateOrupdateCourseSetting

`PUT /core/api/v1/member/course-subscription/{memberId}`

## Request

- Base URL: `https://api.freshlearn.com`
- URL: `https://api.freshlearn.com/core/api/v1/member/course-subscription/{memberId}`
- Auth: none declared

## Path parameters

- `memberId` integer, required

## Headers

- `Authorization` string
- `domain` string
- `api-key` string

## Request body

- MemberCourseResponseDTO
  - `affiliateMemberId` string
  - `courseCompletionPercentage` integer
  - `courseCompletionTime` integer
  - `courseDetailsDTO` CourseDetailsDTO
    - `advAssessment` boolean
    - `advBuilder` boolean
    - `authorIds` integer[]
    - `authors` UserEntity[]
      - `apiKey` string
      - `country` string
      - `countryCode` string
      - `countryDialCode` string
      - `createdDate` integer
      - `deleted` boolean
      - `description` string
      - `designation` string
      - `disabled` boolean
      - `domainId` integer
      - `email` string
      - `emailVerificationStatus` 'NOT_VERIFIED' | 'VERIFIED' | 'BLOCKED' | 'EMAIL_SENT'
      - `enableNotification` boolean
      - `firstName` string
      - `headline` string
      - `id` integer
      - `imageUrl` string
      - `lastName` string
      - `permission` string
      - `phone` string
      - `primaryEmail` boolean
      - `socialProfile` string
      - `source` 'FRESHLEARN' | 'GOOGLE' | 'FACEBOOK' | 'APPLE' | 'MICROSOFT' | 'SLACK'
      - `timeZone` string
      - `updatedDate` integer
      - `useSupportEmail` boolean
      - `userName` string
      - `userRoleId` integer
      - `userType` 'ADMIN' | 'AUTHOR' | 'USER' | 'OTHER'
    - `courseAccess` integer
    - `courseType` string
    - `createdByUser` User
      - `apiKey` string
      - `country` string
      - `createdDate` integer
      - `currentPassword` string
      - `description` string
      - `designation` string
      - `disabled` boolean
      - `domain` Domain
        - `createdTime` integer
        - `disabled` boolean
        - `domainTitle` string
        - `id` integer
        - `name` string
        - `updatedBy` integer
        - `updatedTime` integer
      - `domainId` integer
      - `email` string
      - `emailVerificationStatus` 'NOT_VERIFIED' | 'VERIFIED' | 'BLOCKED' | 'EMAIL_SENT'
      - `enableNotification` boolean
      - `firstName` string
      - `headline` string
      - `id` integer
      - `imageUrl` string
      - `lastName` string
      - `memberAppLink` string
      - `password` string
      - `permission` object
      - `phone` string
      - `primaryEmail` boolean
      - `socialProfile` object
      - `source` 'FRESHLEARN' | 'GOOGLE' | 'FACEBOOK' | 'APPLE' | 'MICROSOFT' | 'SLACK'
      - `subscription` Subscription
        - `active` boolean
        - `createdBy` string
        - `createdTime` integer
        - `domainId` integer
        - `endTime` integer
        - `freeTrial` boolean
        - `id` integer
        - `planId` integer
        - `startTime` integer
        - `subscriptionStatus` 'ACTIVE' | 'PAUSED' | 'CANCELLED' | 'DOWNGRADED_FREE'
        - `updatedBy` string
        - `updatedTime` integer
      - `timeZone` string
      - `useSupportEmail` boolean
      - `userName` string
      - `userRoleId` integer
      - `userType` 'ADMIN' | 'AUTHOR' | 'USER' | 'OTHER'
    - `createdTime` integer
    - `customField` string
    - `description` string
    - `domain` DomainEntity
      - `createdTime` integer
      - `disabled` boolean
      - `domainTitle` string
      - `id` integer
      - `name` string
      - `sourceIP` string
      - `updatedBy` integer
      - `updatedTime` integer
    - `endDate` integer
    - `icon` string
    - `id` integer
    - `imageUrl` string
    - `landingPageUrl` string
    - `name` string
    - `participantCount` integer
    - `publicView` boolean
    - `startDate` integer
    - `status` 'DRAFT' | 'PUBLISH'
    - `updatedByUser` User
      - `apiKey` string
      - `country` string
      - `createdDate` integer
      - `currentPassword` string
      - `description` string
      - `designation` string
      - `disabled` boolean
      - `domain` Domain
        - `createdTime` integer
        - `disabled` boolean
        - `domainTitle` string
        - `id` integer
        - `name` string
        - `updatedBy` integer
        - `updatedTime` integer
      - `domainId` integer
      - `email` string
      - `emailVerificationStatus` 'NOT_VERIFIED' | 'VERIFIED' | 'BLOCKED' | 'EMAIL_SENT'
      - `enableNotification` boolean
      - `firstName` string
      - `headline` string
      - `id` integer
      - `imageUrl` string
      - `lastName` string
      - `memberAppLink` string
      - `password` string
      - `permission` object
      - `phone` string
      - `primaryEmail` boolean
      - `socialProfile` object
      - `source` 'FRESHLEARN' | 'GOOGLE' | 'FACEBOOK' | 'APPLE' | 'MICROSOFT' | 'SLACK'
      - `subscription` Subscription
        - `active` boolean
        - `createdBy` string
        - `createdTime` integer
        - `domainId` integer
        - `endTime` integer
        - `freeTrial` boolean
        - `id` integer
        - `planId` integer
        - `startTime` integer
        - `subscriptionStatus` 'ACTIVE' | 'PAUSED' | 'CANCELLED' | 'DOWNGRADED_FREE'
        - `updatedBy` string
        - `updatedTime` integer
      - `timeZone` string
      - `useSupportEmail` boolean
      - `userName` string
      - `userRoleId` integer
      - `userType` 'ADMIN' | 'AUTHOR' | 'USER' | 'OTHER'
    - `updatedTime` integer
    - `whiteLabelOldUrl` string
  - `coursePlan` CoursePlanEntity
    - `amount` number, double
    - `buttonText` string
    - `catalogId` integer
    - `countryCode` string
    - `couponCode` string
    - `couponId` integer
    - `courseId` integer
    - `createdBy` integer
    - `createdTime` integer
    - `currency` string
    - `deleted` boolean
    - `description` string
    - `discountAmount` number, double
    - `domainId` integer
    - `expireInDays` integer
    - `expireOnDate` integer
    - `expiryType` 'AFTER_N_DAYS' | 'FIXED_DATE'
    - `finalAmount` number, double
    - `hubspotId` string
    - `id` integer
    - `intervalCount` integer
    - `isEnabled` boolean
    - `isLifetime` boolean
    - `isStripePlanCreated` boolean
    - `numberOfIteration` integer
    - `planName` string
    - `planType` 'FREE' | 'ONE_TIME' | 'RECURRING' | 'OTHER' | 'PAID'
    - `primary` boolean
    - `razorpayPlanId` string
    - `recurringGateway` 'STRIPE' | 'RAZORPAY' | 'PAYPAL' | 'MANUAL' | 'FREE'
    - `shortDescription` string
    - `showLandingpage` boolean
    - `strikeoutAmount` integer
    - `strikeoutPrice` boolean
    - `stripeInterval` 'DAY' | 'MONTH' | 'QUARTER' | 'HALF_YEARLY' | 'YEAR' | 'WEEK' | 'NONE' | 'ONE_TIME'
    - `stripePaymentLink` string
    - `stripePaymentLinkId` string
    - `stripePlanId` string
    - `stripeProductId` string
    - `updatedBy` integer
    - `updatedTime` integer
  - `courseReviewDTO` CourseReviewDTO
    - `averageRating` number, double
    - `comment` string
    - `courseId` integer
    - `createdTime` integer
    - `deleted` boolean
    - `domainId` integer
    - `email` string
    - `firstName` string
    - `id` integer
    - `lastName` string
    - `memberId` integer
    - `productId` integer
    - `productType` 'All' | 'Course' | 'Playlist' | 'Cohort' | 'Masterclass' | 'DigitalDownload' | 'ProductBundle' | 'Community' | 'Group' | 'Collection' | 'Scorm' | 'Coaching'
    - `rating` number, double
    - `socialLink` string
    - `tagNames` string[]
    - `testimonialView` boolean
  - `createdTime` integer
  - `expireTime` integer
  - `id` integer
  - `member` MemberShort
    - `country` string
    - `createdDate` integer
    - `disabled` boolean
    - `email` string
    - `firstName` string
    - `id` integer
    - `imageUrl` string
    - `lastName` string
    - `location` string
    - `phone` string
  - `payment` Payment
    - `affiliateMemberId` string
    - `amount` number, double
    - `appliedCouponCode` string
    - `billingCity` string
    - `billingCountry` string
    - `billingLineOne` string
    - `billingPostalCode` string
    - `billingState` string
    - `catalogId` integer
    - `coachingId` integer
    - `couponCodeId` integer
    - `courseId` integer
    - `courseName` string
    - `createdTime` integer
    - `currency` string
    - `customerId` string
    - `digitalDownloadId` integer
    - `discountAmount` number, double
    - `domainId` integer
    - `expiryDate` integer
    - `id` integer
    - `invoiceId` string
    - `invoicePdf` string
    - `masterclassId` integer
    - `memberId` integer
    - `mode` string
    - `paymentDate` integer
    - `paymentPlatform` 'STRIPE' | 'RAZORPAY' | 'PAYPAL' | 'MANUAL' | 'FREE'
    - `paymentReference` string
    - `paymentType` 'DD' | 'CHEQUE' | 'ONLINE' | 'CASH' | 'OTHER' | 'BANK_TRANSFER' | 'GIFT' | 'RECURRING' | 'STRIPE' | 'PAYPAL' | 'RAZORPAY'
    - `planType` 'FREE' | 'ONE_TIME' | 'RECURRING' | 'OTHER' | 'PAID'
    - `productBundleId` integer
    - `productSubscriptionTxnId` integer
    - `scormId` integer
    - `status` 'PENDING' | 'SUBMITTED' | 'RECEIVED'
    - `stripeSubscritpionId` string
    - `subscriptionId` integer
    - `taxAmount` number, double
    - `taxId` string
    - `transactionId` string
  - `payments` Payment[]
    - `affiliateMemberId` string
    - `amount` number, double
    - `appliedCouponCode` string
    - `billingCity` string
    - `billingCountry` string
    - `billingLineOne` string
    - `billingPostalCode` string
    - `billingState` string
    - `catalogId` integer
    - `coachingId` integer
    - `couponCodeId` integer
    - `courseId` integer
    - `courseName` string
    - `createdTime` integer
    - `currency` string
    - `customerId` string
    - `digitalDownloadId` integer
    - `discountAmount` number, double
    - `domainId` integer
    - `expiryDate` integer
    - `id` integer
    - `invoiceId` string
    - `invoicePdf` string
    - `masterclassId` integer
    - `memberId` integer
    - `mode` string
    - `paymentDate` integer
    - `paymentPlatform` 'STRIPE' | 'RAZORPAY' | 'PAYPAL' | 'MANUAL' | 'FREE'
    - `paymentReference` string
    - `paymentType` 'DD' | 'CHEQUE' | 'ONLINE' | 'CASH' | 'OTHER' | 'BANK_TRANSFER' | 'GIFT' | 'RECURRING' | 'STRIPE' | 'PAYPAL' | 'RAZORPAY'
    - `planType` 'FREE' | 'ONE_TIME' | 'RECURRING' | 'OTHER' | 'PAID'
    - `productBundleId` integer
    - `productSubscriptionTxnId` integer
    - `scormId` integer
    - `status` 'PENDING' | 'SUBMITTED' | 'RECEIVED'
    - `stripeSubscritpionId` string
    - `subscriptionId` integer
    - `taxAmount` number, double
    - `taxId` string
    - `transactionId` string
  - `razorpaySubscriptionId` string
  - `status` boolean
  - `stripeSubscriptionId` string
  - `subscriptionType` 'FREE' | 'ONE_TIME' | 'RECURRING' | 'OTHER' | 'PAID'

## Response `200`

OK

## Other responses

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

---

[API](https://skmtc.dev/freshlearn/apis/freshlearn-api.md) · [All operations](https://skmtc.dev/freshlearn/apis/freshlearn-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freshlearn/apis/freshlearn-api/revisions/8a82ee14b586?raw)
