Коммуникации · Изменение
Социальные сети · Изменение
social_workspace_update
Попробуйте три запроса
Подготовить
- Вы указываетеPostid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Социальные сети / Изменение». Для изменения нужны postId, изменяемые поля. Покажи объект и ожидаемый эффект до выполнения.
- postId
- Параметр
- values
- Изменяемые поля
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Социальные сети / Изменение» с параметром values.contentType = TEXT. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- values.contentType
- TEXT
- values.aiReplyEnabled
- true
- values.directMessageEnabled
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Социальные сети / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Update specified fields of a native social draft or post at its exact current revision. Published caption/media cannot be edited through this operation; native reply settings remain editable.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- postId
- Native postId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- values
- Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- result
- Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"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."
},
"postId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native postId value; use the value and type returned by the corresponding service."
},
"expectedRevision": {
"type": "string",
"pattern": "^\\d{1,12}:\\d{1,9}$",
"description": "Exact Social revision from social_workspace_get, not the legacy fsv1 revision."
},
"values": {
"type": "object",
"properties": {
"youtube": {
"description": "Native youtube value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Native title value; use the value and type returned by the corresponding service."
},
"privacyStatus": {
"type": "string",
"enum": [
"private",
"unlisted",
"public"
],
"description": "Native privacyStatus value; use the value and type returned by the corresponding service."
},
"madeForKids": {
"type": "boolean",
"description": "Native madeForKids value; use the value and type returned by the corresponding service."
},
"categoryId": {
"default": "22",
"description": "Native categoryId value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^\\d{1,3}$"
},
"tags": {
"default": [],
"description": "Native tags value; use the value and type returned by the corresponding service.",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 50
}
}
},
"required": [
"title",
"privacyStatus",
"madeForKids",
"categoryId",
"tags"
],
"additionalProperties": false
},
"caption": {
"description": "Native caption value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 12000
},
"media": {
"description": "Native media value; use the value and type returned by the corresponding service.",
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"storagePath": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Company-owned Social storagePath from media_list or media_import."
},
"type": {
"type": "string",
"enum": [
"image",
"video"
],
"description": "Native type value; use the value and type returned by the corresponding service."
},
"name": {
"description": "Native name value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 200
}
},
"required": [
"storagePath",
"type"
],
"additionalProperties": false
}
},
"contentType": {
"description": "Native contentType value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"TEXT",
"IMAGE",
"VIDEO",
"CAROUSEL",
"REELS",
"STORIES",
"SHORTS"
]
},
"manualContext": {
"description": "Native manualContext value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 20000
},
"aiReplyEnabled": {
"description": "Native aiReplyEnabled value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"replyInstructionPrompt": {
"description": "Native replyInstructionPrompt value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 12000
},
"directMessageEnabled": {
"description": "Native directMessageEnabled value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"whenToSendPrivateMessage": {
"description": "Native whenToSendPrivateMessage value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 12000
}
},
"additionalProperties": false,
"description": "Native values value; use the value and type returned by the corresponding service."
}
},
"required": [
"requestId",
"postId",
"expectedRevision",
"values"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native result value; use the value and type returned by the corresponding service."
}
},
"required": [
"companyId",
"result"
],
"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"
}
}
]
}
}
}