CopyHero

Update Folder

PATCH
/api/v1/product-library/folders/{folder_id}

Rename, move, reorder or pin a folder; only the fields sent change.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

folder_id*Folder Id
Formatuuid

Request Body

application/json
  1. body
name?|null
parent_id?|null
position?|null
pinned?boolean|null

Response Body

Successful Response

application/json
  1. response
id*Id
Formatuuid
name*Name
parent_id*|null
position*Position
pinned*Pinned
product_count*Product Count
created_at*Created At
Formatdate-time
updated_at*Updated At
Formatdate-time
monday_sync?|null
children?array<>
Example Request
curl -X PATCH 'https://app.copyhero.app/api/v1/product-library/folders/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",  "position": 0,  "pinned": true,  "product_count": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "monday_sync": {    "role": "string",    "state": "string",    "binding_id": "5d504e2c-6584-4e34-8583-0863b8c4c0c1",    "group_projection_id": "c8e328c6-53c7-4f01-b456-b0a761672906",    "can_detach_orphan": false  },  "children": [    {}  ]}