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

# Create a task type

> Creates a task type. Administrator access is required.



## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/activity_types
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/activity_types:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Task Types
      summary: Create a task type
      description: Creates a task type. Administrator access is required.
      operationId: create-task-type
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/activity_type_create_update_payload'
            example:
              activity_type:
                name: Follow-up call
                color: '12'
                active: true
      responses:
        '201':
          description: Task type created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/activity_type'
              example:
                id: 7
                name: Follow-up call
                color: '12'
                active: true
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Unauthorized
        '403':
          description: Tasks are disabled or administrator access is required.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Forbidden
        '422':
          description: Validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    activity_type_create_update_payload:
      type: object
      required:
        - activity_type
      properties:
        activity_type:
          type: object
          required:
            - name
            - color
          properties:
            name:
              type: string
              description: Unique task type name within the account.
              example: Follow-up call
            color:
              type: string
              enum:
                - '1'
                - '2'
                - '3'
                - '4'
                - '5'
                - '6'
                - '7'
                - '8'
                - '9'
                - '10'
                - '11'
                - '12'
                - '13'
                - '14'
                - '15'
                - '16'
                - '17'
                - '18'
                - '19'
                - '20'
                - '21'
                - '22'
              description: Google Calendar palette color identifier.
              example: '12'
            active:
              type: boolean
              default: true
              description: Whether the task type can be selected for new tasks.
    activity_type:
      type: object
      required:
        - id
        - name
        - color
        - active
      properties:
        id:
          type: integer
          description: Unique task type identifier.
          example: 7
        name:
          type: string
          description: Display name of the task type.
          example: Follow-up call
        color:
          type: string
          enum:
            - '1'
            - '2'
            - '3'
            - '4'
            - '5'
            - '6'
            - '7'
            - '8'
            - '9'
            - '10'
            - '11'
            - '12'
            - '13'
            - '14'
            - '15'
            - '16'
            - '17'
            - '18'
            - '19'
            - '20'
            - '21'
            - '22'
          description: >-
            Google Calendar palette color identifier used to identify tasks of
            this type.
          example: '12'
        active:
          type: boolean
          description: Whether the task type is available when creating tasks.
          example: true
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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