Расчёт выплат · Чувствительное действие
Расчёт выплат · Изменение · Профили
payroll_update_profile
Попробуйте три запроса
Подготовить
- Вы указываетеСотрудник
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Расчёт выплат / Изменение / Профили». Для изменения нужны сотрудник, assignmentKey. Покажи объект и ожидаемый эффект до выполнения.
- employeeId
- Сотрудник
- assignmentKey
- Параметр
- profileName
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Расчёт выплат / Изменение / Профили» с параметром status = draft. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- status
- draft
- employeeId
- DEMO-101
- currency
- USD
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Расчёт выплат / Изменение / Профили» по исходному ответу. Покажи статус, profile. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Replace the complete snapshot of a payroll profile through existing saveProfile only. Requires current OAuth and employee permissions, all locations and protected native write scope. Every snapshot field is required; no implicit patch/default reset is used. No payroll calculation, money movement, access grant, or arbitrary code execution.
Параметры запроса
- employeeId
- Employee ID from payroll_list_employees. Immutable after creation. обязательно по схеме · string · до символов 128
- assignmentKey
- Complete native assignment key; use the existing value on update. Immutable after creation. обязательно по схеме · string · до символов 128
- profileName
- Complete native localized name object or plain string. A string is stored under the native default key. обязательно по схеме · string / object
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string / null
- positionId
- Complete position assignment. Explicit null clears it; omission is forbidden. обязательно по схеме · string / null
- status
- Explicit intended lifecycle status. Archived profiles cannot be restored or edited through saveProfile. обязательно по схеме · string · варианты draft, active, inactive
- effectiveFrom
- Required effective start of this complete configuration snapshot. обязательно по схеме · string
- effectiveTo
- Explicit effective end, or null for an open-ended snapshot. обязательно по схеме · string / null
- currency
- Explicit native currency. On update, null preserves the existing value under native SQL semantics; active profiles require a currency. обязательно по схеме · string / null
- payrollPeriod
- Explicit native period label. On update, null preserves the existing value. обязательно по схеме · string / null
- employmentType
- Explicit native employment type. On update, null preserves the existing value. обязательно по схеме · string / null
- configuration
- Complete native salary configuration JSON, at most 512 KiB. The existing payroll core removes reserved system/identity keys. No formulas or JavaScript are executed by this tool. Never submit a redacted/incomplete read result as a replacement. обязательно по схеме · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
- profileId
- Exact existing profile UUID. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 1 · максимум 9007199254740990
Что вернёт команда
- status
- The existing payroll manager confirmed this complete snapshot. обязательно по схеме · string
- profile
- Saved profile header and newly saved immutable configuration identifiers. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"employeeId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
"description": "Employee ID from payroll_list_employees. Immutable after creation."
},
"assignmentKey": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"allOf": [
{
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
},
{
"pattern": "^[A-Za-z0-9._:-]+$"
}
],
"description": "Complete native assignment key; use the existing value on update. Immutable after creation."
},
"profileName": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
],
"description": "Complete native localized name object or plain string. A string is stored under the native default key."
},
"locationId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
},
{
"type": "null"
}
],
"description": "Complete establishment assignment. Explicit null clears it; omission is forbidden."
},
"positionId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
},
{
"type": "null"
}
],
"description": "Complete position assignment. Explicit null clears it; omission is forbidden."
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"inactive"
],
"description": "Explicit intended lifecycle status. Archived profiles cannot be restored or edited through saveProfile."
},
"effectiveFrom": {
"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": "Required effective start of this complete configuration snapshot."
},
"effectiveTo": {
"anyOf": [
{
"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])))$"
},
{
"type": "null"
}
],
"description": "Explicit effective end, or null for an open-ended snapshot."
},
"currency": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 32,
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
},
{
"type": "null"
}
],
"description": "Explicit native currency. On update, null preserves the existing value under native SQL semantics; active profiles require a currency."
},
"payrollPeriod": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
},
{
"type": "null"
}
],
"description": "Explicit native period label. On update, null preserves the existing value."
},
"employmentType": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
},
{
"type": "null"
}
],
"description": "Explicit native employment type. On update, null preserves the existing value."
},
"configuration": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Complete native salary configuration JSON, at most 512 KiB. The existing payroll core removes reserved system/identity keys. No formulas or JavaScript are executed by this tool. Never submit a redacted/incomplete read result as a replacement."
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable identifier for this exact change. Preserve it and all original arguments after a lost response."
},
"profileId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Exact existing profile UUID."
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740990,
"description": "Current lock revision from payroll_get_profile. Native CAS rejects concurrent changes."
}
},
"required": [
"employeeId",
"assignmentKey",
"profileName",
"locationId",
"positionId",
"status",
"effectiveFrom",
"effectiveTo",
"currency",
"payrollPeriod",
"employmentType",
"configuration",
"requestId",
"profileId",
"expectedRevision"
],
"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"
}
}
]
}
}
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "saved",
"description": "The existing payroll manager confirmed this complete snapshot."
},
"profile": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Canonical payroll profile UUID."
},
"employeeId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
"description": "Canonical employee identifier."
},
"name": {
"anyOf": [
{
"type": "string",
"maxLength": 512
},
{
"type": "null"
}
],
"description": "Display name, including the native default-language fallback. Long names are shortened only in summaries."
},
"locationId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
},
{
"type": "null"
}
],
"description": "Assigned establishment, or null for a company-wide assignment."
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"inactive",
"archived"
],
"description": "Current native profile lifecycle status."
},
"revision": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "Current lock_version; use this as expectedRevision for an update or archive."
},
"currency": {
"anyOf": [
{
"type": "string",
"maxLength": 32
},
{
"type": "null"
}
],
"description": "Current profile currency; this does not describe a historical configuration version."
},
"effectiveFrom": {
"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": "Current profile header start date."
},
"effectiveTo": {
"anyOf": [
{
"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])))$"
},
{
"type": "null"
}
],
"description": "Current profile header end date, or null when open-ended."
},
"assignmentKey": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
"description": "Immutable assignment identity within this employee."
},
"positionId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
},
{
"type": "null"
}
],
"description": "Current assigned position."
},
"currentRevision": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "Latest saved configuration revision, distinct from the mutation lock revision."
},
"payrollPeriod": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"description": "Current native payroll period label; no payroll calculation is performed."
},
"employmentType": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"description": "Current native employment type."
},
"profileName": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Complete safe localized profile name in its native object shape."
},
"employeeName": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
],
"description": "Current employee display name or the saved fallback when the employee is unavailable."
},
"locationName": {
"anyOf": [
{
"type": "string",
"maxLength": 512
},
{
"type": "null"
}
],
"description": "Current establishment display label."
},
"positionName": {
"anyOf": [
{
"type": "string",
"maxLength": 512
},
{
"type": "null"
}
],
"description": "Current position display label."
},
"configurationRevision": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Selected immutable configuration revision, or null when the native lookup did not select a version."
},
"configurationHash": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
],
"description": "Native SHA256 of the selected configuration, distinct from a configuration-chunk digest."
},
"createdAt": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"description": "Native profile creation timestamp."
},
"createdBy": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
},
{
"type": "null"
}
],
"description": "Actor recorded when the profile was created."
},
"updatedAt": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"description": "Native current profile update timestamp."
},
"updatedBy": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
},
{
"type": "null"
}
],
"description": "Actor recorded for the current profile update."
},
"archivedAt": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"description": "Native archive timestamp, or null."
},
"archivedBy": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$"
},
{
"type": "null"
}
],
"description": "Actor recorded for archive, or null."
}
},
"required": [
"id",
"employeeId",
"name",
"locationId",
"status",
"revision",
"currency",
"effectiveFrom",
"effectiveTo",
"assignmentKey",
"positionId",
"currentRevision",
"payrollPeriod",
"employmentType",
"profileName",
"employeeName",
"locationName",
"positionName",
"configurationRevision",
"configurationHash",
"createdAt",
"createdBy",
"updatedAt",
"updatedBy",
"archivedAt",
"archivedBy"
],
"additionalProperties": false,
"description": "Saved profile header and newly saved immutable configuration identifiers."
}
},
"required": [
"status",
"profile"
],
"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"
}
}
]
}
}
}