Skip to main content
PUT
/
api
/
size-curve-targets
/
{id}
Upsert a size curve target by scopeValue
curl --request PUT \
  --url https://app.solya.app/api/size-curve-targets/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rows": [
    {
      "sizeId": "size-s",
      "targetPct": 40
    },
    {
      "sizeId": "size-m",
      "targetPct": 35
    },
    {
      "sizeId": "size-l",
      "targetPct": 25
    }
  ]
}
'
{
  "id": "row-uuid-1",
  "organizationId": "org-uuid-123",
  "rows": [
    {
      "sizeId": "size-s",
      "targetPct": 40
    },
    {
      "sizeId": "size-m",
      "targetPct": 35
    },
    {
      "sizeId": "size-l",
      "targetPct": 25
    }
  ],
  "scope": "BRAND",
  "scopeValue": "brand-uuid-aaa",
  "updatedAt": "2026-06-07T12:00:00.000Z"
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Path Parameters

id
string
required

scopeValue (brand id for BRAND scope)

Minimum string length: 1

Body

application/json
rows
object[]
required
Required array length: 1 - 50 elements
scope
enum<string>
default:BRAND
Available options:
BRAND,
CATEGORY,
SEASON

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true