# Create category service **POST /V1/categories** Create category service ## Servers - https://magento2.winkelstraat.mac/rest/all: https://magento2.winkelstraat.mac/rest/all () ## Parameters ### Body: (object) - **category** (object) Category data interface. ## Responses ### 200 200 Success. #### Body: (object) - **id** (integer) Category id. - **parent_id** (integer) Parent category ID - **name** (string) Category name - **is_active** (boolean) Whether category is active - **position** (integer) Category position - **level** (integer) Category level - **children** (string) Children ids comma separated. - **created_at** (string) Category creation date and time. - **updated_at** (string) Category last update date and time. - **path** (string) Category full path. - **available_sort_by** (array[string]) Available sort by for category. - **include_in_menu** (boolean) Category is included in menu. - **extension_attributes** (object) ExtensionInterface class for @see \Magento\Catalog\Api\Data\CategoryInterface - **custom_attributes** (array[object]) Interface for custom attribute value. ### 401 401 Unauthorized #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### 400 400 Bad Request #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### default Unexpected error #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace [Powered by Bump.sh](https://bump.sh)