Skip to main content
PUT
/
colors
/
{id}
Update a color
curl --request PUT \
  --url https://api.rechain.co/public/v1/colors/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form name=Red \
  --form companyId=123e4567-e89b-12d3-a456-426614174000 \
  --form 'pantone=PANTONE 186 C' \
  --form pantoneName=Red \
  --form 'hex=#FF0000' \
  --form yama=R-YM-001 \
  --form 'colorValues={
  "colorFieldId": "123e4567-e89b-12d3-a456-426614174000",
  "content": "Value Content"
}' \
  --form image='@example-file'
"<any>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

ID of color to return

Body

multipart/form-data

Update an existent color

name
string
required
Example:

"Red"

companyId
string<uuid>
required
Example:

"123e4567-e89b-12d3-a456-426614174000"

pantone
string
Example:

"PANTONE 186 C"

pantoneName
string
Example:

"Red"

hex
string
Example:

"#FF0000"

yama
string
Example:

"R-YM-001"

image
file

The photo file to upload

colorValues
object

Response

Successful operation

The response is of type any.