Artisyn API
  1. Artisans
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
      • Create Category
      • Get Category
      • Update Category
      • Delete Category
  • Categories
    • List Categories
      GET
    • Get Category
      GET
  • Curator
    • Artisans
      • List Artisans
        GET
      • Create Artisan
        POST
      • Show Artisan
        GET
      • Update Artisan
        PUT
      • Toggle Activation
        PUT
      • Bulk Operation
        POST
      • Delete Artisan
        DELETE
  • Index
    POST
  1. Artisans

Create Artisan

Developing
POST
http://127.0.0.1:3000/api/curator/artisans
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

🟢201Create Person
application/json
Body

🟠422Parameter Error
🟢201Create Business
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:3000/api/curator/artisans' \
--header 'Authorization: Bearer <token>' \
--form 'name="John Obi"' \
--form 'avatar=@""' \
--form 'images=@""' \
--form 'category_id="1"' \
--form 'email="john.obi@example.com"' \
--form 'phone="+2349098765432"' \
--form 'type="PERSON"' \
--form 'description="A computer programmer specialised in programming computers."' \
--form 'address="881 Malvina Lights"' \
--form 'country="Nigeria"' \
--form 'state="Rivers"' \
--form 'city="Port Harcourt"' \
--form 'price_range="100-500"' \
--form 'price="7000"'
Response Response Example
201 - Example 1
{
    "data": {
        "id": "string",
        "name": "string",
        "email": "string",
        "phone": "string",
        "avatar": null,
        "type": "string",
        "description": "string",
        "price": 0,
        "priceRange": [
            0
        ],
        "images": [
            "string"
        ],
        "curatorId": "string",
        "categoryId": "string",
        "subcategoryId": null,
        "locationId": "string",
        "isActive": true,
        "isVerified": true,
        "createdAt": "string",
        "updatedAt": "string",
        "category": {
            "id": "string",
            "name": "string",
            "description": "string",
            "icon": "string",
            "createdAt": "string",
            "updatedAt": "string"
        },
        "location": {
            "id": "string",
            "address": null,
            "city": "string",
            "state": "string",
            "country": "string",
            "postalCode": null,
            "latitude": 0,
            "longitude": 0,
            "createdAt": "string",
            "updatedAt": "string"
        }
    },
    "status": "string",
    "message": "string",
    "code": 0
}
Modified at 2025-05-19 13:34:16
Previous
List Artisans
Next
Show Artisan
Built with