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

Bulk Operation

Developing
POST
http://127.0.0.1:3000/api/curator/artisans/bulk
Maintainer:Not configured
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:3000/api/curator/artisans/bulk' \
--form 'ids[]="27d174cf-7fac-446c-886a-9c68b92c5e04"' \
--form 'ids[]="75dd3b72-9bf9-4e40-b9cb-965d4331b4fd"' \
--form 'ids[]="4ea2da54-36a4-43d7-88e3-d65eda404a27"' \
--form 'action="activate"'
Response Response Example
{
    "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",
            "archivedAt": null
        }
    ],
    "status": "string",
    "message": "string",
    "code": 0
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params multipart/form-data
ids[]
array[string]
required
An array of Artisan IDs to perform bulk operations on.
Example:
["27d174cf-7fac-446c-886a-9c68b92c5e04","75dd3b72-9bf9-4e40-b9cb-965d4331b4fd","4ea2da54-36a4-43d7-88e3-d65eda404a27"]
action
enum<string> 
required
The action to perfom on the selected Artisans
Allowed values:
deletearchiveunarchiveactivatedeactivate
Example:
activate

Responses

🟢202Accepted
application/json
Body
data
array [object {19}] 
required
id
string 
optional
name
string 
optional
email
string 
optional
phone
string 
optional
avatar
null 
optional
type
string 
optional
description
string 
optional
price
number 
optional
priceRange
array[number]
optional
images
array[string]
optional
curatorId
string 
optional
categoryId
string 
optional
subcategoryId
null 
optional
locationId
string 
optional
isActive
boolean 
optional
isVerified
boolean 
optional
createdAt
string 
optional
updatedAt
string 
optional
archivedAt
null 
optional
status
string 
required
message
string 
required
code
integer 
required
Previous
Toggle Activation
Next
Delete Artisan
Built with