Skip to main content
POST
/
api
/
v3
/
sites
/
{site_uuid}
/
cards
/
import
Import cards
curl --request POST \
  --url https://app.plugchoice.com/api/v3/sites/{site_uuid}/cards/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "message": "Import completed",
  "created": 3,
  "skipped": 1,
  "errors": [
    {
      "row": 2,
      "name": "Card 2",
      "id_token": "EXISTING123",
      "error": "The id_token has already been taken."
    }
  ]
}

Authorizations

Authorization
string
header
required

See the documentation for more information.

Path Parameters

site_uuid
string
required

Body

multipart/form-data
file
file
required

Must be a file. Must not be greater than 1024 kilobytes.

Response

200 - application/json
message
string
Example:

"Import completed"

created
integer
Example:

3

skipped
integer
Example:

1

errors
object[]
Example:
[
{
"row": 2,
"name": "Card 2",
"id_token": "EXISTING123",
"error": "The id_token has already been taken."
}
]