MCP Control
Материалы авторов · Изменение

Авторы · Кампании · Создание

creator_campaigns_create
Фотокамера и образцы цвета

Попробуйте три запроса

Подготовить
  1. Вы указываетеОбъект
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Авторы / Кампании / Создание». Для изменения нужны campaign. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
campaign
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
Выполни согласованное действие «Авторы / Кампании / Создание» с проверенными значениями. Покажи результат этой попытки.
Параметры примера
requestId
Ключ операции
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Авторы / Кампании / Создание» по исходному ответу. Покажи ID записи, изменяемые поля. Объясни, чем подтвердить эффект для выбранного объекта.
Как проследить одну попытку
  1. ЗапросСохранить исходный ключ
  2. ОтветПроверить статус
  3. ПроверкаСверить эффект операции
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.

Описание разработчика

Create a native Creators campaign. Use draft unless publication was requested. Supports up to 30 products/services, five-language terms and an existing company customer-referral program. Product, location, currency and brief ownership are checked by the existing service.

Параметры запроса
campaign
Native campaign value; use the value and type returned by the corresponding service. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
id
Native id value; use the value and type returned by the corresponding service. обязательно по схеме · string
values
Confirmed native fields, including version where returned. Manual metrics remain unverified; no provider transfer is implied. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа creator_campaigns_create
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "campaign": {
      "type": "object",
      "properties": {
        "name": {
          "description": "Native name value; use the value and type returned by the corresponding service.",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "description": {
          "description": "Native description value; use the value and type returned by the corresponding service.",
          "type": "string",
          "minLength": 1,
          "maxLength": 4000
        },
        "sourceLanguage": {
          "description": "Native sourceLanguage value; use the value and type returned by the corresponding service.",
          "type": "string",
          "enum": [
            "en",
            "ru",
            "es",
            "uk",
            "nb"
          ]
        },
        "names": {
          "description": "Native names value; use the value and type returned by the corresponding service.",
          "maxItems": 5,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "Language": {
                "$ref": "#/$defs/_mcp0"
              },
              "Text": {
                "type": "string",
                "maxLength": 160,
                "description": "Native Text value; use the value and type returned by the corresponding service."
              }
            },
            "required": [
              "Language",
              "Text"
            ],
            "additionalProperties": false
          }
        },
        "descriptions": {
          "description": "Native descriptions value; use the value and type returned by the corresponding service.",
          "maxItems": 5,
          "type": "array",
          "items": {
            "$ref": "#/$defs/_mcp2"
          }
        },
        "briefs": {
          "description": "Native briefs value; use the value and type returned by the corresponding service.",
          "maxItems": 5,
          "type": "array",
          "items": {
            "$ref": "#/$defs/_mcp2"
          }
        },
        "productId": {
          "description": "Native productId value; use the value and type returned by the corresponding service.",
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,128}$"
        },
        "productIds": {
          "description": "Native productIds value; use the value and type returned by the corresponding service.",
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          }
        },
        "locationId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,128}$",
          "description": "Native locationId value; use the value and type returned by the corresponding service."
        },
        "type": {
          "type": "string",
          "enum": [
            "gift",
            "content",
            "paid",
            "discount",
            "refundable",
            "experience",
            "affiliate"
          ],
          "description": "Native type value; use the value and type returned by the corresponding service."
        },
        "quantity": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "description": "Native quantity value; use the value and type returned by the corresponding service."
        },
        "quota": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000,
          "description": "Native quota value; use the value and type returned by the corresponding service."
        },
        "pay": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000,
          "description": "Base compensation before bio-link extra pay. On update use the stored basePay, not the total pay."
        },
        "discount": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "Native discount value; use the value and type returned by the corresponding service."
        },
        "commission": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "Native commission value; use the value and type returned by the corresponding service."
        },
        "days": {
          "type": "integer",
          "minimum": 0,
          "maximum": 365,
          "description": "Native days value; use the value and type returned by the corresponding service."
        },
        "videoCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100,
          "description": "Native videoCount value; use the value and type returned by the corresponding service."
        },
        "photoCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100,
          "description": "Native photoCount value; use the value and type returned by the corresponding service."
        },
        "licenseDays": {
          "type": "integer",
          "minimum": 0,
          "maximum": 3650,
          "description": "Native licenseDays value; use the value and type returned by the corresponding service."
        },
        "platform": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80,
          "description": "Native platform value; use the value and type returned by the corresponding service."
        },
        "brief": {
          "description": "Native brief value; use the value and type returned by the corresponding service.",
          "type": "string",
          "maxLength": 4000
        },
        "state": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused"
          ],
          "description": "Native state value; use the value and type returned by the corresponding service."
        },
        "currency": {
          "type": "string",
          "minLength": 1,
          "maxLength": 12,
          "description": "Native currency value; use the value and type returned by the corresponding service."
        },
        "fulfillment": {
          "type": "string",
          "enum": [
            "pickup",
            "delivery",
            "service"
          ],
          "description": "Native fulfillment value; use the value and type returned by the corresponding service."
        },
        "end": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
          "description": "Native end value; use the value and type returned by the corresponding service."
        },
        "publicationTypes": {
          "description": "Native publicationTypes value; use the value and type returned by the corresponding service.",
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "story",
              "post",
              "video",
              "bio"
            ]
          }
        },
        "bioLinkPay": {
          "description": "Native bioLinkPay value; use the value and type returned by the corresponding service.",
          "type": "number",
          "minimum": 0,
          "maximum": 100000000
        },
        "bioLinkDays": {
          "description": "Native bioLinkDays value; use the value and type returned by the corresponding service.",
          "type": "integer",
          "minimum": 0,
          "maximum": 3650
        },
        "bioLinkTarget": {
          "description": "Native bioLinkTarget value; use the value and type returned by the corresponding service.",
          "type": "string",
          "maxLength": 2000
        },
        "referral": {
          "description": "Native referral value; use the value and type returned by the corresponding service.",
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "Native enabled value; use the value and type returned by the corresponding service."
            },
            "signupBonus": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000000,
              "description": "Native signupBonus value; use the value and type returned by the corresponding service."
            },
            "firstCollaborationBonus": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000000,
              "description": "Native firstCollaborationBonus value; use the value and type returned by the corresponding service."
            },
            "salePercent": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "description": "Native salePercent value; use the value and type returned by the corresponding service."
            },
            "promoDiscount": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "description": "Native promoDiscount value; use the value and type returned by the corresponding service."
            },
            "customerProgramId": {
              "description": "Native customerProgramId value; use the value and type returned by the corresponding service.",
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            },
            "destinationUrl": {
              "description": "Native destinationUrl value; use the value and type returned by the corresponding service.",
              "type": "string",
              "maxLength": 2000,
              "format": "uri",
              "pattern": "^https:\\/\\/.*"
            }
          },
          "required": [
            "enabled",
            "signupBonus",
            "firstCollaborationBonus",
            "salePercent",
            "promoDiscount"
          ],
          "additionalProperties": false
        },
        "materials": {
          "description": "Native materials value; use the value and type returned by the corresponding service.",
          "maxItems": 12,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,128}$",
                "description": "Native id value; use the value and type returned by the corresponding service."
              },
              "purpose": {
                "type": "string",
                "enum": [
                  "cover",
                  "example",
                  "publish"
                ],
                "description": "Native purpose value; use the value and type returned by the corresponding service."
              }
            },
            "required": [
              "id",
              "purpose"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "locationId",
        "type",
        "quantity",
        "quota",
        "pay",
        "discount",
        "commission",
        "days",
        "videoCount",
        "photoCount",
        "licenseDays",
        "platform",
        "state",
        "currency",
        "fulfillment",
        "end"
      ],
      "additionalProperties": false,
      "description": "Native campaign value; use the value and type returned by the corresponding service."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    }
  },
  "required": [
    "campaign",
    "requestId"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "enum": [
        "en",
        "ru",
        "es",
        "uk",
        "nb"
      ],
      "description": "Native Language value; use the value and type returned by the corresponding service."
    },
    "_mcp2": {
      "type": "object",
      "properties": {
        "Language": {
          "$ref": "#/$defs/_mcp0"
        },
        "Text": {
          "$ref": "#/$defs/_mcp1"
        }
      },
      "required": [
        "Language",
        "Text"
      ],
      "additionalProperties": false
    },
    "_mcp1": {
      "type": "string",
      "maxLength": 4000,
      "description": "Native Text value; use the value and type returned by the corresponding service."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "values": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Confirmed native fields, including version where returned. Manual metrics remain unverified; no provider transfer is implied."
    }
  },
  "required": [
    "id",
    "values"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}