> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aegister.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Undo the removal of a Cloud Defender restricted page

> Put back a restricted page within 10 minutes of removing it. It returns as it was: its addresses, its mode (test or enforced) and its test count. After 10 minutes it answers 400. Owners and security officers with a live licence.



## OpenAPI

````yaml post /api/v1/cloud-defender/{id}/restricted-paths/{path_id}/restore
openapi: 3.1.0
info:
  title: Aegister API
  version: 2.10.0
servers: []
security: []
paths:
  /api/v1/cloud-defender/{id}/restricted-paths/{path_id}/restore:
    post:
      tags:
        - cloud-defender
      summary: Undo the removal of a restricted page
      description: >-
        Within 10 minutes of its removal the page comes back as it was: its
        addresses, mode and test count.
      operationId: cloud_defender_restricted_paths_restore_create
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - in: path
          name: path_id
          schema:
            type: integer
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 0
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
                  data:
                    type: object
                    properties:
                      id:
                        type: integer
                      label:
                        type: string
                      prefixes:
                        type: array
                        items:
                          type: string
                        description: >-
                          The paths it covers: every path starting with one of
                          them.
                      exceptions:
                        type: array
                        items:
                          type: string
                        description: Paths under the prefixes left open to everyone.
                      allowed:
                        type: array
                        items:
                          type: string
                        description: The addresses it is open to.
                      countries:
                        type: array
                        items:
                          type: string
                        description: The countries it is open to (ISO 3166-1 alpha-2).
                      mode:
                        type: string
                        enum:
                          - test
                          - enforced
                        description: >-
                          `test`: requests it would refuse are counted and let
                          through.
                      test_hits:
                        type: integer
                        description: Requests it would have refused since `test_since`.
                      test_since:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      created_at:
                        type: string
                        format: date-time
              examples:
                BackAsItWas:
                  value:
                    error: 0
                    messages: []
                    data:
                      id: 7
                      label: WordPress admin
                      prefixes:
                        - /wp-admin/
                        - /wp-login.php
                      exceptions:
                        - /wp-admin/admin-ajax.php
                      allowed:
                        - 203.0.113.10
                        - 2001:db8:10::/64
                      countries:
                        - IT
                      mode: test
                      test_hits: 0
                      test_since: '2026-10-28T09:30:00Z'
                      created_at: '2026-10-28T09:30:00Z'
                  summary: Back as it was
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 1
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - - Invalid data provided
          description: ''
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 1
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
          description: ''
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Aegister-Token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.