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

# Confirm a signed-URL logo upload

> Record an uploaded logo, replacing any existing one.

The storage path is recomputed server-side from ``organization_id`` and the
content type; a client-supplied path is never trusted. Returns the updated
organization so the client can refresh its cache without a follow-up read.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /organizations/{organization_id}/logo/confirm-upload
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /organizations/{organization_id}/logo/confirm-upload:
    post:
      tags:
        - Organizations
      summary: Confirm a signed-URL logo upload
      description: >-
        Record an uploaded logo, replacing any existing one.


        The storage path is recomputed server-side from ``organization_id`` and
        the

        content type; a client-supplied path is never trusted. Returns the
        updated

        organization so the client can refresh its cache without a follow-up
        read.
      operationId: >-
        confirm_organization_logo_upload_organizations__organization_id__logo_confirm_upload_post
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            title: Organization Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmLogoUploadRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ConfirmLogoUploadRequest:
      properties:
        content_type:
          type: string
          title: Content Type
          description: >-
            MIME type used for the upload. Must match the initiate request,
            since it determines the path the object was written to.
      type: object
      required:
        - content_type
      title: ConfirmLogoUploadRequest
      description: Record a logo that has been uploaded to its signed URL.
    Organization:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        usage_limit:
          anyOf:
            - additionalProperties:
                type: integer
              propertyNames:
                $ref: '#/components/schemas/UsageType'
              type: object
            - type: string
            - type: 'null'
          title: Usage Limit
          description: Monthly usage limit
        nav_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Nav Config
          description: >-
            Per-organization nav config: { '<key>': { 'show': bool, 'disabled':
            bool, 'badgeLabel': str | None, 'badgeTooltip': str | None } }
        plotting_preferences:
          anyOf:
            - type: string
            - type: 'null'
          title: Plotting Preferences
          description: >-
            Free-text markdown describing how this organization wants the
            battery agent to format plots; injected into the agent's system
            prompt each turn. None means not set (nothing is injected).
        logo_path:
          anyOf:
            - type: string
            - type: 'null'
          title: Logo Path
          description: >-
            Storage object path of the organization logo, or None when unset.
            Not a URL: the bucket is private, so clients fetch the image from
            GET /organizations/{id}/logo, which redirects to a signed URL. Set
            via POST /organizations/{id}/logo, not via PATCH.
        user_organization_roles:
          anyOf:
            - items:
                $ref: '#/components/schemas/UserOrganizationRole'
              type: array
            - type: 'null'
          title: User Organization Roles
          description: List of user organization roles
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
          description: Timestamp of creation
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
          description: Timestamp of last update
      type: object
      required:
        - id
        - name
        - slug
      title: Organization
      description: Pydantic model for an organization.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UserOrganizationRole:
      properties:
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        users:
          anyOf:
            - $ref: '#/components/schemas/UsersResponse'
            - type: 'null'
        organization_id:
          type: string
          title: Organization Id
        organization_role_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Role Id
        organization_roles:
          anyOf:
            - $ref: '#/components/schemas/OrganizationRole'
            - type: 'null'
        deactivated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deactivated At
      type: object
      required:
        - organization_id
      title: UserOrganizationRole
    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
    UsersResponse:
      properties:
        id:
          type: string
          title: Id
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
      type: object
      required:
        - id
      title: UsersResponse
    OrganizationRole:
      properties:
        name:
          type: string
          title: Name
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
        organization_role_permissions:
          anyOf:
            - items:
                additionalProperties:
                  $ref: '#/components/schemas/Permission'
                type: object
              type: array
            - type: 'null'
          title: Organization Role Permissions
          description: The permissions for the organization role.
      type: object
      required:
        - name
      title: OrganizationRole
    Permission:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        action:
          type: string
          title: Action
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
      type: object
      required:
        - action
      title: Permission

````