Материалы авторов · Изменение
Авторы · Кампании · Изменение
creator_campaigns_update
Попробуйте три запроса
Подготовить
- Вы указываетеId записи
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Авторы / Кампании / Изменение». Для изменения нужны ID записи, текущая версия. Покажи объект и ожидаемый эффект до выполнения.
- id
- Id записи
- expectedVersion
- Текущая версия
- campaign
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Авторы / Кампании / Изменение» с параметром id = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- id
- DEMO-101
- expectedVersion
- 4
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Авторы / Кампании / Изменение» по исходному ответу. Покажи ID записи, изменяемые поля. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Replace the full terms of a native Creators campaign. Accepted terms are locked; preserve unchanged translations, productIds, referral program, materials and payment terms. Send pay from the stored basePay, before the bio-link supplement.
Параметры запроса
- id
- Идентификатор выбранной записи. обязательно по схеме · string
- expectedVersion
- Current native record revision from get. A stale revision fails. обязательно по схеме · integer · максимум 9007199254740991
- 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
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/_mcp0"
},
"expectedVersion": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Current native record revision from get. A stale revision fails."
},
"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/_mcp1"
},
"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/_mcp3"
}
},
"briefs": {
"description": "Native briefs value; use the value and type returned by the corresponding service.",
"maxItems": 5,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp3"
}
},
"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": {
"$ref": "#/$defs/_mcp0"
},
"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": [
"id",
"expectedVersion",
"campaign",
"requestId"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Native id value; use the value and type returned by the corresponding service."
},
"_mcp1": {
"type": "string",
"enum": [
"en",
"ru",
"es",
"uk",
"nb"
],
"description": "Native Language value; use the value and type returned by the corresponding service."
},
"_mcp3": {
"type": "object",
"properties": {
"Language": {
"$ref": "#/$defs/_mcp1"
},
"Text": {
"$ref": "#/$defs/_mcp2"
}
},
"required": [
"Language",
"Text"
],
"additionalProperties": false
},
"_mcp2": {
"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"
}
}
]
}
}
}