{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenderapi-fr/json-schema/tenderapi-fr-profile-create-schema.json",
  "title": "ProfileCreate",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenderapi-fr-openapi.json#/components/schemas/ProfileCreate",
  "properties": {
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "siret": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 14
        },
        {
          "type": "null"
        }
      ],
      "title": "Siret"
    },
    "keywords": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Keywords"
    },
    "cpv_codes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Cpv Codes"
    },
    "regions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Regions"
    },
    "departments": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Departments"
    },
    "country": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Country",
      "description": "Codes pays ISO à 2 lettres, par exemple [\"FR\"]. Seul critère géographique qui porte sur les deux sources : les régions n'existent que sur le BOAMP."
    },
    "budget_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Min"
    },
    "budget_max": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Max"
    },
    "channel": {
      "type": "string",
      "title": "Channel",
      "default": "webhook"
    },
    "webhook_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Url"
    },
    "email_to": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email To"
    },
    "match_cpv_family": {
      "type": "boolean",
      "title": "Match Cpv Family",
      "default": false
    },
    "match_descripteur": {
      "type": "boolean",
      "title": "Match Descripteur",
      "default": false
    },
    "descripteur_keywords": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Descripteur Keywords"
    },
    "active": {
      "type": "boolean",
      "title": "Active",
      "default": true
    }
  },
  "additionalProperties": false,
  "type": "object"
}