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

# Wake an application deployment

> Wake a parked deployment of this application: restore the remembered replica count (parked_replicas, or the descriptor default when none was pinned), remove the park marker, and enqueue the platform's existing deploy job to apply it. Refused with 409 when the deployment is not parked. Held to the applications.deploy permission. Browser session authentication with the X-Ankra-CSRF double-submit header only (no bearer twin).



## OpenAPI

````yaml https://platform.ankra.app/openapi.json post /org/applications/{application_id}/deployments/wake
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /org/applications/{application_id}/deployments/wake:
    post:
      tags:
        - Applications API
      summary: Wake an application deployment
      description: >-
        Wake a parked deployment of this application: restore the remembered
        replica count (parked_replicas, or the descriptor default when none was
        pinned), remove the park marker, and enqueue the platform's existing
        deploy job to apply it. Refused with 409 when the deployment is not
        parked. Held to the applications.deploy permission. Browser session
        authentication with the X-Ankra-CSRF double-submit header only (no
        bearer twin).
      operationId: wake_application_deployment
      parameters:
        - in: path
          name: application_id
          required: true
          schema:
            title: Application Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ParkDeploymentRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParkDeploymentResponse'
          description: Successful Response
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: >-
            You do not have permission to park or wake deployments of this
            application.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: >-
            Not found ("Application not found" or "Target cluster not found in
            this organisation.")
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: The deployment is already parked / not parked, or is being removed
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ParkDeploymentRequest:
      description: >-
        Name the deployment to park or wake: the cluster it runs on and the
        namespace it runs in - the installation's identity beside the
        application the URL carries.
      properties:
        cluster_id:
          title: Cluster Id
          type: string
        namespace:
          title: Namespace
          type: string
      required:
        - cluster_id
        - namespace
      title: ParkDeploymentRequest
      type: object
    ParkDeploymentResponse:
      description: >-
        The deployment's rest state after a park or a wake: whether it is
        parked, the replica count it is converging to, and the remembered count
        a wake restores (null after a wake).
      properties:
        cluster_id:
          title: Cluster Id
          type: string
        namespace:
          title: Namespace
          type: string
        parked:
          title: Parked
          type: boolean
        replicas:
          title: Replicas
          type: string
        parked_replicas:
          anyOf:
            - type: string
            - type: 'null'
          title: Parked Replicas
      required:
        - cluster_id
        - namespace
        - parked
        - replicas
        - parked_replicas
      title: ParkDeploymentResponse
      type: object
    DemoDetailError:
      description: >-
        The FastAPI-style detail envelope the demo routes use for
        400/403/404/409/502 responses.
      properties:
        detail:
          type: string
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````