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

# Update user

> Update a user. Send the full set of attributes.



## OpenAPI

````yaml /api-reference/openapi.yaml put /Users/{id}
openapi: 3.1.0
info:
  title: Juno Journey API
  version: 1.0.0
  description: >-
    The Juno public API. See the [API
    overview](https://docs.junojourney.com/integrations/api-overview) for
    authentication, scopes and limits.
servers:
  - url: https://api.the-juno.com
security:
  - BearerAuth: []
paths:
  /Users/{id}:
    servers:
      - url: https://scim.the-juno.com/api/v1/scim/v2/{organizationId}
        description: Your organization's SCIM URL
        variables:
          organizationId:
            default: your-organization-id
            description: The ID at the end of your SCIM URL (Security → Users Sync).
    parameters:
      - name: id
        in: path
        required: true
        description: The user's SCIM ID.
        schema:
          type: string
        example: 64f0c0ffee0000000000abcd
    put:
      tags:
        - SCIM
      summary: Update user
      description: Update a user. Send the full set of attributes.
      operationId: scimUpdateUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScimUser'
            example:
              schemas:
                - urn:ietf:params:scim:schemas:core:2.0:User
                - urn:ietf:params:scim:schemas:extension:enterprise:2.0:User
              userName: dana.levi@acme.com
              externalId: 00u8k2j4x9QeTq1Zr5d7
              active: true
              displayName: Dana Levi
              name:
                givenName: Dana
                familyName: Levi
                formatted: Dana Levi
              emails:
                - value: dana.levi@acme.com
                  type: work
                  primary: true
              urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:
                department: Product
                manager:
                  value: sam.cohen@acme.com
      responses:
        '200':
          description: OK
        '404':
          description: User not found.
      security:
        - ScimToken: []
components:
  schemas:
    ScimUser:
      type: object
      properties:
        schemas:
          type: array
          items:
            type: string
        userName:
          type: string
          description: Usually the user's work email.
        externalId:
          type: string
          description: The user's ID in your identity provider.
        active:
          type: boolean
          description: '`false` deactivates the user in Juno.'
        displayName:
          type: string
        name:
          type: object
          properties:
            givenName:
              type: string
            familyName:
              type: string
            formatted:
              type: string
        emails:
          type: array
          items:
            type: object
            properties:
              value:
                type: string
                format: email
              type:
                type: string
              primary:
                type: boolean
        urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:
          type: object
          properties:
            department:
              type: string
            manager:
              type: object
              properties:
                value:
                  type: string
                  description: >-
                    The manager's identifier, in the field your SCIM mapping
                    uses (for example their email or employee ID).
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token. Create one in Admin → Security → Developer
        Settings → Generate Personal Access Token.
    ScimToken:
      type: http
      scheme: bearer
      description: >-
        SCIM token. Copy it from Security → Users Sync → SCIM Provisioning
        Parameters.

````

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