> ## Documentation Index
> Fetch the complete documentation index at: https://api.alphainsider.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateStrategySubscriptionNotifications

> Set which notifications to receive from a strategy.



## OpenAPI

````yaml /openapi.yaml post /updateStrategySubscriptionNotifications
openapi: 3.1.0
info:
  title: AlphaInsider
  version: '1.0'
  description: >-
    The official API and websocket documentation for
    [AlphaInsider.com](https://alphainsider.com/)
servers:
  - url: https://alphainsider.com/api
security: []
tags:
  - name: Introduction
  - name: Authentication
  - name: Users
  - name: Strategies
  - name: Subscriptions
  - name: Payments
  - name: Withdrawals
  - name: Timelines
  - name: Stocks
  - name: Trades
  - name: Webhooks
  - name: Bots
  - name: Websockets
paths:
  /updateStrategySubscriptionNotifications:
    post:
      tags:
        - Subscriptions
      summary: updateStrategySubscriptionNotifications
      description: Set which notifications to receive from a strategy.
      operationId: updateStrategySubscriptionNotifications
      parameters:
        - $ref: '#/components/parameters/api_token'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - strategy_id
                - notifications
              properties:
                strategy_id:
                  $ref: '#/components/schemas/strategy_id'
                notifications:
                  type: array
                  description: Which notification types to receive.
                  items:
                    type: string
                    enum:
                      - trade
                      - post
                      - stock_event
      responses:
        '200':
          description: Request was successful.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    $ref: '#/components/schemas/success'
                  response:
                    type: object
                    description: >-
                      Endpoint-specific response payload, or an error message
                      when `success` is false.
                    properties:
                      strategy_id:
                        $ref: '#/components/schemas/strategy_id'
                      strategy_owner:
                        type: string
                        description: User ID of the strategy owner.
                      type:
                        type: string
                        enum:
                          - stock
                          - cryptocurrency
                        description: Type or category for this object.
                      private:
                        type: boolean
                        description: Whether the strategy is private.
                      strategy_value:
                        type: string
                        description: >-
                          Normalized strategy value. Convert before displaying
                          user-facing USD values.
                      invoice_id:
                        $ref: '#/components/schemas/nullable_invoice_id'
                      end_date:
                        $ref: '#/components/schemas/nullable_end_date'
                      subscription_id:
                        type: string
                        description: Strategy subscription identifier.
                      user_id:
                        $ref: '#/components/schemas/user_id'
                      product_id:
                        type: string
                        description: Billing product identifier.
                      input_value:
                        type: string
                        description: >-
                          User-provided starting value for relative strategy
                          calculations.
                      input_date:
                        $ref: '#/components/schemas/input_date'
                      input_multiplier:
                        type: string
                        description: >-
                          Multiplier for converting normalized strategy units to
                          user-facing USD values.
                      notifications:
                        type: array
                        description: Enabled notification types.
                        items:
                          type: string
                          enum:
                            - trade
                            - post
                            - stock_event
                      renew:
                        type: boolean
                        description: Whether the subscription renews.
                      status:
                        type: string
                        enum:
                          - pending
                          - active
                          - deleted
                        description: Current status.
                      updated_at:
                        $ref: '#/components/schemas/updated_at'
                      created_at:
                        $ref: '#/components/schemas/created_at'
              examples:
                '200':
                  value:
                    success: true
                    response:
                      strategy_id: WuRnay0CF3P1oPRSdogj5
                      strategy_owner: user_1
                      type: cryptocurrency
                      private: false
                      strategy_value: '1.000000000000000'
                      invoice_id: null
                      end_date: null
                      subscription_id: jdfrmobP81IkbIZybXijj
                      user_id: user_1
                      product_id: 1bRPI9xQHhE23KpAXViKW
                      input_value: '100000.000000000000000'
                      input_date: '2024-10-22T20:44:42.391Z'
                      input_multiplier: '100000.000000000000000'
                      notifications:
                        - trade
                        - post
                        - stock_event
                      renew: true
                      status: active
                      updated_at: '2024-10-23T14:44:03.221Z'
                      created_at: '2024-10-22T20:44:42.391Z'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
components:
  parameters:
    api_token:
      in: header
      name: Authorization
      description: User API token.
      required: true
      schema:
        type: string
        format: JWT
  schemas:
    strategy_id:
      type: string
      description: AlphaInsider strategy identifier.
    success:
      type: boolean
      description: True when the request succeeded.
    nullable_invoice_id:
      type:
        - string
        - 'null'
      description: Invoice identifier, when one exists.
    nullable_end_date:
      type:
        - string
        - 'null'
      format: date-time
      description: End timestamp for the current period or range.
    user_id:
      type: string
      description: AlphaInsider user identifier.
    input_date:
      type: string
      format: date-time
      description: Starting timestamp for relative strategy calculations.
    updated_at:
      type: string
      format: date-time
      description: Last update timestamp.
    created_at:
      type: string
      format: date-time
      description: Creation timestamp.
  responses:
    '400':
      description: Request failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '400':
              value:
                success: false
                response: Request failed.
    '401':
      description: Authentication failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '401':
              value:
                success: false
                response: Authentication failed.

````