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

# Update project settings

> Replaces the project's free-form settings blob (e.g. saved custom filters) with the supplied object. The FE owns the full object, so add/edit/remove are all this one call. Path `id` must match the `x-project-id` header.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json patch /api/v1/projects/{id}/settings
openapi: 3.0.0
info:
  title: MentionLab Public API v0.3.4-rc
  description: ''
  version: 0.3.4-rc
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/v1/projects/{id}/settings:
    patch:
      tags:
        - Projects
      summary: Update project settings
      description: >-
        Replaces the project's free-form settings blob (e.g. saved custom
        filters) with the supplied object. The FE owns the full object, so
        add/edit/remove are all this one call. Path `id` must match the
        `x-project-id` header.
      operationId: ProjectsV1Controller_updateSettings_v1
      parameters:
        - name: id
          required: true
          in: path
          description: >-
            Identifier of the project to update. Must match the `x-project-id`
            header.
          schema:
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectSettingsDto'
      responses:
        '204':
          description: ''
        '400':
          description: >-
            The request failed validation — the body, query or path parameters
            are malformed or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The authenticated principal lacks the required permission, or access
            to the requested organisation/project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    ProjectSettingsDto:
      type: object
      properties:
        customFilters:
          description: Saved custom filters (tag-group / continent / …).
          example:
            - type: tag-group
              id: 01234567-89ab-cdef-0123-456789abcdef
            - type: continent
              id: Europe
          type: array
          items:
            $ref: '#/components/schemas/ProjectCustomFilterDto'
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            Human-readable description of the error. Validation failures return
            an array of per-field validation errors instead of a single string.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode
    ProjectCustomFilterDto:
      type: object
      properties:
        type:
          type: string
          example: tag-group
          description: Filter kind, e.g. 'tag-group' or 'continent'.
        id:
          type: string
          example: 01234567-89ab-cdef-0123-456789abcdef
          description: 'Target id: a tag-group uuid, or the continent label.'
      required:
        - type
        - id

````