# Update Linked Discord Token Details

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/discord/token/{id}:
    put:
      summary: Update Linked Discord Token Details
      deprecated: false
      description: >-
        The API only works for user with DIY plan, and have linked their Discord
        account.


        The API can update your linked Discord fields, the fields in the POST
        body are optional, put the one you want to update.
      tags:
        - DIY Plan Endpoints
      parameters:
        - name: id
          in: path
          description: token id get from the GET API
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties: {}
              x-apifox-orders: []
              x-apifox-ignore-properties: []
            example:
              isActive: true
              concurrency: 1
              proxyUrl: socks5h://username:password@host:port
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                    description: The linked Discord token id in our system.
                  token:
                    type: string
                    description: The linked Discord token.
                  channelId:
                    type: string
                    description: The linked Discord channel id.
                  serverId:
                    type: string
                    description: The linked Discord server id.
                  isActive:
                    type: boolean
                    description: The token is active or not.
                  status:
                    type: string
                    description: >-
                      The status of the token, can be FAST or RELAX or
                      VERIFYING.
                    enum:
                      - FAST
                      - RELAX
                      - VERIFYING
                      - BANNED
                    x-apifox-enum:
                      - name: ''
                        value: FAST
                        description: The Midjourney account is in the fast mode.
                      - name: ''
                        value: RELAX
                        description: The Midjourney account is in the relax mode.
                      - name: ''
                        value: VERIFYING
                        description: Our system is checking your provided Discord details.
                      - name: ''
                        value: BANNED
                        description: The Midjourney account has been banned.
                  info:
                    type: object
                    properties:
                      jobMode:
                        type: string
                      runningJobs:
                        type: string
                        description: Number of running jobs in Midjourney.
                      relaxedUsuage:
                        type: string
                        description: Number of images generated in the relax mode.
                      subscription:
                        type: string
                        description: The Midjourney plan name with the Discord account.
                      lifetimeUsage:
                        type: string
                        description: Number of images generated in lifetime.
                      queuedJobsFast:
                        type: string
                        description: Number of queued jobs in the fast mode.
                      visibilityMode:
                        type: string
                        description: If the image generated public visiable or not.
                      queuedJobsRelax:
                        type: string
                        description: Number of queued jobs in the relax mode.
                      fastTimeRemaining:
                        type: string
                        description: >-
                          The number of GPU minutes left in the fast mode
                          generation.
                    x-apifox-orders:
                      - jobMode
                      - runningJobs
                      - relaxedUsuage
                      - subscription
                      - lifetimeUsage
                      - queuedJobsFast
                      - visibilityMode
                      - queuedJobsRelax
                      - fastTimeRemaining
                    description: The linked Discord account details.
                    required:
                      - jobMode
                      - runningJobs
                      - relaxedUsuage
                      - subscription
                      - lifetimeUsage
                      - queuedJobsFast
                      - visibilityMode
                      - queuedJobsRelax
                      - fastTimeRemaining
                    x-apifox-ignore-properties: []
                  concurrency:
                    type: number
                    description: The concurrent limiting for the token.
                x-apifox-orders:
                  - 01K8XHF7J7EPC6HM3MMKP2A8BV
                description: The list of linked Discord tokens.
                required:
                  - id
                  - token
                  - channelId
                  - serverId
                  - isActive
                  - status
                  - info
                  - concurrency
                x-apifox-refs:
                  01K8XHF7J7EPC6HM3MMKP2A8BV:
                    $ref: '#/components/schemas/link-token'
                x-apifox-ignore-properties:
                  - id
                  - token
                  - channelId
                  - serverId
                  - isActive
                  - status
                  - info
                  - concurrency
              example:
                id: 1900
                token: XXX
                channelId: 116975856xxx
                serverId: 116975856xxx
                isActive: true
                status: FAST
                info:
                  jobMode: ''
                  runningJobs: None
                  relaxedUsage: 999 images
                  subscription: Basic (Active monthly, renews next on <t:2123>)
                  lifetimeUsage: 999 images
                  queuedJobsFast: '0'
                  visibilityMode: Public
                  queuedJobsRelax: '0'
                  fastTimeRemaining: 199.00/200.0 minutes (99.50%)
                concurrency: 2
          headers: {}
          x-apifox-name: Success
      security:
        - bearer: []
      x-apifox-folder: DIY Plan Endpoints
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5160896/apis/api-370010139-run
components:
  schemas:
    link-token:
      type: object
      properties:
        id:
          type: number
          description: The linked Discord token id in our system.
        token:
          type: string
          description: The linked Discord token.
        channelId:
          type: string
          description: The linked Discord channel id.
        serverId:
          type: string
          description: The linked Discord server id.
        isActive:
          type: boolean
          description: The token is active or not.
        status:
          type: string
          description: The status of the token, can be FAST or RELAX or VERIFYING.
          enum:
            - FAST
            - RELAX
            - VERIFYING
            - BANNED
          x-apifox-enum:
            - name: ''
              value: FAST
              description: The Midjourney account is in the fast mode.
            - name: ''
              value: RELAX
              description: The Midjourney account is in the relax mode.
            - name: ''
              value: VERIFYING
              description: Our system is checking your provided Discord details.
            - name: ''
              value: BANNED
              description: The Midjourney account has been banned.
        info:
          type: object
          properties:
            jobMode:
              type: string
            runningJobs:
              type: string
              description: Number of running jobs in Midjourney.
            relaxedUsuage:
              type: string
              description: Number of images generated in the relax mode.
            subscription:
              type: string
              description: The Midjourney plan name with the Discord account.
            lifetimeUsage:
              type: string
              description: Number of images generated in lifetime.
            queuedJobsFast:
              type: string
              description: Number of queued jobs in the fast mode.
            visibilityMode:
              type: string
              description: If the image generated public visiable or not.
            queuedJobsRelax:
              type: string
              description: Number of queued jobs in the relax mode.
            fastTimeRemaining:
              type: string
              description: The number of GPU minutes left in the fast mode generation.
          x-apifox-orders:
            - jobMode
            - runningJobs
            - relaxedUsuage
            - subscription
            - lifetimeUsage
            - queuedJobsFast
            - visibilityMode
            - queuedJobsRelax
            - fastTimeRemaining
          description: The linked Discord account details.
          required:
            - jobMode
            - runningJobs
            - relaxedUsuage
            - subscription
            - lifetimeUsage
            - queuedJobsFast
            - visibilityMode
            - queuedJobsRelax
            - fastTimeRemaining
          x-apifox-ignore-properties: []
        concurrency:
          type: number
          description: The concurrent limiting for the token.
      x-apifox-orders:
        - id
        - token
        - channelId
        - serverId
        - isActive
        - status
        - info
        - concurrency
      description: The linked Discord token details.
      required:
        - id
        - token
        - channelId
        - serverId
        - isActive
        - status
        - info
        - concurrency
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.imaginepro.ai
    description: Prod Env
security: []

```
