POST/Activities/{activityId}/intake/submissions
Submits the activity's intake: saves any answers sent, refuses while a required question is unanswered, stamps
the submission and re-tests the gate for leaving Draft. Returns the activity's state, when it first left Draft
and the gate. 400 when the activity has no type or its type has no intake form. Needs Activity.Edit on the
activity.
Path Parameters
| Field | Type | Required | Description |
|---|
| activityId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| answers | SubmitActivityIntakeRequestAnswerInfo[] | Optional | |
SubmitActivityIntakeRequestAnswerInfo
| Field | Type | Description |
|---|
| questionId | uuid | |
| value | JsonElement| null | |
Response
| Field | Type | Description |
|---|
| submittedAt | date-time | |
| state | string| null | |
| activatedAt | date-time| null | |
| gate | SubmitActivityIntakeResponseGateInfo | |
SubmitActivityIntakeResponseGateInfo
| Field | Type | Description |
|---|
| met | boolean | |
| missing | SubmitActivityIntakeResponseGateGap[]| null | |
SubmitActivityIntakeResponseGateGap
| Field | Type | Description |
|---|
| kind | string| null | |
| id | uuid| null | |
| name | string| null | |