---
title: "TaskSubmission"
url: "https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a/schemas/TaskSubmission"
---

> Full API specification: https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a.md

# TaskSubmission

The latest answer at one position: slotKey, with fieldKey for a section slot's field and entryId for a repeatable section's entry.

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: AgentSync Platform API
  version: 0.0.1
servers:
  - url: https://api.{environment}.agentsync.io/platform
    description: AgentSync API gateway
    variables:
      environment:
        default: sandbox
        enum:
          - sandbox
components:
  schemas:
    SectionEntryId:
      type: string
      description: The ID of one entry of a task's repeatable section, a TypeID with
        the prefix sectionentry.
      pattern: ^sectionentry_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: sectionentry_01h455vb4pex5vsknk084sn02q
    PersonId:
      type: string
      description: A person's ID, a TypeID with the prefix person.
      pattern: ^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: person_01h455vb4pex5vsknk084sn02q
    TaskFile:
      type: object
      description: A file uploaded to answer a slot of a task. The bytes are not part of it.
      required:
        - name
        - contentType
        - sizeBytes
        - sha256
      properties:
        name:
          type: string
          description: The file's name as uploaded.
          example: license.pdf
        contentType:
          type: string
          description: The file's media type.
          example: application/pdf
        sizeBytes:
          type: integer
          format: int64
          description: The file's size in bytes.
          example: 48213
        sha256:
          type: string
          description: The hex SHA-256 of the file's bytes.
          example: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
      example:
        name: license.pdf
        contentType: application/pdf
        sizeBytes: 48213
        sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
    TaskSubmission:
      type: object
      description: "The latest answer at one position: slotKey, with fieldKey for a
        section slot's field and entryId for a repeatable section's entry."
      required:
        - slotKey
        - performer
        - value
      properties:
        slotKey:
          type: string
          description: The key of the slot answered.
          example: residentState
        fieldKey:
          type: string
          description: The member field answered. Absent unless the slot is a section.
          example: addressLine1
        entryId:
          $ref: "#/components/schemas/SectionEntryId"
        performer:
          type: object
          description: Who gave the answer. personId names the person who answered; it is
            absent for system, and for a person the requirement set's rules hide
            from your organization.
          required:
            - kind
          properties:
            kind:
              type: string
              description: person for an answer a person gave; system for one filled in from
                the producer's record.
              enum:
                - person
                - system
              example: person
            personId:
              $ref: "#/components/schemas/PersonId"
        value:
          type: object
          description: "The answer. kind says which field carries it: inline the answer
            itself, file a description of an uploaded file. prefilled and masked
            carry neither: a prefilled answer stays in the producer's record,
            and a sensitive answer is never returned."
          required:
            - kind
          properties:
            kind:
              type: string
              description: inline, file, prefilled or masked.
              enum:
                - inline
                - file
                - prefilled
                - masked
              example: inline
            inline:
              description: The answer as given, any JSON value. Present only for inline.
              example: CO
            file:
              $ref: "#/components/schemas/TaskFile"
              description: The uploaded file. Present only for file; the bytes are not
                returned. GET /v1/tasks/{id}/files/{slot} returns a link to
                them.
      example:
        slotKey: ssn
        performer:
          kind: person
          personId: person_01h455vb4pex5vsknk084sn02q
        value:
          kind: masked
```
