Notca Docs

Update folder

Update a folder by ID for the authenticated user

PATCH
/api/v1/folders/{folderId}
x-api-key<token>

In: header

Path Parameters

folderIdstring
Length1 <= length
name?string
Length1 <= length
desc?string
image?string
price?number
Range0 <= value <= 999999999
slug?string
Match^[a-z0-9-]+$
Length3 <= length <= 100
isOneTimePurchase?boolean
isPublic?boolean
trialDays?integer
Range0 <= value

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://app.notca.co/api/v1/folders/string" \  -H "Content-Type: application/json" \  -d '{    "name": "Updated folder name",    "desc": "Updated description",    "image": "https://example.com/image.png",    "price": 1000,    "slug": "updated-folder",    "isPublic": true  }'
{
  "id": "string",
  "name": "string",
  "desc": "string",
  "image": "string",
  "price": -2147483648,
  "slug": "string",
  "isOneTimePurchase": true,
  "isPublic": true,
  "trialDays": -2147483648,
  "userId": "string",
  "createdAt": "2019-08-24",
  "updatedAt": "2019-08-24"
}
{
  "error": "string",
  "details": null
}
{
  "error": "string",
  "details": null
}
{
  "error": "string",
  "details": null
}
{
  "error": "string",
  "details": null
}