---
title: "Create a user role"
method: POST
path: "/user-roles"
tags: ["User Roles"]
---

# Create a user role

`POST /user-roles`

## Request

- Base URL: `https://api.presscart.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.presscart.com/user-roles`
- Auth: HTTP bearer

Create a new user role.

## Request body

- object
  - `name` string, required

## Response `201`

UserRole created successfully

- UserRole
  - `id` string, uuid, required
  - `name` string, required
  - `created_at` union, required
    - string, nullable
    - string
    - unknown
  - `updated_at` union, required
    - string, nullable
    - string
    - unknown
  - `deleted_at` union, required
    - string, nullable
    - string
    - unknown

---

[API](https://skmtc.dev/presscart/apis/presscart-prod-api.md) · [All operations](https://skmtc.dev/presscart/apis/presscart-prod-api/llms.txt) · [OpenAPI document](https://skmtc.dev/presscart/apis/presscart-prod-api/revisions/2154581d845e?raw)
