---
title: "Create servicenotices for specified customerarticles based on what would be selected by default when creating servicenotices via UI. Returns success status for each customerarticle"
method: POST
path: "/servicenotification/autocreate"
tags: ["ServiceNotifications"]
---

# Create servicenotices for specified customerarticles based on what would be selected by default when creating servicenotices via UI. Returns success status for each customerarticle

`POST /servicenotification/autocreate`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/servicenotification/autocreate`
- Auth: HTTP bearer

## Request body

- AutoCreateServiceNotices
  - `content` number[]: Array of customer article ids
  - `protect` boolean: only allow to add servicenotices to customer articles that have no servicenotices beforehand
  - `useoriginaldate` boolean: Use the latest selling date from each customer article as the origin date instead of using the date of today. Only servicenotifications that are on dates after today are generated

## Response `200`

Attempted to create servicenotices for the specified customerarticles. The result show the success status for each customerarticle

- AutoCreateServiceNoticesResponse: Responses for autocreating for each customerarticle
  - `content` AutoCreateServiceNoticesResponseItem[]: Array of responses with success status
    - `id` integer: customer article id
    - `success` boolean: true if success, false if it failed to create servicenotices
    - `message` string, nullable: Exception message of a failed creation of servicenotices

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
