Artisyn API
  1. Categories
Artisyn API
  • INTRODUCTION
  • Auth
    • OAUTH
      • Google
      • Google Callback
    • Login
      POST
    • Register
      POST
    • Verify Account
      PUT
    • Logout
      DELETE
    • Forgot Password
      POST
    • Reset Password
      PUT
  • Admin
    • Categories
      • List Categories
        GET
      • Create Category
        POST
      • Get Category
        GET
      • Update Category
        PUT
      • Delete Category
        DELETE
  • Categories
    • List Categories
      GET
    • Get Category
      GET
  • Curator
    • Artisans
      • List Artisans
      • Create Artisan
      • Show Artisan
      • Update Artisan
      • Toggle Activation
      • Bulk Operation
      • Delete Artisan
  • Index
    POST
  1. Categories

Create Category

Developing
POST
http://127.0.0.1:3000/api/admin/categories
Maintainer:Not configured

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params multipart/form-data

Responses

🟢201Created
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:3000/api/admin/categories' \
--header 'Authorization: Bearer <token>' \
--form 'name="{{$person.jobType}}"' \
--form 'description="{{$lorem.sentence}}"' \
--form 'icon="fas person"'
Response Response Example
{
    "data": {
        "id": "string",
        "name": "string",
        "description": "string",
        "icon": "string",
        "createdAt": "string",
        "updatedAt": "string"
    },
    "status": "string",
    "message": "string",
    "code": 0
}
Modified at 2025-05-16 18:51:00
Previous
List Categories
Next
Get Category
Built with