Update a Collection

Endpoint to update a particular collection

Update Collection

PATCH {{URL}}/api/v1/collections/:collection_id

This endpoint allows a designer/admin to update a single collection.

Path Parameters

Name
Type
Description

collection_id

string

The Id of the catalog to update.

Headers

Name
Type
Description

Authentication

string

Authentication token to track down who is emptying our stocks.

Request Body

Name
Type
Description

name

string

The updated name of the catalog

{
    "status": "success",
    "message": "Collection updated successfully",
    "results": 1,
    "data": {
        "looks": [
            "61320f1dfcfe461f74c88184",
            "6132112fff2fad355444e231",
            "61321156ff2fad355444e23a",
            "61321a5bdf3f2b259429d773",
            "61321a5ddf3f2b259429d778",
            "61321a5fdf3f2b259429d77d",
            "61321a60df3f2b259429d782",
            "61321a62df3f2b259429d787"
        ],
        "published": false,
        "createdAt": "2021-08-28T20:49:12.603Z",
        "coverPhoto": "",
        "_id": "612aa3583796d6002360b54b",
        "name": "collection 1",
        "designer": "612a1ff44089de0023703c33",
        "description": "Lions are the most Social Big cats, the African Lion",
        "slug": "collection-1",
        "__v": 0,
        "updatedAt": "2021-09-03T12:51:47.373Z"
    }
}

Last updated

Was this helpful?