Skip to main content

Update Design Cues

Update the instruction text of an existing design cue in the authenticated workspace.

Endpoint

POST designCues/update

Authentication

Include your Enterprise API credentials in the request headers:

sivi-api-key: YOUR_API_KEY

Request Body Example

{
"dcId": "abc123",
"instruction": "Use bold typography with even higher contrast"
}

Request Parameters

ParameterTypeRequiredDescription
dcIdStringYesDesign cue ID to update
instructionStringYesUpdated design instruction text
abstractUserIdStringNoUnique identifier for the user (Enterprise/Super API only)

Response

Success Response (200 OK)

{
"status": 200,
"body": {
"designCue": {
"dcId": "abc123",
"wId": "w_abc123",
"bId": "b_s87vFxpfM0R",
"uId": "usr1",
"type": "design",
"instruction": "Use bold typography with even higher contrast",
"addedBy": "system",
"source": "prompt",
"createdOn": 1723300000,
"updatedOn": 1723300200
}
}
}

Response Body Parameters

ParameterTypeDescription
dcIdStringDesign cue identifier
wIdStringWorkspace ID the cue belongs to
bIdStringBrand ID the cue is associated with (or null)
uIdStringUser ID of the creator (or null)
typeStringCue type
instructionStringThe updated design instruction text
addedByStringWho added the cue
sourceStringSource of the cue
createdOnNumberCreation timestamp
updatedOnNumberLast update timestamp

Error Responses

Design Cue Not Found (422 Unprocessable Entity)

{
"status": 422,
"body": {
"message": "Design cue not found: abc123"
}
}

Unauthorized (401 Unauthorized)

{
"status": 401,
"body": {
"message": "Design cue does not belong to this workspace: abc123"
}
}

Authentication Error (401 Unauthorized)

{
"status": 401,
"body": {
"message": "Failed to authenticate request. Please add sivi-api-key header in request"
}
}

Invalid Input (422 Unprocessable Entity)

{
"status": 422,
"body": {
"message": "dcId is required"
}
}

Server Error (500 Internal Server Error)

{
"status": 500,
"body": {
"message": "Server internal error"
}
}

Usage Notes

  • The design cue must belong to the authenticated workspace
  • Only the instruction field can be updated; wId, uId, and createdOn are immutable
  • updatedOn is refreshed automatically on every update