Расчёт выплат · Чувствительное действие
Расчёт выплат · Архивация · Профили
payroll_archive_profile
Попробуйте три запроса
Подготовить
- Вы указываетеProfileid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Расчёт выплат / Архивация / Профили». Для изменения нужны profileId, причина. Покажи объект и ожидаемый эффект до выполнения.
- profileId
- Параметр
- reason
- Причина
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Расчёт выплат / Архивация / Профили» с параметром reason = Исправление учебной записи. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- reason
- Исправление учебной записи
- expectedRevision
- 4
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Расчёт выплат / Архивация / Профили» по исходному ответу. Покажи статус, profile. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Archive a payroll assignment using the existing manager, CAS and original requestId. Requires current OAuth and employee permissions, all locations and native archive scope. Preserves immutable history; does not delete or restore profiles or move money.
Параметры запроса
- profileId
- Exact existing payroll profile UUID. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 1 · максимум 9007199254740990
- reason
- Human-provided reason for archiving this assignment. обязательно по схеме · string · до символов 2000
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- status
- The native manager confirmed archive. обязательно по схеме · string
- profile
- Archived profile summary and safe metadata; historical configurations are preserved. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"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 payroll profile UUID."
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740990,
"description": "Current lock revision from payroll_get_profile."
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"description": "Human-provided reason for archiving this assignment."
},
"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."
}
},
"required": [
"profileId",
"expectedRevision",
"reason",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "archived",
"description": "The native manager confirmed archive."
},
"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": "Archived profile summary and safe metadata; historical configurations are preserved."
}
},
"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"
}
}
]
}
}
}