Skip to main content
POST
/
sites
/
import
Import sites from CSV
curl --request POST \
  --url https://app.azalt.co/api/v1/sites/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "csvContent": "<string>",
  "organizationId": "<string>"
}
'
{
  "success": 123,
  "failed": 123,
  "errors": [
    "<string>"
  ],
  "logs": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
csvContent
string
required
organizationId
string
required

Response

Successful response

success
number
required
failed
number
required
errors
string[]
required
logs
string[]
required