marked_as_done_time parameter in activities API V2

How can I specify the marked_as_done_time parameter when creating a new task activity via the Activity API version 2?

I make a request like this:

{
"participants": [{"person_id": ***, "primary_flag": true}],
"org_id": ***,
"add_time": "2025-10-14T23:29:02Z",
"due_date": "2025-10-20",
"due_time": "15:00",
"type": "task",
"done": true,
"marked_as_done_time": "2025-10-15T23:29:02Z"
}

But I get a validation error

{
"success": false,
"error": "Validation failed: marked_as_done_time: Parameter 'marked_as_done_time' is not allowed for this request",
"code": "ERR_SCHEMA_VALIDATION_FAILED"
}

In Activities API V1, I can easily make the exact same request and create a record with the specified marked_as_done_time. How can I do this in Activities API V2?

PS: I’m importing records, so it’s important for me to specify this parameter when creating them.

1 Like