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 Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:3000/api/curator/artisans/1' \
--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"
        ]
    }
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
artisan_id
string 
required
Example:
1
Body Params application/x-www-form-urlencoded
name
string 
required
Example:
John Obi
avatar
string <binary> | null 
optional
images
string <binary> | null 
optional
category_id
string 
required
Example:
1
email
string 
optional
Example:
john.obi@example.com
phone
string 
optional
Example:
+2349098765432
type
string 
required
Example:
PERSON
description
string 
required
Example:
A computer programmer specialised in programming computers.
address
string  | null 
optional
Address of the entity, required if type is BUSINESS.
Example:
881 Malvina Lights
country
string 
required
Example:
Nigeria
state
string 
required
Example:
Rivers
city
string 
required
Example:
Port Harcourt
price_range
string 
optional
Example:
100-500
price
number 
optional
Example:
7000

Responses

🟠422Parameter Error
application/json
Body
status
string 
required
code
integer 
required
message
string 
required
errors
object 
required
name
array[string]
required
🟢202Accepted
Previous
Show Artisan
Next
Toggle Activation
Built with