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

# Update reseller partner

> Update reseller partner contact, quota, report emails, and revenue share without changing its registration code.



## OpenAPI

````yaml /api/superadmin.openapi.yaml put /manage-partners/{partner}
openapi: 3.1.0
info:
  title: YouNegotiate Superadmin API
  version: '2.0'
  description: Stateless API endpoints for the Superadmin portal.
servers:
  - url: https://api.hub.younegotiate.com
    description: Production
security: []
tags:
  - name: System
    description: Public superadmin domain system and health endpoints.
  - name: Authentication
    description: Superadmin login, logout, password reset, and password change endpoints.
  - name: Profile
    description: Authenticated superadmin profile endpoints.
  - name: Admin Configuration
    description: Platform configuration values and feature flag controls.
  - name: MailHub Users
    description: Superadmin management for EcoMail Hub / EcoPortal users.
  - name: Super Admin Users
    description: Superadmin management for platform operations users.
  - name: Consumers
    description: Superadmin consumer account list, detail, filter, and export endpoints.
  - name: Creditors
    description: Superadmin creditor account list and account access endpoints.
  - name: Sub Accounts
    description: Superadmin sub account list and export endpoints.
  - name: Reseller Partners
    description: Superadmin reseller partner list and report-history endpoints.
  - name: Special Plan Inquiries
    description: >-
      Superadmin special membership inquiry list, detail, resolve, and close
      endpoints.
  - name: Plans
    description: >-
      Superadmin membership plan list, create, update, reorder, visibility, and
      delete endpoints.
  - name: Failed - Canceled
    description: Superadmin failed or cancelled membership list and custom email endpoints.
  - name: Merchant Requests
    description: >-
      Superadmin merchant API request list, export, email, forwarding, progress,
      and approval endpoints.
  - name: Bill Pay Donations
    description: Superadmin Bill Pay gift donation list, export, and receipt endpoints.
  - name: Export & Reporting
    description: Superadmin generated report options and CSV download endpoints.
  - name: Communications / Templates
    description: >-
      Superadmin email and SMS template management for manual communications and
      campaigns.
  - name: Communications / Groups
    description: >-
      Superadmin communication group management for dynamic consumer targeting
      and campaign selection.
  - name: Communications / Schedule Campaign
    description: >-
      Superadmin email and SMS campaign scheduling, immediate send, and delivery
      queue endpoints.
  - name: Communications / Campaign Tracker
    description: >-
      Superadmin campaign tracker snapshots, refresh actions, and consumer
      exports.
  - name: Automated Communications
    description: >-
      Superadmin automated email/SMS templates, trigger configuration, and
      delivery history endpoints.
paths:
  /manage-partners/{partner}:
    put:
      tags:
        - Reseller Partners
      summary: Update reseller partner
      description: >-
        Update reseller partner contact, quota, report emails, and revenue share
        without changing its registration code.
      operationId: superadminUpdateResellerPartner
      parameters:
        - name: partner
          in: path
          required: true
          description: Reseller partner ID.
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SuperadminPartnerMutationRequest'
      responses:
        '200':
          description: Reseller partner updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuperadminPartnerMutationResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    SuperadminPartnerMutationRequest:
      type: object
      additionalProperties: false
      required:
        - name
        - contact_first_name
        - contact_last_name
        - contact_email
        - contact_phone
        - revenue_share
        - creditors_quota
        - report_emails
      properties:
        name:
          type: string
          minLength: 3
          maxLength: 50
          description: Reseller partner name.
          example: Acme Partner Group
        contact_first_name:
          type: string
          minLength: 3
          maxLength: 50
          example: David
        contact_last_name:
          type: string
          minLength: 3
          maxLength: 50
          example: Clayton
        contact_email:
          type: string
          format: email
          minLength: 3
          maxLength: 50
          example: david@acme-partner.test
        contact_phone:
          type: string
          description: Valid US phone number.
          example: '9008990067'
        revenue_share:
          oneOf:
            - type: string
              pattern: ^\d+(\.\d+)?$
            - type: number
              format: float
          description: Revenue share percentage from 0 through 99.
          example: '12.5'
        creditors_quota:
          type: integer
          minimum: 1
          example: 2500
        report_emails:
          type: string
          description: >-
            Comma-separated list of unique report emails, up to five valid email
            addresses.
          example: reports@acme-partner.test, finance@acme-partner.test
    SuperadminPartnerMutationResponse:
      type: object
      required:
        - message
        - data
      properties:
        message:
          type: string
          example: Partner link created!
        data:
          $ref: '#/components/schemas/SuperadminPartnerForm'
    SuperadminPartnerForm:
      type: object
      additionalProperties: false
      required:
        - id
        - name
        - contact_first_name
        - contact_last_name
        - contact_email
        - contact_phone
        - revenue_share
        - creditors_quota
        - report_emails
        - created_at
        - updated_at
      properties:
        id:
          type: integer
          example: 12
        name:
          type: string
          example: Acme Partner Group
        contact_first_name:
          type: string
          example: David
        contact_last_name:
          type: string
          example: Clayton
        contact_email:
          type: string
          format: email
          example: david@acme-partner.test
        contact_phone:
          type: string
          example: '9008990067'
        revenue_share:
          type: string
          example: '12.50'
        creditors_quota:
          type: integer
          example: 2500
        report_emails:
          type: array
          items:
            type: string
            format: email
          example:
            - reports@acme-partner.test
            - finance@acme-partner.test
        created_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
          nullable: true
    MessageResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    ValidationErrorResponse:
      type: object
      required:
        - message
        - errors
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthenticated:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageResponse'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageResponse'
    ValidationError:
      description: Request validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum token

````