Set site as primary
const url = 'https://kynectlocal-production.up.railway.app/v1/v1/brands/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/primary';const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://kynectlocal-production.up.railway.app/v1/v1/brands/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/primary \ --header 'Authorization: Bearer <token>'Authorizations
Section titled βAuthorizations βParameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters βBrand identifier
Responses
Section titled β Responses βSuccess
object
object
object
Site identifier
Parent tenant
Parent brand
Location scope β null for brand-wide sites
Fully-qualified domain name
Whether the site is active
Whether this is the primary site for the brand/location
Creation timestamp
Last update timestamp
Example generated
{ "data": { "site": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "brandId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "domain": "example", "isActive": true, "isPrimary": true, "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z" } }}Validation error
object
Error envelope
object
Machine-readable error code
Human-readable error description
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Unauthenticated
object
Error envelope
object
Machine-readable error code
Human-readable error description
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Forbidden
object
Error envelope
object
Machine-readable error code
Human-readable error description
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Not found
object
Error envelope
object
Machine-readable error code
Human-readable error description
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Unprocessable
object
Error envelope
object
Machine-readable error code
Human-readable error description
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}