Preset categories
Duplicate a preset category (deep copy)
Creates a new category owned by the requesting user. Each non-hidden preset in the source category is copied as a new preset owned by the requesting user, with a fresh preset_code. The copy is limited to 50 presets.
Authorization
token_auth AuthorizationBearer <token>
Token-based authentication using access tokens.
In: header
Path Parameters
category_id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://v2.api.piktid.com/preset/categories/string/duplicate" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"category": {
"id": "string",
"name": "string",
"description": "string",
"thumbnail_url": "string",
"visibility": "shared",
"created_by": "string",
"created_at": "string",
"preset_count": 0,
"groups": [
"string"
]
},
"preset_count": 0
}{
"error": "Invalid request",
"detail": [
{
"field": null,
"message": "string",
"position": "query"
}
]
}Empty
Empty
Empty