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

# Set Accounts for CSV

> Set social media accounts for a CSV import to publish posts to.



## OpenAPI

````yaml /api-reference/social-media-posting/openapi.json post /social-media-posting/{locationId}/set-accounts
openapi: 3.0.0
info:
  title: Social Planner API
  description: >-
    Schedule and publish content to social media platforms via the HoopAI
    Platform.
  version: 1.0.0
  contact: {}
servers:
  - url: https://services.leadconnectorhq.com
security:
  - bearerAuth: []
tags:
  - name: Posts
    description: Create, read, update, and delete social media posts
  - name: Accounts
    description: Manage connected social media accounts
  - name: OAuth - Google
    description: Google OAuth integration
  - name: OAuth - Facebook
    description: Facebook OAuth integration
  - name: OAuth - Instagram
    description: Instagram OAuth integration
  - name: OAuth - LinkedIn
    description: LinkedIn OAuth integration
  - name: OAuth - Twitter
    description: Twitter/X OAuth integration (deprecated)
  - name: OAuth - TikTok
    description: TikTok OAuth integration
  - name: OAuth - Generic
    description: Generic OAuth integration for any supported platform
  - name: CSV
    description: Bulk schedule posts via CSV upload
  - name: Categories
    description: Manage post categories
  - name: Tags
    description: Manage post tags
  - name: Statistics
    description: Social media analytics
  - name: Category Queues
    description: Manage category-based posting queues
paths:
  /social-media-posting/{locationId}/set-accounts:
    post:
      tags:
        - CSV
      summary: Set Accounts for CSV
      description: Set social media accounts for a CSV import to publish posts to.
      operationId: set-csv-accounts
      parameters:
        - name: locationId
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer <token>
        - name: Version
          in: header
          required: true
          schema:
            type: string
            example: '2021-07-28'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                csvId:
                  type: string
                accountIds:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '422':
          description: Unprocessable Entity
components: {}

````