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

# Reconcile placement server

> Reconcile a placement server to the current Placement image.
The request has no body or client precondition.



## OpenAPI

````yaml /openapi/reservation-openapi.yaml post /api/v2/placements/{placementID}/servers/{serverID}/reconcile
openapi: 3.0.3
info:
  title: Unikorn Reservation API
  description: |-
    Reservation service provides topology-aware bare metal GPU reservation and
    placement, sitting atop UNI Region service resources.
  version: 0.5.0
servers:
  - url: https://reservation.nks.europe-west4.nscale.com
    description: Production
  - url: https://reservation.nks-stg.europe-west2.nscale.com
    description: Staging
  - url: https://reservation.uni-dev.glo1.nscale.com
    description: Development
security: []
paths:
  /api/v2/placements/{placementID}/servers/{serverID}/reconcile:
    description: |-
      Accepts reconciliation of one drifted server owned by a Placement: the
      service converges the server to the placement's declared image. The
      backing host and its pin are preserved; the server's local disk contents
      are lost. A no-op if the server already runs the placement's image.
    parameters:
      - $ref: '#/components/parameters/placementIDParameter'
      - $ref: '#/components/parameters/serverIDParameter'
    post:
      tags:
        - Placement Servers
      summary: Reconcile placement server
      description: |-
        Reconcile a placement server to the current Placement image.
        The request has no body or client precondition.
      operationId: reconcilePlacementServer
      responses:
        '200':
          description: The member is already observed Drained; nothing changed.
        '202':
          description: The request has been accepted and will be fulfilled asynchronously.
        '400':
          $ref: '#/components/responses/badRequestResponse'
        '401':
          $ref: '#/components/responses/unauthorizedResponse'
        '403':
          $ref: '#/components/responses/forbiddenResponse'
        '404':
          $ref: '#/components/responses/notFoundResponse'
        '409':
          $ref: '#/components/responses/conflictResponse'
        '422':
          $ref: '#/components/responses/unprocessableContentResponse'
        '500':
          $ref: '#/components/responses/internalServerErrorResponse'
        '503':
          $ref: '#/components/responses/memberAdmissionUnavailableResponse'
      security:
        - oauth2Authentication: []
components:
  parameters:
    placementIDParameter:
      name: placementID
      in: path
      description: The placement ID.
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 63
    serverIDParameter:
      name: serverID
      in: path
      description: The public Placement server ID.
      required: true
      schema:
        $ref: '#/components/schemas/placementServerIDParameter'
  responses:
    badRequestResponse:
      description: |-
        Request body failed schema validation, or the request does not contain
        all the required fields.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: invalid_request
            error_description: request body invalid
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    unauthorizedResponse:
      description: Authentication failed or the access token has expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: access_denied
            error_description: authentication failed
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    forbiddenResponse:
      description: >-
        Request was denied by authorization, this may be caused by the
        authorization

        token not having the required scope for an API, or the user doesn't have
        the

        necessary privileges on the provider platform.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: forbidden
            error_description: user credentials do not have the required privileges
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    notFoundResponse:
      description: Unable to find a resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: not_found
            error_description: the requested resource does not exist
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    conflictResponse:
      description: >-
        Resource conflicts with another, usually this means they have the same
        name.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: conflict
            error_description: a resource with the same name already exists
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    unprocessableContentResponse:
      description: >-
        The provided request was syntactically correct but the instruction was
        unable to

        be processed due to semantic errors.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: unprocessable_content
            error_description: the request body was in the wrong format
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    internalServerErrorResponse:
      description: >-
        An unexpected or unhandled error occurred. This may be a transient error
        and

        may succeed on a retry.  If this isn't the case, please report it as an
        issue.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: server_error
            error_description: failed to token claim
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    memberAdmissionUnavailableResponse:
      description: >-
        Required member state is temporarily unavailable. Retry after the
        specified delay.
      headers:
        Retry-After:
          description: Delay in decimal seconds before another request.
          schema:
            type: string
            pattern: ^[0-9]+$
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
  schemas:
    placementServerIDParameter:
      description: An opaque public Placement server ID.
      type: string
      minLength: 1
      maxLength: 128
    error:
      description: Generic error message, compatible with oauth2.
      type: object
      required:
        - error
        - error_description
      properties:
        error:
          description: >-
            A terse error string expanding on the HTTP error code. Errors are
            based on the OAuth 2.02 specification, but are expanded with
            proprietary status codes for APIs other than those specified by
            OAuth 2.02.
          type: string
          enum:
            - invalid_request
            - server_error
            - access_denied
            - not_found
            - conflict
            - method_not_allowed
            - unsupported_media_type
            - request_entity_too_large
            - unprocessable_content
            - forbidden
        error_description:
          description: Verbose message describing the error.
          type: string
        trace_id:
          description: Unique trace identifier for the request.
          type: string
  securitySchemes:
    oauth2Authentication:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: /oauth2/v2/authorization
          tokenUrl: /oauth2/v2/token
          scopes: {}

````