---
title: "POST /variantArticle"
method: POST
path: "/variantArticle"
tags: ["variantArticle"]
---

# POST /variantArticle

`POST /variantArticle`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/variantArticle`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/variantArticle/post.ts> (a function with typed inputs; its response is checked against the schema)

create a variantArticle

## Query parameters

- `dryRun` boolean

## Request body

- VariantArticle
  - `id` string
  - `version` string
  - `createdDate` integer
  - `lastModifiedDate` integer
  - `primaryArticleId` string
  - `variantArticleName` string
  - `variantArticleNumber` string, required
  - `variants` VariantArticleVariantWithoutReference[]
    - `id` string
    - `version` string
    - `articleId` string
    - `attributeOptions` OnlyId[]
      - `id` string
    - `createdDate` integer
    - `lastModifiedDate` integer
    - `positionNumber` integer

## Response `201`

variantArticle create response

- VariantArticle
  - `id` string
  - `version` string
  - `createdDate` integer
  - `lastModifiedDate` integer
  - `primaryArticleId` string
  - `variantArticleName` string
  - `variantArticleNumber` string, required
  - `variants` VariantArticleVariantWithoutReference[]
    - `id` string
    - `version` string
    - `articleId` string
    - `attributeOptions` OnlyId[]
      - `id` string
    - `createdDate` integer
    - `lastModifiedDate` integer
    - `positionNumber` integer

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/variantArticle/post.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
