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

# Update Project Organization

> Update a project organization



## OpenAPI

````yaml put /v1/api/projects/{projectId}/organizations/{projectOrganizationId}
openapi: 3.1.0
info:
  title: Upsolve API
  version: 1.5.0
servers:
  - url: https://api.upsolve.ai
security: []
tags: []
paths:
  /v1/api/projects/{projectId}/organizations/{projectOrganizationId}:
    put:
      summary: Update a project organization
      description: Update a project organization
      operationId: PutV1ApiProjectsProjectIdOrganizationsProjectOrganizationId
      parameters:
        - name: projectId
          in: path
          required: true
          description: >-
            PUT /v1/api/projects/:projectId/organizations/:projectOrganizationId
            Parameter
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
        - name: projectOrganizationId
          in: path
          required: true
          description: >-
            PUT /v1/api/projects/:projectId/organizations/:projectOrganizationId
            Parameter
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
      requestBody:
        description: >-
          PUT /v1/api/projects/:projectId/organizations/:projectOrganizationId
          Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                apiKey:
                  type: string
                  minLength: 1
                  description: >-
                    Upsolve API key, generated under Account → Developer
                    settings in the Upsolve Hub. Keys are user-scoped: pass
                    organizationId alongside the key to select which org to act
                    on.
                  examples:
                    - up_embed_************
                organizationId:
                  description: >-
                    Your Upsolve organization's UUID — the org that owns the API
                    key and project. This is NOT a project organization: do not
                    pass a value registered via /projects/register-organization,
                    and do not pass an `externalId` (only
                    `projectOrganizationId` accepts those). Omit it when using
                    an org-bound API key — the org is read from the key and any
                    value sent here is ignored. Required only for user-scoped
                    API keys (created under Account → Developer settings) and
                    for the Supabase JWT path, where the org is ambiguous and
                    membership is verified against it.
                  examples:
                    - 123e4567-e89b-12d3-a456-426614174000
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                name:
                  description: The organization's display name.
                  type: string
                  minLength: 1
                properties:
                  description: >-
                    Key/value metadata for the organization, used to scope and
                    secure data for its users. Replaces the stored set.
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                externalId:
                  description: >-
                    Your own identifier for this organization (e.g. your
                    internal company UUID), as register-organization's
                    `externalId`. `embed-token` and `register-user` find the
                    organization by it. Unique within the project. `null`
                    removes it.
                  examples:
                    - acme-internal-uuid-1234
                  type:
                    - string
                    - 'null'
                  minLength: 1
              required: []
            examples:
              example1:
                value:
                  apiKey: up_embed_************
                  organizationId: 123e4567-e89b-12d3-a456-426614174000
                  externalId: acme-internal-uuid-1234
      responses:
        '200':
          description: >-
            PUT /v1/api/projects/:projectId/organizations/:projectOrganizationId
            Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                      name:
                        type: string
                      project_id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                      organization_id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                      external_id:
                        type:
                          - string
                          - 'null'
                      properties:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties: {}
                      created_at: {}
                      updated_at: {}
                      environment:
                        default: production
                        description: >-
                          The environment this organization and all of its users
                          belong to: `production` or one the project created,
                          such as `staging`.
                        type: string
                      is_managed:
                        default: false
                        description: >-
                          True for an organization Upsolve provisions and keeps
                          itself (it holds the shadow project users of the
                          organization's members). It cannot be moved to another
                          environment or deleted.
                        type: boolean
                    required:
                      - id
                      - name
                      - project_id
                      - organization_id
                      - external_id
                      - properties
                      - created_at
                      - updated_at
                      - environment
                      - is_managed
                    additionalProperties: false
                required:
                  - status
                  - data
                additionalProperties: false
        '400':
          description: >-
            PUT /v1/api/projects/:projectId/organizations/:projectOrganizationId
            Negative response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      code:
                        type: string
                      details:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties: {}
                    required:
                      - message
                    additionalProperties: false
                required:
                  - status
                  - error
                additionalProperties: false
      security:
        - APIKEY_1: []
components:
  securitySchemes:
    APIKEY_1:
      type: apiKey
      in: query
      name: apiKey
      x-in-actual: body
      description: apiKey MUST be supplied within the request body instead of query

````

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