Create Category

Create Category API endpoint for Sweeppea. POST /files/categories. Complete documentation with code examples in cURL, JavaScript, and Python.

POST /api/v3/files/categories

Description

This endpoint allows you to create category. Use this to manage your files & categories data programmatically through the Sweeppea API.

Code Examples

curl -X POST "https://api-v3.sweeppea.com/files/categories" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "key": "value", "name": "example" }'

Response

200 OK

{ "success": true, "data": {}, "message": "Operation completed successfully" }