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

# Set personal values

> Set your personal values for a service. A field you send replaces what you saved for it, and a field you leave out keeps its saved value. Every field the service leaves to its members must be set once the update is applied.



## OpenAPI

````yaml PATCH /api/v1/agent-vault/access-bundles/{accessBundleId}/services/{serviceId}/personal-values
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/agent-vault/access-bundles/{accessBundleId}/services/{serviceId}/personal-values:
    patch:
      tags:
        - Agent Vault Access Bundles
      description: >-
        Set your personal values for a service. A field you send replaces what
        you saved for it, and a field you leave out keeps its saved value. Every
        field the service leaves to its members must be set once the update is
        applied.
      operationId: setAgentVaultServicePersonalValues
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: accessBundleId
          required: true
          description: The ID of the access bundle.
        - schema:
            type: string
            format: uuid
          in: path
          name: serviceId
          required: true
          description: The ID of the service.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                values:
                  type: array
                  items:
                    anyOf:
                      - type: object
                        properties:
                          field:
                            type: string
                            enum:
                              - credential-username
                            description: >-
                              Which value: credential-value (a bearer token or a
                              basic password) or credential-username (a basic
                              username).
                          value:
                            type: string
                            minLength: 1
                            maxLength: 256
                            pattern: ^[^\x00-\x1f\x7f]*$
                            description: >-
                              The value. Can use up to 3 references to your
                              personal variables, written as `{{KEY}}`. Never
                              returned once saved.
                        required:
                          - field
                          - value
                        additionalProperties: false
                        title: Username
                      - type: object
                        properties:
                          field:
                            type: string
                            enum:
                              - credential-value
                            description: >-
                              Which value: credential-value (a bearer token or a
                              basic password) or credential-username (a basic
                              username).
                          value:
                            type: string
                            minLength: 1
                            maxLength: 8192
                            pattern: ^[^\x00-\x1f\x7f]*$
                            description: >-
                              The value. Can use up to 3 references to your
                              personal variables, written as `{{KEY}}`. Never
                              returned once saved.
                        required:
                          - field
                          - value
                        additionalProperties: false
                        title: Token or Password
                  minItems: 1
                  maxItems: 2
                  description: >-
                    The values to set, at most one per field the service leaves
                    to its members. A field you leave out keeps its saved value,
                    so after a field becomes member provided you only need to
                    send that one.
                credentialType:
                  type: string
                  enum:
                    - bearer
                    - basic
                    - passthrough
                  description: >-
                    The credential type you expect the service to have. If it no
                    longer matches, the request fails with a 409.
              required:
                - values
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  personalValues:
                    type: object
                    properties:
                      isConfigured:
                        type: boolean
                        description: >-
                          Whether you have set every value this service requires
                          from you. Until you do, the proxy refuses this
                          service's requests from your sessions.
                      fields:
                        type: array
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                              enum:
                                - credential-value
                                - credential-username
                              description: >-
                                Which value: credential-value (a bearer token or
                                a basic password) or credential-username (a
                                basic username).
                            isSet:
                              type: boolean
                              description: Whether you have set this value.
                            updatedAt:
                              type: string
                              format: date-time
                              nullable: true
                              description: >-
                                When you last set this value, or null if you
                                haven't.
                            variableReferences:
                              type: array
                              items:
                                type: object
                                properties:
                                  variableId:
                                    type: string
                                    format: uuid
                                    description: The ID of the variable.
                                  key:
                                    type: string
                                    description: >-
                                      The name values use to refer to the
                                      variable, as `{{KEY}}`. Starts with a
                                      letter and uses only upper case letters,
                                      numbers and underscores.
                                required:
                                  - variableId
                                  - key
                                additionalProperties: false
                              description: Your personal variables that this value uses.
                          required:
                            - field
                            - isSet
                            - updatedAt
                            - variableReferences
                          additionalProperties: false
                        description: >-
                          Each value the service requires from you, and whether
                          you have set it.
                    required:
                      - isConfigured
                      - fields
                    additionalProperties: false
                    description: >-
                      Your personal values for the service, or null if the
                      service leaves no fields to its members. Only you can see
                      these, and a stored value never comes back.
                required:
                  - personalValues
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````

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