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

# Accept a suggestion and track the competitor



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/brands/{brand_id}/competitor_suggestions/{suggestion_id}/accept
openapi: 3.0.1
info:
  title: Cognizo Public API
  version: v1
  description: >-
    Public REST API for Cognizo. Authenticate with an API key via the
    `X-API-KEY` header.
servers:
  - url: https://core.cognizo.ai
security:
  - apiKey: []
paths:
  /api/v2/brands/{brand_id}/competitor_suggestions/{suggestion_id}/accept:
    parameters:
      - name: brand_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: suggestion_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    post:
      tags:
        - Competitor Suggestions
      summary: Accept a suggestion and track the competitor
      operationId: accept_brand_competitor_suggestion
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domain:
                  type: string
                  nullable: true
                  description: >-
                    Optional. The competitor's website domain, such as acme.com.
                    When it is left out, Cognizo looks the domain up
                    automatically. A competitor Cognizo already knows by this
                    name keeps the domain it has.
      responses:
        '200':
          description: competitor tracked under the suggestion's own name
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                      domain:
                        type: string
                        nullable: true
                      visibility:
                        type: number
                    required:
                      - id
                      - name
                      - domain
                      - visibility
                required:
                  - data
        '403':
          description: >-
            organization access revoked (ORGANIZATION_ACCESS_REVOKED): the
            access token's organization is no longer one of the user's
            memberships (they left, were removed, or the organization was
            deleted). The session itself is still valid: drop the organization's
            client state and refresh the session, which moves it to another
            organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: >-
            brand not found, or the suggestion is not one of this brand's
            (NOT_FOUND)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '409':
          description: the suggestion was already accepted or rejected (CONFLICT)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine-readable reason; see `error_code`.
            message:
              type: string
            details:
              type: array
              items:
                $ref: '#/components/schemas/error_detail'
          required:
            - code
            - message
      required:
        - error
    error_detail:
      type: object
      properties:
        field:
          type: string
          nullable: true
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
        - field
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.