POST
/
csv_import
/
{program_id}
curl --request POST \
  --url https://api.helpyousponsor.com/v1/csv_import/{program_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "file": "<string>",
  "import_type": "<string>"
}'
{
  "fields": [
    {}
  ],
  "first_row": [
    "<string>"
  ],
  "filename": "<string>",
  "program_id": 123,
  "program": {},
  "import_type": "<string>",
  "settings": {},
  "aii": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

program_id
integer
required

ID of the program

Body

application/json
CSV file and import type
file
string

CSV file to be imported

import_type
string

Type of import (recipients, donors, relationships, payments, emails)

Response

200
application/json
Successful operation
fields
object[]

Fields related to the import type

first_row
string[]

First row of the CSV file

filename
string

Name of the uploaded file

program_id
integer

ID of the program

program
object

Program details

import_type
string

Type of import

settings
object

Settings related to the import type

aii
boolean

Auto increment ID status