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

# Restore Seed

> Restore a removed seed with this copy's saved edits and star choice.



## OpenAPI

````yaml /openapi.json post /api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore:
    post:
      tags:
        - Brands
        - Brands
      summary: Restore Seed
      description: Restore a removed seed with this copy's saved edits and star choice.
      operationId: >-
        restore_seed_api_v1_brands__brand_id__competitors_seeds__seed_id__restore_post
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Brand Id
        - name: seed_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Seed Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MergedCompetitorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    MergedCompetitorResponse:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        brand_id:
          type: string
          format: uuid
          title: Brand Id
        seed_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Seed Id
        is_seed:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Seed
        override:
          anyOf:
            - $ref: '#/components/schemas/CompetitorOverrideResponse'
            - type: 'null'
        advertiser_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Advertiser Id
        advertiser_resolved_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Advertiser Resolved At
        identity_resolved:
          type: boolean
          title: Identity Resolved
          default: false
        canonical_domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Canonical Domain
        name:
          type: string
          title: Name
        website_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Website Url
        homepage_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Homepage Url
        website_header_image_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Website Header Image Url
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry
        brand_classification:
          anyOf:
            - $ref: '#/components/schemas/BrandClassification'
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
        content_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Url
        youtube_channel_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Youtube Channel Url
        is_starred:
          type: boolean
          title: Is Starred
          default: false
        social_links:
          additionalProperties: true
          type: object
          title: Social Links
        analysis_data:
          additionalProperties: true
          type: object
          title: Analysis Data
        brand_intelligence_advertiser_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Brand Intelligence Advertiser Id
        active_paid_media_platforms:
          items:
            type: string
          type: array
          title: Active Paid Media Platforms
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
        source:
          type: string
          enum:
            - seo_discovery
            - brand_kit
          title: Source
          default: seo_discovery
      type: object
      required:
        - brand_id
        - name
      title: MergedCompetitorResponse
      description: |-
        A competitor entry merged from SEO discoveries and brand-kit names.

        Brand-kit-sourced entries lack id, website_url, description, notes, and
        timestamps — they're synthesized from a string in BrandKit.competitors.
        The frontend should branch on ``source`` to decide which actions to
        expose (star/edit/delete only work on entries with an ``id``).

        ``source`` defaults to ``"seo_discovery"`` so this schema can also be
        returned directly from add/update routes that operate on the
        ``brand_competitors`` table — those endpoints always produce SEO rows.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CompetitorOverrideResponse:
      properties:
        added:
          type: boolean
          title: Added
          default: false
        removed:
          type: boolean
          title: Removed
          default: false
        starred:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Starred
        edited_fields:
          items:
            type: string
          type: array
          title: Edited Fields
      type: object
      title: CompetitorOverrideResponse
      description: >-
        The copy's diff over its record's seed, for one competitor (T10 Phase
        2).


        Additive: ``None`` on a competitor the diff does not name (a plain seed

        row). The Competitors tab renders the per-user markers from it --

        *added by you* (``added``), *edited by you* (``edited_fields``),

        *starred* (``starred``). Removed seeds expose the same diff separately

        from the active roster, with ``removed`` set to ``True``.
    BrandClassification:
      properties:
        primary_industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Industry
        industries:
          items:
            type: string
          type: array
          title: Industries
        business_models:
          items:
            type: string
          type: array
          title: Business Models
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        classified_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Classified At
        needs_review:
          type: boolean
          title: Needs Review
          default: false
      type: object
      title: BrandClassification
      description: >-
        A versioned multi-label brand classification.


        Industries describe what the brand sells or does. Business models
        describe

        how it operates independently of industry. Keeping those dimensions

        separate prevents the historical ``E-Commerce`` pseudo-industry from

        replacing the brand's real product industry.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````