---
search:
  tags:
    - Surfaces
    - POST
seo:
  description: >-
    Re-runs every prerequisite check and… Reference for the POST
    /stores/{store_id}/surfaces/{surface_id}/prerequisites/evaluate endpoint in
    the Sarvex V1 API.
sidebar:
  label: Re-evaluate a surface's prerequisites on demand
  badge: POST
title: Re-evaluate a surface's prerequisites on demand
type: openapi-operation
---
Re-runs every prerequisite check and advances or regresses the enrollment to
match. Safe to call repeatedly: a merchant who fixes a failing prerequisite
re-runs the checks without restarting enrollment.

`POST /stores/{store_id}/surfaces/{surface_id}/prerequisites/evaluate`

**Responses**

- `200` — Enrollment state after re-evaluation.
- `404` — Resource not found within the caller's tenant.
- `409` — Store is not UCP active.

Response example, 200:

```json
{
  "surface_id": "string",
  "store_id": "string",
  "state": "available",
  "prerequisites": [
    {
      "check_id": "string",
      "label_key": "string",
      "passed": true,
      "reason": "string",
      "remediation_key": "string",
      "remediation_url": "http://example.com",
      "evaluated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "artifacts": [
    {
      "artifact_id": "string",
      "label_key": "string",
      "url": "http://example.com",
      "detail": {
        "property1": "string",
        "property2": "string"
      },
      "generated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "config": {
    "property1": "string",
    "property2": "string"
  },
  "enrolled_at": "2019-08-24T14:15:22Z",
  "last_verified_at": "2019-08-24T14:15:22Z",
  "suspension_reason": "string",
  "updated_at": "2019-08-24T14:15:22Z",
  "descriptor": {
    "surface_id": "string",
    "display_name_key": "string",
    "description_key": "string",
    "protocol": "ucp",
    "required_connectors": [
      "commerce"
    ],
    "required_capabilities": [
      "string"
    ],
    "prerequisite_checks": [
      "string"
    ],
    "artifacts": [
      "string"
    ],
    "config_schema": [
      {
        "key": "string",
        "type": "text",
        "label_key": "string",
        "help_key": "string",
        "required": true
      }
    ],
    "external_steps": [
      {
        "step_id": "string",
        "label_key": "string",
        "url": "http://example.com",
        "owner": "merchant"
      }
    ],
    "verification_signal": "string",
    "auto_enroll": true
  },
  "blocked": true,
  "blocked_reason": "string"
}
```

Response example, 404:

```json
{
  "error": {
    "code": "not_found",
    "message": "Resource not found.",
    "details": null
  }
}
```
