> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transparencyhubnetwork.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create task

> Legacy task list (Admin → Task).

Legacy task list (Admin → Task). `member_id` is the assignee. Create requires a name; an assignee must be an active member of the chapter.

**Required scope:** `tasks:write`

```json Request theme={null}
{
  "name": "Book the hall",
  "description": "Confirm AGM venue",
  "due_date": "2026-10-01T00:00:00Z",
  "member_id": 42
}
```

```json 201 theme={null}
{
  "status": "success",
  "data": {
    "id": 15,
    "name": "Book the hall",
    "description": "Confirm AGM venue",
    "progress": 40,
    "member_id": 42,
    "createdby": 7,
    "due_date": "2026-10-01T00:00:00Z",
    "createddate": "2026-09-01T00:00:00Z",
    "lastmodifieddate": null
  }
}
```


## OpenAPI

````yaml POST /v1/tasks
openapi: 3.0.3
info:
  title: Transparency Hub Public API
  version: 1.7.0
  description: Key-authenticated REST API for association and chapter integrations.
servers:
  - url: https://api.transparencyhubnetwork.ai/api
  - url: https://testapi.transparencyhubnetwork.ai/api
    description: Test
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/tasks:
    post:
      summary: Create task
      description: Requires scope `tasks:write`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TaskCreate'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    $ref: '#/components/schemas/Task'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    TaskCreate:
      type: object
      required:
        - name
      properties:
        chapter_id:
          type: integer
        name:
          type: string
        description:
          type: string
        due_date:
          type: string
          format: date-time
        member_id:
          type: integer
          description: Assignee; must be an active member of the chapter
        progress:
          type: integer
          minimum: 0
          maximum: 100
          default: 0
    Task:
      type: object
      properties:
        id:
          type: integer
          nullable: true
        name:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        progress:
          type: integer
          nullable: true
        member_id:
          type: integer
          nullable: true
        createdby:
          type: integer
          nullable: true
        due_date:
          type: string
          format: date-time
          nullable: true
        createddate:
          type: string
          format: date-time
          nullable: true
        lastmodifieddate:
          type: string
          format: date-time
          nullable: true
        member_name:
          type: string
          nullable: true
          description: Display name of the member.
    Error:
      type: object
      required:
        - status
        - code
        - message
      properties:
        status:
          type: string
          enum:
            - error
        code:
          type: string
        message:
          type: string
        details:
          type: object
  responses:
    ValidationError:
      description: validation_error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: insufficient_scope or chapter_forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: rate_limited; see Retry-After
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.