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

# Create text items

> Creates a set of text items in a project. Supports plural forms, variant text, variable placeholders, notes, character limits, tags, status, and assignee.



## OpenAPI

````yaml openapi.json post /textItems
openapi: 3.0.0
info:
  version: 1.0.0
  title: Ditto API
  description: Programmatically read and write data in your Ditto workspace.
servers:
  - url: https://api.dittowords.com/v2
security: []
paths:
  /textItems:
    post:
      tags:
        - Text Items
      summary: Create text items
      description: >-
        Creates a set of text items in a project. Supports plural forms, variant
        text, variable placeholders, notes, character limits, tags, status, and
        assignee.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                  description: >-
                    Developer ID of the project the new text items will be added
                    to
                textItems:
                  type: array
                  items:
                    type: object
                    properties:
                      developerId:
                        type: string
                        description: >-
                          Optional preconfigured developer ID for the text item.
                          Must be unique within the workspace. If omitted,
                          system will generate one automatically.
                      text:
                        type: string
                        description: The text item's text value
                      notes:
                        type: string
                        nullable: true
                        description: >-
                          Optional notes for the text item. Use null or omit to
                          leave notes empty.
                      tags:
                        type: array
                        items:
                          type: string
                        description: >-
                          Optional list of tags to assign to the text item. Omit
                          or pass an empty array for no tags.
                      status:
                        type: string
                        minLength: 1
                        description: >-
                          Optional status for the text item (for example:
                          'NONE', 'WIP', 'REVIEW', 'FINAL'). Cannot be empty
                          string. If omitted, defaults to 'NONE'.
                      assignee:
                        type: string
                        format: email
                        description: >-
                          Optional email of the workspace user to assign to this
                          text item.
                      characterLimit:
                        type: number
                        nullable: true
                        minimum: 1
                        description: >-
                          Optional character limit for the text item text. Use
                          null or omit to indicate no limit.
                      integrated:
                        type: boolean
                        description: >-
                          Mark the text item as integrated into development. If
                          omitted, defaults to false.
                      variables:
                        type: array
                        items:
                          type: string
                        description: >-
                          Developer IDs of variables (the `id` field from GET
                          /v2/variables) used in this text item's text, plurals,
                          or variants. Text fields support `{{variable_name}}`
                          placeholders that will be resolved using the variables
                          listed here. Placeholders whose names are not in this
                          list are kept as literal text.
                      plurals:
                        type: array
                        items:
                          type: object
                          properties:
                            form:
                              type: string
                              enum:
                                - one
                                - two
                                - few
                                - many
                                - zero
                                - other
                              description: The plural form
                            text:
                              type: string
                              description: The text for this plural form
                          required:
                            - form
                            - text
                        description: >-
                          Optional plural forms for the text item. The first
                          plural form's text must match the text item's display
                          text. Each form may only appear once.
                      variants:
                        type: array
                        items:
                          type: object
                          properties:
                            variantId:
                              type: string
                              description: Developer ID of the variant
                            text:
                              type: string
                              description: The text for this variant
                            status:
                              type: string
                              minLength: 1
                              description: >-
                                Optional status for the text item variant (for
                                example: 'NONE', 'WIP', 'REVIEW', 'FINAL').
                                Cannot be empty string. If omitted, defaults to
                                'NONE'.
                            assignee:
                              type: string
                              format: email
                              description: >-
                                Optional email of the user to assign to this
                                text item variant.
                            characterLimit:
                              type: number
                              nullable: true
                              minimum: 1
                              description: >-
                                Optional character limit for the text item
                                variant text. Use null or omit to indicate no
                                limit.
                            notes:
                              type: string
                              nullable: true
                              description: >-
                                Optional notes for the text item variant. Use
                                null or omit to leave notes empty.
                            plurals:
                              type: array
                              items:
                                type: object
                                properties:
                                  form:
                                    type: string
                                    enum:
                                      - one
                                      - two
                                      - few
                                      - many
                                      - zero
                                      - other
                                    description: The plural form
                                  text:
                                    type: string
                                    description: The text for this plural form
                                required:
                                  - form
                                  - text
                              description: Optional plural forms for this variant
                          required:
                            - variantId
                            - text
                        description: >-
                          Optional variant text values to set on the text item
                          at creation time. Each variantId must correspond to an
                          existing variant in the workspace.
                    required:
                      - text
                  description: Array of new text items to create
              required:
                - projectId
                - textItems
              example:
                projectId: project-id
                textItems:
                  - text: Hello world
                  - developerId: custom-dev-id
                    text: Custom ID example
                    notes: Shown on the welcome screen
                    characterLimit: 80
                  - text: '{{count}} items in your cart'
                    variables:
                      - count
                    plurals:
                      - form: one
                        text: '{{count}} item in your cart'
                      - form: other
                        text: '{{count}} items in your cart'
                  - text: Hello world
                    developerId: localized-greeting
                    variants:
                      - variantId: french
                        text: Bonjour le monde
      responses:
        '200':
          description: Returns the developer IDs of the created text items
          content:
            application/json:
              schema:
                type: object
                properties:
                  developerIds:
                    type: array
                    items:
                      type: string
                    description: Array of developer IDs for the created text items
                required:
                  - developerIds
                example:
                  developerIds:
                    - hello-world
                    - custom-dev-id
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````