coordinista-service

Patch clothing items by ID

Patches a clothing item’s properties. The id parameter specifies which clothing item you want to patch. In this example, the color property is updated with the PATCH method.

URL


{server_url}/clothing/{id}

Properties

Property Name Type Description
name string A descriptive name for the clothing item
type string The clothing item type
color string The clothing item’s color
description string A long description of the clothing item
outfits string An array that contains the outfit resources that a clothing item belongs to
id number A number that represents the clothing items unique record ID

Request headers

Request body

[
    {

        "color": "orange"
    }
]

Return body

[
    {
        "name": "hiking boots",
        "type": "footwear",
        "color": "orange",
        "description": "Waterproof, comfortable",
        "outfits": "mountain hiking outfit",
        "id": "3"
    }
]

Return status

Status value Return status Description
200 Success Requested data updated successfully
404 Error Specified task record not found
ECONNREFUSED N/A Service is offline. Start the service and try again.