POST
/
activities
/
import
curl --request POST \
  --url https://api.rallyuxr.com/api/public/v1/activities/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "peopleActivities": [
    {
      "personId": "<string>",
      "activities": [
        {
          "type": "SCREENER_COMPLETED",
          "activityAt": "2023-11-07T05:31:56Z",
          "participantId": "<string>"
        }
      ]
    }
  ]
}'
{
  "message": "<string>",
  "peopleCount": 123,
  "activitiesCount": 123,
  "importId": "<string>",
  "errors": [
    {
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
peopleActivities
object[]
required

An array of person IDs with an array of activities. Max 1000 activities across all people

Response

202
application/json
Incentive search response
message
string
required
peopleCount
number
required

The number of people that activities are being imported for

activitiesCount
number
required

The total number of activities being imported

importId
string
required

A unique identifier for the import, can be used to look up status and will be included in the webhook

errors
object[]

Partial errors that occurred during the import. This follows the same error schema as a 400 error but this list are the only ones that were not imported, the rest were