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

# Prepare a Partner Web deal duplicate

> Builds a create-mode Deal Creation DTO from an owned source deal. Does not create a partner_jobs row. Copies deliverable_type_id, require_proof_of_work, jobViewPreference, job_for (including University Partners), and jobType as short-term or long-term. Resolves deliverable type helper text from current milestone_categories. Clears specific due_date and beginning_date values. Missing or illegal jobType defaults to short-term.



## OpenAPI

````yaml /storage/api-docs/api-docs.json post /prepare-job-duplicate
openapi: 3.0.0
info:
  title: MOGL Core API
  description: >-
    MOGL Platform Core API — powering athlete NIL deals, brand partnerships,
    agent management, payments, messaging, and more.
     *
     * ## Authentication
     * - **JWT Bearer Token**: Most endpoints require a Bearer token obtained via `/api/login`.
     * - **Server-to-Server API Key**: Internal/lambda/cron endpoints use an `X-API-KEY` header.
     *
     * ## Rate Limiting
     * - Registration & login endpoints: 4–15 requests per minute
     * - Public/influencer endpoints: 200 requests per minute
     * - Authenticated endpoints: standard Laravel throttle
  version: 1.0.0
servers:
  - url: http://localhost/mogl/mogl-backend/api
    description: Local
  - url: https://dev-api.mogl.online/api
    description: Dev
  - url: https://staging-api.mogl.online/api
    description: Staging
  - url: https://api.mogl.online/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Login, registration, password reset
  - name: User Registration - Common
    description: Common user registration & email check
  - name: User Registration - Athlete
    description: Athlete registration & onboarding steps
  - name: User Registration - Partner
    description: Partner/Brand registration & onboarding steps
  - name: User Registration - Agent
    description: Agent registration & onboarding steps
  - name: User Registration - Fan
    description: Fan registration & onboarding steps
  - name: User Profile
    description: User profile management, settings, social media
  - name: Athlete
    description: 'Athlete-specific endpoints: search, details, availability'
  - name: Athlete - Availability Confirmation
    description: Post-hiring availability confirmation workflow
  - name: Athlete - NIL Feed
    description: Athlete NIL feed and partner search
  - name: Athlete - AI Assistant
    description: >-
      AI-powered job assistant for athletes — chat, conversation history, read
      state, and clarification drafts
  - name: Athlete - AI Waitlist
    description: AI Athlete Assistant waitlist status, social proof, and joining
  - name: Partner
    description: Partner/Brand-specific endpoints
  - name: Partner - External Job
    description: External job link & applicant management
  - name: Partner - Deliverable Report
    description: Deliverable detail reports for brands
  - name: Partner - Screening Questions
    description: Screening question reports
  - name: Partner - Contract Management
    description: Brand contract management with athletes
  - name: Partner - Content Library
    description: Brand content library for deliverable assets
  - name: Agent
    description: Agent profile, athlete management, contracts
  - name: Agent - Athletes
    description: Agent-athlete relationship management
  - name: Agent - Stripe
    description: Agent payment methods & billing via Stripe
  - name: Agent - Contracts
    description: Agent athlete contract management
  - name: Agent - Availability Confirmation
    description: Agent managing athlete job availability
  - name: Jobs
    description: Job/deal CRUD, search, invitations, hiring, deliverables
  - name: Deals
    description: Deal listing, my deals, bulk operations
  - name: Deal Folder
    description: >-
      Deal folder file workflow — uploads, replacements, approvals, revisions,
      comments. Accessible by athlete, partner/brand, agent, and iOS clients
      (per-action authorisation enforced server-side).
  - name: Deal Folder iOS API
    description: >-
      iOS-only direct-to-S3 multipart upload endpoints for deal folder files
      (initiate/complete for new uploads and replacements). Web clients should
      use the standard `Deal Folder` upload/replace endpoints instead.
  - name: Chat
    description: Messaging, chat contacts, notifications
  - name: Notifications
    description: Notification preferences, in-app notifications
  - name: Payments
    description: Stripe payments, payment history, cards, bulk pay
  - name: Subscription
    description: Brand subscription plans & management
  - name: Public Pages
    description: Public content endpoints (no auth required)
  - name: Public - Influencer/SEO
    description: Public influencer discovery, sitemaps, directories
  - name: Services
    description: Athlete service marketplace
  - name: iOS Device
    description: iOS device tokens, live activities
  - name: Onboarding Tutorial
    description: Onboarding tutorial progress
  - name: MOGL Rosters
    description: Roster management & display
  - name: Internal / Cron
    description: Server-to-server and cron job endpoints
  - name: Internal / AI Assistant Tools
    description: >-
      Server-to-server Athlete Assistant tool gateway used by mogl-ai-service.
      Seven Laravel tools share POST /internal/ai-assistant/tools/{tool}.
      search_kb is Python-local and is not in this path enum.
  - name: Affiliate
    description: Athlete affiliate links & tracking
paths:
  /prepare-job-duplicate:
    post:
      tags:
        - Jobs
      summary: Prepare a Partner Web deal duplicate
      description: >-
        Builds a create-mode Deal Creation DTO from an owned source deal. Does
        not create a partner_jobs row. Copies deliverable_type_id,
        require_proof_of_work, jobViewPreference, job_for (including University
        Partners), and jobType as short-term or long-term. Resolves deliverable
        type helper text from current milestone_categories. Clears specific
        due_date and beginning_date values. Missing or illegal jobType defaults
        to short-term.
      operationId: prepareJobDuplicate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
                - job_id
              properties:
                job_id:
                  type: integer
                  example: 2740
              type: object
      responses:
        '200':
          description: Prepared duplicate DTO
          content:
            application/json:
              schema:
                properties:
                  schema_version:
                    type: integer
                    example: 1
                  jobName:
                    type: string
                  require_proof_of_work:
                    type: boolean
                  jobType:
                    type: string
                    enum:
                      - short-term
                      - long-term
                    example: short-term
                  jobViewPreference:
                    type: string
                    example: All MOGL Athletes
                    nullable: true
                  job_for:
                    type: string
                    example: All
                    nullable: true
                  questions:
                    type: array
                    items:
                      properties:
                        questions:
                          type: string
                        question_type:
                          type: string
                        metadata:
                          type: object
                          nullable: true
                      type: object
                  categoryData:
                    description: >-
                      Copy-safe category rows. categoryId and skill_id are
                      names, matching getSelectedJob hydration, not numeric FKs.
                    type: array
                    items:
                      properties:
                        categoryId:
                          type: string
                          example: Social Media Campaigns
                        skill_id:
                          type: string
                          example: Content Creation
                      type: object
                  SkillsData:
                    type: array
                    items:
                      properties:
                        label:
                          type: string
                      type: object
                  milestones:
                    type: array
                    items:
                      properties:
                        deliverable_type_id:
                          type: integer
                          example: 18
                          nullable: true
                        due_date:
                          type: string
                          example: null
                          nullable: true
                        beginning_date:
                          type: string
                          example: null
                          nullable: true
                        when_deliverable_due:
                          type: string
                          enum:
                            - specific_date
                            - time_frame
                        deliverable_type:
                          properties:
                            id:
                              type: integer
                            name:
                              type: string
                            helper_message:
                              description: >-
                                Current milestone_categories.helper_message, not
                                the source snapshot
                              type: string
                          type: object
                          nullable: true
                      type: object
                  attachments:
                    type: array
                    items:
                      properties:
                        token:
                          type: string
                        name:
                          type: string
                        type:
                          type: string
                          example: title
                      type: object
                  warnings:
                    type: array
                    items:
                      properties:
                        code:
                          type: string
                          example: ATTACHMENT_COPY_FAILED
                        file_name:
                          type: string
                          nullable: true
                        message:
                          type: string
                      type: object
                type: object
        '401':
          description: Unauthenticated
        '403':
          description: Source job is owned by another brand
        '404':
          description: Source job missing or deleted
        '409':
          description: First deal is not approved
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        JWT Bearer token authentication. Use the /api/login endpoint to obtain a
        token.
      scheme: bearer
      bearerFormat: JWT

````