You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(SITES-43695): add defaultSiteId to Organization model and resolveSite endpoint
- Expose defaultSiteId in OrganizationDto.toJSON() for API responses
- Add PATCH /organizations/:id support for defaultSiteId (valid UUID or null)
- In resolveSite(), check org.defaultSiteId before falling back to getFirstEnrollment()
so customers can pin a preferred domain without DB insertion-order dependence
- Cross-org and enrollment/tier validation guard the new resolution path
- OpenAPI schema updated to document the new field
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/openapi/schemas.yaml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -385,6 +385,9 @@ Organization:
385
385
imsOrgId:
386
386
description: Optional. The ID of the Adobe IMS organization
387
387
$ref: '#/ImsOrganizationId'
388
+
defaultSiteId:
389
+
description: Optional. The ID of the default site to resolve on login. When set, /sites-resolve returns this site instead of the insertion-order fallback.
390
+
$ref: '#/Id'
388
391
config:
389
392
description: Optional. The configuration of the organization
0 commit comments