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

Update Artisan

Developing
PUT
http://127.0.0.1:3000/api/curator/artisans/{artisan_id}
Maintainer:Not configured

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/x-www-form-urlencoded

Responses

🟠422Parameter Error
application/json
Body

🟢202Accepted
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:3000/api/curator/artisans/1' \
--header 'Authorization: Bearer <token>' \
--data-urlencode 'name=John Obi' \
--data-urlencode 'avatar=' \
--data-urlencode 'images=' \
--data-urlencode 'category_id=1' \
--data-urlencode 'email=john.obi@example.com' \
--data-urlencode 'phone=+2349098765432' \
--data-urlencode 'type=PERSON' \
--data-urlencode 'description=A computer programmer specialised in programming computers.' \
--data-urlencode 'address=881 Malvina Lights' \
--data-urlencode 'country=Nigeria' \
--data-urlencode 'state=Rivers' \
--data-urlencode 'city=Port Harcourt' \
--data-urlencode 'price_range=100-500' \
--data-urlencode 'price=7000'
Response Response Example
422 - Example 1
{
    "status": "string",
    "code": 0,
    "message": "string",
    "errors": {
        "name": [
            "string"
        ]
    }
}
Modified at 2025-05-19 14:44:24
Previous
Show Artisan
Next
Toggle Activation
Built with