Skip to main content

Update Dimension Set

Update an existing dimension set in the authenticated workspace. Only the fields provided in the request will be updated. Only USER dimension sets can be updated; SYSTEM sets are read-only.

Endpoint

POST dimensionSet/update

Authentication

Include your Enterprise API credentials in the request headers:

sivi-api-key: YOUR_API_KEY

Request Body Example

{
"bSDId": "bsd_abc123",
"name": "Updated Banner Set",
"sizes": [
{
"dimension": { "width": 1200, "height": 628 },
"medium": "displayAds",
"mediumType": "displayAds-leaderboard"
}
]
}

Request Parameters

ParameterTypeRequiredDescription
bSDIdStringYesDimension set ID to update
sizesArrayNoReplaces the existing sizes if provided (min 1)
sizes[].dimensionObjectYesSize dimensions
sizes[].dimension.widthNumberYesWidth in pixels (must be > 0)
sizes[].dimension.heightNumberYesHeight in pixels (must be > 0)
sizes[].mediumStringNoMedium type (e.g. displayAds). Defaults to custom
sizes[].mediumTypeStringNoMedium subtype (e.g. displayAds-half-page-ad). Defaults to custom
defaultSizeIdStringNoThe default size ID. If the current default is removed from sizes, it is reset to the first size's sId
nameStringNoUpdated display name
abstractUserIdStringNoUnique identifier for the user (Enterprise/Super API only)

Response

Success Response (200 OK)

{
"status": 200,
"body": {
"dimensionSet": {
"bSDId": "bsd_abc123",
"wId": "w_abc123",
"system": "USER",
"name": "Updated Banner Set",
"defaultSizeId": "s_ghi789",
"sizes": [
{
"sId": "s_ghi789",
"dimension": { "width": 1200, "height": 628 },
"medium": "displayAds",
"mediumType": "displayAds-leaderboard"
}
],
"createdOn": 1723300000,
"updatedOn": 1723300200
}
}
}

Response Body Parameters

ParameterTypeDescription
bSDIdStringDimension set identifier
wIdStringWorkspace ID the set belongs to
systemStringUSER or SYSTEM
nameStringDisplay name of the dimension set
defaultSizeIdStringThe default size ID within the set
sizesArrayList of size definitions
sizes[].sIdStringSize identifier
sizes[].dimensionObjectSize dimensions
sizes[].dimension.widthNumberWidth in pixels
sizes[].dimension.heightNumberHeight in pixels
sizes[].mediumStringMedium type
sizes[].mediumTypeStringMedium subtype
createdOnNumberCreation timestamp
updatedOnNumberLast update timestamp

Error Responses

Dimension Set Not Found (422 Unprocessable Entity)

{
"status": 422,
"body": {
"message": "Dimension set not found: bsd_abc123"
}
}

Cannot Modify SYSTEM Set (403 Forbidden)

{
"status": 403,
"body": {
"message": "Cannot modify SYSTEM dimension sets"
}
}

Unauthorized (401 Unauthorized)

{
"status": 401,
"body": {
"message": "Dimension set does not belong to this workspace: bsd_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": "bSDId is required"
}
}

Server Error (500 Internal Server Error)

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

Usage Notes

  • The dimension set must belong to the authenticated workspace
  • SYSTEM dimension sets cannot be updated via the API
  • If sizes is provided, it replaces the existing sizes entirely
  • If the current defaultSizeId is no longer present in the new sizes, it is reset to the first size's sId
  • sId for each size is auto-generated; providing it in the request will result in a validation error
  • updatedOn is refreshed automatically on every update