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

# Update organization details

> Update the organization's name and billing email using its ID. Requires the `x-store-id` header for authentication. The organization must belong to the store.

- **Parameters:**
  - `id` (string, path, required): The ID of the organization.

- **Request Body:**
  - `organization_name`: New name for the organization.
  - `billing_email`: New billing email for the organization.

- **Responses:**
  - `200`: Organization details updated successfully.
  - `401`: Unauthorized if `x-store-id` is not provided.
  - `404`: Organization not found.



## OpenAPI

````yaml /api-reference/blink-api.json patch /organizations/{id}
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /organizations/{id}:
    patch:
      tags:
        - Organizations
      summary: Update organization details
      description: >-
        Update the organization's name and billing email using its ID. Requires
        the `x-store-id` header for authentication. The organization must belong
        to the store.


        - **Parameters:**
          - `id` (string, path, required): The ID of the organization.

        - **Request Body:**
          - `organization_name`: New name for the organization.
          - `billing_email`: New billing email for the organization.

        - **Responses:**
          - `200`: Organization details updated successfully.
          - `401`: Unauthorized if `x-store-id` is not provided.
          - `404`: Organization not found.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID of the organization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrganizationRequest'
      responses:
        '200':
          description: Organization updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationDetails'
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: Organization not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    UpdateOrganizationRequest:
      type: object
      properties:
        organization_name:
          type: string
        billing_email:
          type: string
    OrganizationDetails:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
        organization_name:
          type: string
        billing_email:
          type: string
        created_at:
          type: string
          format: date-time
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````