> ## 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.

# Initiate a signed-URL logo upload

> Return a signed URL the client PUTs the image to.

The bytes go straight to storage rather than through this API, so the
bucket's own limits bound them: it rejects an object over 2 MiB (413) or of
an unlisted type (415). Call the confirm endpoint afterwards to record the
logo on the organization.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /organizations/{organization_id}/logo/initiate-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/initiate-upload:
    post:
      tags:
        - Organizations
      summary: Initiate a signed-URL logo upload
      description: >-
        Return a signed URL the client PUTs the image to.


        The bytes go straight to storage rather than through this API, so the

        bucket's own limits bound them: it rejects an object over 2 MiB (413) or
        of

        an unlisted type (415). Call the confirm endpoint afterwards to record
        the

        logo on the organization.
      operationId: >-
        initiate_organization_logo_upload_organizations__organization_id__logo_initiate_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/InitiateLogoUploadRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitiateLogoUploadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    InitiateLogoUploadRequest:
      properties:
        content_type:
          type: string
          title: Content Type
          description: >-
            MIME type of the image (image/png, image/jpeg, image/webp, or
            image/svg+xml). Determines the stored object's extension, and must
            match the Content-Type sent on the PUT.
      type: object
      required:
        - content_type
      title: InitiateLogoUploadRequest
      description: Ask for a signed URL to upload an organization logo to.
    InitiateLogoUploadResponse:
      properties:
        path:
          type: string
          title: Path
          description: >-
            Storage path the logo will occupy. Informational: the confirm
            endpoint recomputes it server-side rather than trusting it back.
        signed_url:
          type: string
          title: Signed Url
          description: >-
            PUT the image bytes here with the same Content-Type, then call the
            confirm endpoint. Storage rejects an object over 2 MiB (413) or of
            an unlisted type (415).
        token:
          type: string
          title: Token
          description: Upload token embedded in the signed URL.
      type: object
      required:
        - path
        - signed_url
        - token
      title: InitiateLogoUploadResponse
      description: A signed URL to PUT an organization logo to.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````