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

# Update Position

<Info>
  This endpoint updates a <strong>position</strong>. It accepts the
  <code>PositionRequestUpdateSchema</code> as the request body and returns
  <code>PublicApiPositionBaseResponse</code> on success.
</Info>

<Note>
  This endpoint does <strong>not</strong> behave like a <code>PATCH</code>.
  A <code>PUT</code> request replaces the entire resource. If you omit fields in the
  body, they may be overwritten with default or null values.
</Note>

## Overview

* **Method:** `PUT`
* **Path:** `/v0/position/{position_id}`
* **OperationId:** `public_update_position_v0_position__position_id__put`
* **Authentication:** header `x-api-key` (`APIKeyHeader` in the OpenAPI)

<OpenAPIPlayground openapi="/public-api/openapi.json" operationId="public_update_position_v0_position__position_id__put" />

### Example Request

```bash theme={null}
curl -X PUT "https://public-api.salu.com.vc/dev/routes/v0/position/{position_id}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $SALU_PUBLIC_API_KEY" \
  -d @position_update_payload.json
```


## OpenAPI

````yaml PUT /v0/position/{position_id}
openapi: 3.1.0
info:
  title: Public API v0
  description: API publica da Salu para integracoes de SST.
  version: 0.1.0
servers:
  - url: https://public-api.salu.com.vc/dev/routes
    description: Development
  - url: https://public-api.salu.com.vc/prd/routes
    description: Production
security: []
paths:
  /v0/position/{position_id}:
    put:
      tags:
        - Position
        - Position
      summary: Public Update Position
      operationId: public_update_position_v0_position__position_id__put
      parameters:
        - name: position_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Position Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PositionRequestUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiPositionBaseResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PositionRequestUpdate:
      properties:
        name:
          type: string
          title: Name
        hr_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Hr Code
        description:
          anyOf:
            - type: string
              maxLength: 999
            - type: 'null'
          title: Description
        cbo:
          anyOf:
            - type: string
            - type: 'null'
          title: Cbo
        client_integration_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Integration Code
        organization_id:
          type: string
          format: uuid
          title: Organization Id
      type: object
      required:
        - name
        - organization_id
      title: PositionRequestUpdate
    PublicApiPositionBaseResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        name:
          type: string
          title: Name
        is_active:
          type: boolean
          title: Is Active
        hr_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Hr Code
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        cbo:
          anyOf:
            - type: string
            - type: 'null'
          title: Cbo
        client_integration_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Integration Code
      type: object
      required:
        - id
        - organization_id
        - name
        - is_active
      title: PublicApiPositionBaseResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````