Справочник API

Одобрения

Одобрение изменений вторым сотрудником.

Список одобрений

GET/v1/approvals

Области доступа
approvals:read

Filters combine with AND. A cursor is bound to the filter it was issued for; another filter with that cursor is 400. Invalid filter value is 400 schema_validation_failed.

Параметры

ПолеТипОбязательно
cursorзапросstringнет
limitзапросintegerнет
resource_typeзапросOnly approvals of this resource type.enum: policy, model_release, trust_store, legal_profile, country_profile, legal_hold_release, review_task, decisionнет
resource_idзапросOnly approvals of this resource.string (uuid)нет

Ответы

  • 200ApprovalList
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503

Запросить одобрение

POST/v1/approvals

Области доступа
approvals:request
Обязательный заголовок
Idempotency-Key

Тело запросаApprovalCreate

ПолеТипОбязательно
resource_typeenum: policy, model_release, trust_store, legal_profile, country_profile, legal_hold_release, review_task, decisionда
resource_idstring (uuid)да
resource_versionintegerда
resource_sha256stringда
evidence_idspolicy: completed simulations of this policy version without failures; legal_hold_release: exactly [id of the legal hold]; review_task: the evidence of the proposed resolution (same as review_resolution.evidence_ids). legal_profile: exactly [id of the legal profile version]; resource_id is the version, resource_version its number and resource_sha256 its digest; the decision of another identity sends the version to the platform owner.array of string (uuid)да
reasonstringда
review_resolutionReviewResolutionProposalнет

Ответы

  • 201Approval
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503

Решение по одобрению

POST/v1/approvals/{approval_id}/decision

Области доступа
approvals:decide
Обязательный заголовок
Idempotency-Key
Обязательный заголовок
If-Match

Параметры

ПолеТипОбязательно
approval_idпутьstring (uuid)да

Тело запросаApprovalDecision

ПолеТипОбязательно
decisionenum: approve, denyда
reasonstringда
resource_sha256stringда

Ответы

  • 200Approval
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503