Create a brand link

Creates a new brand link.

post
Path parameters
domainIdstringRequired

The id of the domain.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Body

This class is used to create, update for the brand link.

parentBrandLinkIdstring | nullableOptional

The parent brand link id. If this is null, it means the link is a node link.

namestring · min: 1Required

The name.

typestring · enumOptionalPossible values:
stylesstring | nullableOptional

The styles of the link.

iconUrlstring · uri | nullableOptional

The icon url.

linkstring | nullableOptional

The reference link. Clicking the link redirects to the specified URL. To use a local path, provide a relative path in the format: /path/to/your/page.

zOrderinteger · int32 | nullableOptional

The z-order numer of the link. If this is not provided, we will be checking the max z-order of the parent link and increment by 1.

statusstring · enumOptionalPossible values:
descriptionstring | nullableOptional

The description.

Responses
201

The request was successful.

application/json
post
POST /api/v1/domains/{domainId}/links HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 181

{
  "parentBrandLinkId": "text",
  "name": "text",
  "type": "0 - Unknown",
  "styles": "text",
  "iconUrl": "https://example.com",
  "link": "text",
  "zOrder": 1,
  "status": "0 - Inactive",
  "description": "text"
}
{
  "success": true,
  "statusCode": 201,
  "message": "The request was successful.",
  "data": {
    "brandId": "KAOplmx0i1A",
    "parentBrandLinkId": "Plo0szlmPs",
    "name": "Name",
    "type": "BodyFooter",
    "styles": "Group Name",
    "iconURL": "https://www.example.com/icon.png",
    "link": "https://www.example.com",
    "description": "Description",
    "status": "Active",
    "items": [],
    "zOrder": 1,
    "id": "sApKpllz4sAplsmzha"
  },
  "errors": []
}

Last updated

Was this helpful?