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

# Update your profile

> Change your name.

> [!NOTE]
>
> Needs `profile:update`. See [Permissions](https://docs.postsyncer.com/essentials/authentication.md#permissions).

Changes your `name`, up to 255 characters; spaces at the start and end are dropped. It is the one field this route changes. Any other field, like `email` or `password`, is refused with `422`, each one named (`The email field can't be changed here: only name can.`), and nothing is saved, not even the name. The email address, password and photo are changed in the app, so a key can't take the account.

Every plan and every role.

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `profile:update`, or its user is inactive. | No: grant it in Settings → API. |
| 422 | | No `name`, an empty one or one over 255 characters, or another field in the body. | No: fix the request. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [Get your profile](https://docs.postsyncer.com/api-reference/profile/get.md): your name and email address.


## OpenAPI

````yaml PATCH /profile
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
  - name: Billing
    description: >-
      The owner's plan, invoices and the links that pay for, change or cancel
      it.
  - name: Team
    description: A workspace's teammates and invitations, and their roles.
  - name: Notifications
    description: >-
      Your bell and notification settings, and the workspace's Slack, Discord
      and Telegram channels.
  - name: Blog-to-social
    description: Blog feeds that turn a workspace's new articles into posts.
  - name: Products
    description: Products the workspace's posts can promote.
  - name: Contacts
    description: People who commented on the workspace's posts, and the lists they are on.
  - name: Profile
    description: 'The key''s user: their name and sign-in email.'
  - name: API keys
    description: 'Your API keys: listing and deleting them.'
  - name: Agent sign-up
    description: >-
      An AI agent signs a person up with a code emailed to them, and gets their
      first key. No key needed.
paths:
  /profile:
    patch:
      tags:
        - Profile
      summary: Update your profile
      description: >-
        Needs `profile:update`. Changes your name, the one field this route
        changes. Any other field (`email`, `password`, …) is refused with `422`,
        each one named, and nothing is saved: the email address, password and
        photo are changed in the app. Every plan and every role.
      operationId: updateProfile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              additionalProperties: false
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                  description: Your name. Spaces at the start and end are dropped.
            examples:
              default:
                summary: A new name
                value:
                  name: Lena Halden-Okafor
      responses:
        '200':
          description: Your profile after the change.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
              examples:
                default:
                  summary: A new name
                  value:
                    id: 7
                    name: Lena Halden-Okafor
                    email: lena@haldencoffee.com
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: The key lacks `profile:update`, or its user is inactive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks profile:update
                  value:
                    message: >-
                      This API key does not have the "profile:update"
                      permission. Edit the key in PostSyncer under Settings →
                      API to grant it.
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '422':
          description: >-
            `name` is missing, empty or over 255 characters, or the body has
            another field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              examples:
                name:
                  summary: No name
                  value:
                    message: The name field is required.
                    errors:
                      name:
                        - The name field is required.
                name_too_long:
                  summary: A name over 255 characters
                  value:
                    message: The name field must not be greater than 255 characters.
                    errors:
                      name:
                        - >-
                          The name field must not be greater than 255
                          characters.
                other_field:
                  summary: Another field
                  value:
                    message: 'The email field can''t be changed here: only name can.'
                    errors:
                      email:
                        - 'The email field can''t be changed here: only name can.'
        '429':
          $ref: '#/components/responses/RateLimited429'
components:
  schemas:
    Profile:
      type: object
      description: The key's user.
      required:
        - id
        - name
        - email
      properties:
        id:
          type: integer
        name:
          type: string
          maxLength: 255
        email:
          type: string
          format: email
          description: The address they sign in with. It is changed in the app only.
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
        error:
          type: string
          description: >-
            A code a few errors add, such as `rate_limited`. See [Handle
            errors](/essentials/error-handling#answers-with-an-error-code).
    ValidationError:
      type: object
      description: '422: the request didn''t pass validation, and nothing changed.'
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: >-
            The first error and, when there are more, how many: `(and 1 more
            error)`, `(and 2 more errors)`.
        errors:
          type: object
          description: >-
            The messages, by field. A field inside a list is named with dots:
            `accounts.0.id`.
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
    RateLimited429:
      description: >-
        More than 60 requests in a minute from this key's user (the API and the
        MCP server share the count). Wait `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds until requests are allowed again.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed a minute.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left this minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: When requests are allowed again, as a Unix timestamp.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            too_many_attempts:
              summary: Too many requests
              value:
                message: Too Many Attempts.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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