# CreateCategory

## Description

Creates a category under the specified parent category id.

## Parameters

| Name    | Value                                                           |
| ------- | --------------------------------------------------------------- |
| paperID | The ID of the iPaper whose publication period should be changed |
| name    | The name of the new category                                    |
| urlName | The name of the category as used in URLs                        |

## Sample Response

```xml
<?xml version="1.0" encoding="utf-8"?>
<result>
  <code><![CDATA[SUCCESS]]></code>
  <message><![CDATA[Category created.]]></message>
  <data>
    <paper id="1240" />
  </data>
</result>
```

## Return Codes

* SUCCESS
* ERROR
* READONLY


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ipaper.io/flipbook-backend-api/paper/create-category.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
