# Swapcard

> Manage Swapcard events: attendees, speakers, sessions, exhibitors and groups.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/swapcard

## Actions

### Add a person

Add a person to an event, such as an attendee or a speaker.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Email (`email`, text): Their email address, unique in the community. It can't be changed later.
- First name (`first_name`, text, required): The person's first name.
- Last name (`last_name`, text, required): The person's last name.
- Job title (`job_title`, text): Their job title.
- Organization (`organization`, text): Their organization.
- Photo URL (`photo_url`, text): A public link to their photo.
- Website URL (`website_url`, text): Their website.
- Biography (`biography`, text): A short biography.
- Mobile phone (`mobile_phone`, text): Their mobile number.
- Visible (`is_visible`, true/false): Show them in the event's attendee list.
- Can sign in (`is_user`, true/false): Create an account they can sign in with (needs an email address). Off adds a profile only.
- Groups (`group_ids`, list): Groups to put them in.
- Your ID (`client_id`, text): Your own id for them, such as one from your registration system.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "person": {
      "biography": "example",
      "clientIds": [
        "example"
      ],
      "createdAt": "example",
      "email": "example",
      "firstName": "example",
      "groups": [
        {
          "id": "example",
          "name": "example"
        }
      ],
      "id": "example",
      "isVisible": true,
      "jobTitle": "example",
      "lastName": "example",
      "organization": "example",
      "photoUrl": "example",
      "type": "example",
      "updatedAt": "example",
      "userId": "example",
      "websiteUrl": "example"
    }
  }
}
```

### Add an exhibitor

Add an exhibitor to an event.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Name (`name`, text, required): The exhibitor's name.
- Description (`description`, text): What the exhibitor does.
- Email (`email`, text): The exhibitor's contact email address.
- Website URL (`website_url`, text): The exhibitor's website.
- Logo URL (`logo_url`, text): A public link to the exhibitor's logo.
- Group (`group_id`, text): The group the exhibitor belongs to.
- Your ID (`client_id`, text): Your own id for the exhibitor.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "exhibitor": {
      "clientIds": [
        "example"
      ],
      "createdAt": "example",
      "description": "example",
      "email": "example",
      "id": "example",
      "logoUrl": "example",
      "name": "example",
      "totalMembers": 1,
      "type": "example",
      "updatedAt": "example",
      "websiteUrl": "example"
    }
  }
}
```

### Create a group

Create a group in an event, to give people or exhibitors the same access.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Name (`name`, text, required): The group's name.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "group": {
      "exhibitorCount": 1,
      "id": "example",
      "isDefault": true,
      "name": "example",
      "peopleCount": 1
    }
  }
}
```

### Create a session

Add a session to an event's agenda.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Title (`title`, text, required): The session's title.
- Description (`description`, text): What the session is about.
- Starts at (`begins_at`, date and time): When the session starts.
- Ends at (`ends_at`, date and time): When the session ends.
- Max seats (`max_seats`, number): How many people can register. At least 0.
- Private (`is_private`, true/false): Only invited people see the session.
- Hide attendees (`hide_attendees`, true/false): Hide who's attending.
- Banner URL (`banner_url`, text): A public link to the session's banner image.
- Exhibitors (`exhibitor_ids`, list): Exhibitors linked to the session.
- Language (`language`, text): The language of the title and description. Leave empty for the event's language. One of: `en_US` (En us), `fr_FR` (Fr fr), `de_DE` (De de), `es_ES` (Es es), `it_IT` (It it), `pt_BR` (Pt br), `pt_PT` (Pt pt), `nl_NL` (Nl nl), `fr_CA` (Fr ca), `ja_JP` (Ja jp), and 10 more.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "session": {
      "beginsAt": "example",
      "categories": [
        "example"
      ],
      "clientIds": [
        "example"
      ],
      "createdAt": "example",
      "description": "example",
      "endsAt": "example",
      "format": "example",
      "id": "example",
      "isPrivate": true,
      "maxSeats": 1,
      "place": "example",
      "title": "example",
      "totalAttendees": 1,
      "type": "example",
      "updatedAt": "example"
    }
  }
}
```

### Delete a session

Delete a session from an event's agenda.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Session (`session_id`, text, required): The session.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "deletedIds": [
      "example"
    ]
  }
}
```

### Delete an exhibitor

Delete an exhibitor from Swapcard, in every event of the community.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Exhibitor (`exhibitor_id`, text, required): The exhibitor.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "deletedIds": [
      "example"
    ]
  }
}
```

### Get a person

Get one person of an event by their id.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Person ID (`person_id`, text, required): The person's id in the event (an event person id).

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "person": {
      "biography": "example",
      "clientIds": [
        "example"
      ],
      "createdAt": "example",
      "email": "example",
      "firstName": "example",
      "groups": [
        {
          "id": "example",
          "name": "example"
        }
      ],
      "id": "example",
      "isVisible": true,
      "jobTitle": "example",
      "lastName": "example",
      "organization": "example",
      "photoUrl": "example",
      "type": "example",
      "updatedAt": "example",
      "userId": "example",
      "websiteUrl": "example"
    }
  }
}
```

### Get an event

Get an event's dates, address, language, totals and community.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "event": {
      "address": {
        "city": "example",
        "country": "example",
        "place": "example",
        "state": "example",
        "street": "example",
        "zipCode": "example"
      },
      "beginsAt": "example",
      "community": {
        "id": "example",
        "name": "example"
      },
      "createdAt": "example",
      "endsAt": "example",
      "eventStatus": "example",
      "htmlDescription": "example",
      "id": "example",
      "isLive": true,
      "language": "example",
      "slug": "example",
      "timezone": "example",
      "title": "example",
      "totalExhibitors": 1,
      "totalPlannings": 1,
      "totalSpeakers": 1,
      "updatedAt": "example"
    }
  }
}
```

### List events

List the events the key can see.

**Inputs**

- When (`time_status`, text): Only upcoming, ongoing or past events. One of: `UPCOMING`, `ON_GOING` (On going), `PAST`.
- Slug (`slug`, text): Only the event with this slug: the event's name as its web address shows it.
- Page (`page`, number): Which page to get, from 1. At least 1.
- Page size (`page_size`, number): How many events per page, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "events": [
      {
        "address": {
          "city": "example",
          "country": "example",
          "place": "example",
          "state": "example",
          "street": "example",
          "zipCode": "example"
        },
        "beginsAt": "example",
        "community": {
          "id": "example",
          "name": "example"
        },
        "createdAt": "example",
        "endsAt": "example",
        "eventStatus": "example",
        "htmlDescription": "example",
        "id": "example",
        "isLive": true,
        "language": "example",
        "slug": "example",
        "timezone": "example",
        "title": "example",
        "totalExhibitors": 1,
        "totalPlannings": 1,
        "totalSpeakers": 1,
        "updatedAt": "example"
      }
    ]
  }
}
```

### List exhibitors

List an event's exhibitors.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Search (`search`, text): Text to find in the exhibitors.
- Updated since (`updated_since`, date and time): Only exhibitors changed since this time.
- Sort by (`sort_by`, text): What to sort by. One of: `NAME`, `CREATED_AT` (Created at), `UPDATED_AT` (Updated at).
- Sort order (`sort_order`, text): Which way to sort. One of: `ASC`, `DESC`.
- Page size (`page_size`, number): How many exhibitors to get, up to 200. From 1 to 200.
- After cursor (`after`, text): Get the next page: the pageInfo.endCursor of the page before.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "exhibitors": [
      {
        "clientIds": [
          "example"
        ],
        "createdAt": "example",
        "description": "example",
        "email": "example",
        "id": "example",
        "logoUrl": "example",
        "name": "example",
        "totalMembers": 1,
        "type": "example",
        "updatedAt": "example",
        "websiteUrl": "example"
      }
    ],
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "totalCount": 1
  }
}
```

### List groups

List an event's groups (such as attendees, speakers, exhibitors) with how many are in each.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "groups": [
      {
        "exhibitorCount": 1,
        "id": "example",
        "isDefault": true,
        "name": "example",
        "peopleCount": 1
      }
    ]
  }
}
```

### List people

List the people (attendees, speakers and others) of an event, with search and filters.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Search (`search`, text): Text to find in people's names and details.
- Emails (`emails`, list): Only people with these email addresses.
- Groups (`group_ids`, list): Only people in these groups.
- Updated since (`updated_since`, date and time): Only people changed since this time.
- Sort by (`sort_by`, text): What to sort by. One of: `CREATED_AT` (Created at), `UPDATED_AT` (Updated at), `FIRST_NAME` (First name), `LAST_NAME` (Last name), `JOB_TITLE` (Job title), `REGISTERED_AT` (Registered at).
- Sort order (`sort_order`, text): Which way to sort. One of: `ASC`, `DESC`.
- Page size (`page_size`, number): How many people to get, up to 200. From 1 to 200.
- After cursor (`after`, text): Get the next page: the pageInfo.endCursor of the page before.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "people": [
      {
        "biography": "example",
        "clientIds": [
          "example"
        ],
        "createdAt": "example",
        "email": "example",
        "firstName": "example",
        "groups": [
          {
            "id": "example",
            "name": "example"
          }
        ],
        "id": "example",
        "isVisible": true,
        "jobTitle": "example",
        "lastName": "example",
        "organization": "example",
        "photoUrl": "example",
        "type": "example",
        "updatedAt": "example",
        "userId": "example",
        "websiteUrl": "example"
      }
    ],
    "totalCount": 1
  }
}
```

### List sessions

List the sessions of an event's agenda.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Search (`search`, text): Text to find in the sessions.
- Updated since (`updated_since`, date and time): Only sessions changed since this time.
- Sort by (`sort_by`, text): What to sort by. One of: `BEGINS_AT` (Begins at), `CREATED_AT` (Created at), `ENDS_AT` (Ends at), `TITLE`, `PLACE`, `TYPE`.
- Sort order (`sort_order`, text): Which way to sort. One of: `ASC`, `DESC`.
- Page size (`page_size`, number): How many sessions to get, up to 200. From 1 to 200.
- After cursor (`after`, text): Get the next page: the pageInfo.endCursor of the page before.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "sessions": [
      {
        "beginsAt": "example",
        "categories": [
          "example"
        ],
        "clientIds": [
          "example"
        ],
        "createdAt": "example",
        "description": "example",
        "endsAt": "example",
        "format": "example",
        "id": "example",
        "isPrivate": true,
        "maxSeats": 1,
        "place": "example",
        "title": "example",
        "totalAttendees": 1,
        "type": "example",
        "updatedAt": "example"
      }
    ],
    "totalCount": 1
  }
}
```

### Remove a person

Remove a person from an event.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Person ID (`person_id`, text, required): The person's id in the event (an event person id).

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "deletedIds": [
      "example"
    ]
  }
}
```

### Update a person

Change a person's details. Only the fields you fill in change.

**Inputs**

- Person ID (`person_id`, text, required): The person's id in the event (an event person id).
- Email (`email`, text): Their email address.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name.
- Job title (`job_title`, text): Their job title.
- Organization (`organization`, text): Their organization.
- Photo URL (`photo_url`, text): A public link to their photo.
- Website URL (`website_url`, text): Their website.
- Biography (`biography`, text): A short biography.
- Mobile phone (`mobile_phone`, text): Their mobile number.
- Visible (`is_visible`, true/false): Show them in the event's attendee list.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "person": {
      "biography": "example",
      "clientIds": [
        "example"
      ],
      "createdAt": "example",
      "email": "example",
      "firstName": "example",
      "groups": [
        {
          "id": "example",
          "name": "example"
        }
      ],
      "id": "example",
      "isVisible": true,
      "jobTitle": "example",
      "lastName": "example",
      "organization": "example",
      "photoUrl": "example",
      "type": "example",
      "updatedAt": "example",
      "userId": "example",
      "websiteUrl": "example"
    }
  }
}
```

### Update a session

Change a session. Only the fields you fill in change.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Session (`session_id`, text, required): The session.
- Title (`title`, text): The session's title.
- Description (`description`, text): What the session is about.
- Starts at (`begins_at`, date and time): When the session starts.
- Ends at (`ends_at`, date and time): When the session ends.
- Max seats (`max_seats`, number): How many people can register. At least 0.
- Private (`is_private`, true/false): Only invited people see the session.
- Hide attendees (`hide_attendees`, true/false): Hide who's attending.
- Banner URL (`banner_url`, text): A public link to the session's banner image.
- Exhibitors (`exhibitor_ids`, list): Exhibitors linked to the session.
- Language (`language`, text): The language of the title and description. Leave empty for the event's language. One of: `en_US` (En us), `fr_FR` (Fr fr), `de_DE` (De de), `es_ES` (Es es), `it_IT` (It it), `pt_BR` (Pt br), `pt_PT` (Pt pt), `nl_NL` (Nl nl), `fr_CA` (Fr ca), `ja_JP` (Ja jp), and 10 more.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "session": {
      "beginsAt": "example",
      "categories": [
        "example"
      ],
      "clientIds": [
        "example"
      ],
      "createdAt": "example",
      "description": "example",
      "endsAt": "example",
      "format": "example",
      "id": "example",
      "isPrivate": true,
      "maxSeats": 1,
      "place": "example",
      "title": "example",
      "totalAttendees": 1,
      "type": "example",
      "updatedAt": "example"
    }
  }
}
```

### Update an exhibitor

Change an exhibitor's details. Only the fields you fill in change.

**Inputs**

- Event (`event_id`, text, required): The Swapcard event.
- Exhibitor (`exhibitor_id`, text, required): The exhibitor.
- Name (`name`, text): The exhibitor's name.
- Description (`description`, text): What the exhibitor does.
- Email (`email`, text): The exhibitor's contact email address.
- Website URL (`website_url`, text): The exhibitor's website.
- Logo URL (`logo_url`, text): A public link to the exhibitor's logo.
- Group (`group_id`, text): The group the exhibitor belongs to.

**Outputs**

- `data` (object): The response from Swapcard.

**Example output**

```json
{
  "data": {
    "exhibitor": {
      "clientIds": [
        "example"
      ],
      "createdAt": "example",
      "description": "example",
      "email": "example",
      "id": "example",
      "logoUrl": "example",
      "name": "example",
      "totalMembers": 1,
      "type": "example",
      "updatedAt": "example",
      "websiteUrl": "example"
    }
  }
}
```
