Developer zone

Documentation Search

  1. Home
  2. Support
  3. Developer zone

Developer zone

Rest API Documentation

Base URL: https://wp.test/wp-json/CatFolders/v1/public

Token: PNRr30R6sFgfjMZJ22vTgZC5uOO8z3pJIChbsezM

Endpoints

GET FOLDERS

Retrieve the list of folders.

Request

GET {{baseURL}}/folders HTTP/1.1

Authorization: Bearer {{token}}

CREATE A FOLDER

Create a new folder.

Request

POST {{baseURL}}/folders HTTP/1.1

Authorization: Bearer {{token}}

Content-Type: application/json

{

"title": "API Folder1",

"parent": 0

}

SET ATTACHMENTS TO FOLDER

Assign attachments to a specific folder.

Request

POST {{baseURL}}/attachment-to-folder HTTP/1.1

Authorization: Bearer {{token}}

Content-Type: application/json

{

"folderId": "198",

"imgIds": [2387, 2388]

}

DELETE FOLDERS

Delete specific folders.

Request

DELETE {{baseURL}}/folders HTTP/1.1

Authorization: Bearer {{token}}

Content-Type: application/json

{

"ids": [187]

}

Was this article helpful to you? No Yes

How can we help?

Don’t Wait – 30% Off Ends Soon! Use code: BLACKCATFRIDAY2024 👉
Get $70 OFF all plans → Use code: 70CATFOLDERS