Saltar al contenido principal

Previsualizar un borrador frente a activos almacenados del tenant

POST /api/v1/risk/custom-profiles/{id}/preview

Previsualización de solo lectura protegida por revisión de hasta 25 activos explícitos o una muestra acotada estratificada por tipo y gravedad existente. targetVersion opcional previsualiza esa versión publicada inmutable en lugar del borrador. baselineVersion opcional reevalúa una versión de comparación frente a las mismas evidencias/fecha. Las dimensiones empresariales utilizan contexto revisado, no valores predeterminados de ingesta. Las puntuaciones ausentes producen diferencias null. Sin activación, modificación ni recálculo.

Roles permitidos: admin, analyst, viewer.

Autenticación​

Las siguientes alternativas de OpenAPI describen la autenticación aceptada. Las modificaciones desde el navegador también requieren la cabecera Origin canónica.

[
{
"organizationCredential": []
},
{
"browserSession": []
}
]

Parámetros​

[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]

Cuerpo de la solicitud​

{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomProfilePreviewInput"
}
}
}
}

Respuestas​

{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"schema": {
"const": "sectigo.custom-risk-profile-preview.v1"
},
"profileId": {
"type": "string"
},
"draftRevision": {
"type": "integer"
},
"baselineVersion": {
"type": [
"integer",
"null"
]
},
"targetVersion": {
"type": [
"integer",
"null"
]
},
"assessedAt": {
"type": "string"
},
"normalizationVersion": {
"type": "string"
},
"customFactsVersion": {
"type": "string"
},
"preview": {
"const": true
},
"persisted": {
"const": false
},
"sampling": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"limit": {
"type": "integer"
},
"exhaustive": {
"const": false
}
},
"required": [
"method",
"limit",
"exhaustive"
]
},
"items": {
"type": "array",
"maxItems": 25,
"items": {
"type": "object",
"properties": {
"assetId": {
"type": "string"
},
"evidenceId": {
"type": [
"string",
"null"
]
},
"contextRevision": {
"type": "integer"
},
"before": {
"type": "object",
"properties": {},
"required": []
},
"after": {
"type": "object",
"properties": {},
"required": []
},
"difference": {
"type": "object",
"properties": {
"score": {
"type": [
"number",
"null"
]
},
"beforeSeverity": {
"type": "string"
},
"afterSeverity": {
"type": "string"
},
"comparable": {
"type": "boolean"
},
"reason": {
"type": "string"
}
},
"required": [
"score",
"beforeSeverity",
"afterSeverity",
"comparable",
"reason"
]
}
},
"required": [
"assetId",
"evidenceId",
"contextRevision",
"before",
"after",
"difference"
]
}
},
"limitation": {
"type": "string"
}
},
"required": [
"schema",
"profileId",
"draftRevision",
"assessedAt",
"preview",
"persisted",
"sampling",
"items"
]
}
}
}
},
"400": {
"description": "Validation error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing/expired/revoked credential",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Insufficient role",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"409": {
"description": "State or idempotency conflict",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"413": {
"description": "Body too large",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Unsupported media type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Request budget exhausted; respect Retry-After",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"schema": {
"type": "integer",
"minimum": 1
},
"description": "Seconds until sufficient budget is expected; concurrent traffic may consume replenished capacity."
}
}
},
"500": {
"description": "Internal error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"503": {
"description": "Not configured",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}

Las referencias como #/components/schemas/Asset se resuelven en los esquemas compartidos. Descarga el contrato OpenAPI para generar clientes. Esta página se genera automáticamente; describe la API de desarrollo implementada, no endpoints previstos.