Skip to content

Ingest Motion

POST
/users/{user_id}/motion-intervals
curl --request POST \
--url https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/motion-intervals \
--header 'Content-Type: application/json' \
--data '{ "intervals": [ { "ended_at": "2026-04-15T12:00:00Z", "mode": "automotive", "started_at": "2026-04-15T12:00:00Z" } ] }'

Bulk-ingest automotive motion intervals from Core Motion history. Idempotent on (user, started_at). Auth: the caller’s token must match user_id.

user_id
required
User Id
string format: uuid
Media typeapplication/json
MotionIntervalBatchIngest
object
intervals
required
Intervals
Array<object>
<= 5000 items
MotionIntervalIngest
object
ended_at
required
Ended At
string format: date-time
mode
Mode
string
default: automotive
started_at
required
Started At
string format: date-time

Successful Response

Media typeapplication/json
MotionIntervalIngestResult
object
created
required
Created
integer
skipped
required
Skipped
integer
Examplegenerated
{
"created": 1,
"skipped": 1
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}