Post
/api/v{version}/attributes/{attributeType}/add
Security
OAuth
Authorization using OAuth2 with Client Credentials
FlowClient Credentials
Authorization URLhttps://identity.eu01.grassfish.com/connect/authorize
Token URLhttps://identity.eu01.grassfish.com/connect/token
Header parameters
x-correlationToken
string
x-clientId
string
Min length0
Max length128
x-onBehalfOf
string
Min length0
Max length24
api-version
string
Path parameters
attributeType
stringRequired
Valid values[
"None",
"Item",
"POSItem",
"ClientLocationPlayer",
"Offer",
"Assortment",
"Record",
"AssortmentItem",
"TreeSchemaLevel"
]
version
stringRequired
Body parameters
object
attributes
Array of object (Contracts.Connect.Parameters.ModifySingleAttribute) | null
object
code
string | null
Min length0
Max length24
id
string | null
Min length0
Max length128
name
string | null
Min length0
Max length50
description
string | null
Min length0
Max length256
orderN
integer (int32)
readOnly
boolean | null
flags
string
Valid values[
"None",
"Mandatory",
"Default",
"Share",
"ValidityPeriod",
"Options",
"Fixed",
"Multi",
"ShowAsListColumn"
]
valueType
string
Valid values[
"String",
"Currency",
"Day",
"DateTime",
"Int",
"Float",
"Media",
"DatePeriod",
"Record",
"Bool",
"Slider"
]
maxLength
integer (int32)
mediaLibrary
string
Valid values[
"None",
"BookingMedia",
"Logos",
"OfferMedia",
"ItemImages",
"HtmlTemplates",
"HousingAds",
"BookingCommentFiles",
"Maps",
"PlayerScreenShots",
"ADinQ",
"Facebook",
"PlayoutEntities",
"Instagram",
"WebPages",
"Unsplash",
"Documents",
"FallbackMedia",
"OfferSigns",
"HtmlTemplateSystemFiles",
"ImportDocuments"
]
options
Array of string | null
string
attributes
Array of object (Contracts.Connect.Parameters.ModifySingleAttribute) | null
object Recursive
placeholder
string | null
object
attributes
Array of object (Contracts.Connect.Parameters.ModifySingleAttribute) | null
object
code
string | null
Min length0
Max length24
id
string | null
Min length0
Max length128
name
string | null
Min length0
Max length50
description
string | null
Min length0
Max length256
orderN
integer (int32)
readOnly
boolean | null
flags
string
Valid values[
"None",
"Mandatory",
"Default",
"Share",
"ValidityPeriod",
"Options",
"Fixed",
"Multi",
"ShowAsListColumn"
]
valueType
string
Valid values[
"String",
"Currency",
"Day",
"DateTime",
"Int",
"Float",
"Media",
"DatePeriod",
"Record",
"Bool",
"Slider"
]
maxLength
integer (int32)
mediaLibrary
string
Valid values[
"None",
"BookingMedia",
"Logos",
"OfferMedia",
"ItemImages",
"HtmlTemplates",
"HousingAds",
"BookingCommentFiles",
"Maps",
"PlayerScreenShots",
"ADinQ",
"Facebook",
"PlayoutEntities",
"Instagram",
"WebPages",
"Unsplash",
"Documents",
"FallbackMedia",
"OfferSigns",
"HtmlTemplateSystemFiles",
"ImportDocuments"
]
options
Array of string | null
string
attributes
Array of object (Contracts.Connect.Parameters.ModifySingleAttribute) | null
object Recursive
placeholder
string | null
object
attributes
Array of object (Contracts.Connect.Parameters.ModifySingleAttribute) | null
object
code
string | null
Min length0
Max length24
id
string | null
Min length0
Max length128
name
string | null
Min length0
Max length50
description
string | null
Min length0
Max length256
orderN
integer (int32)
readOnly
boolean | null
flags
string
Valid values[
"None",
"Mandatory",
"Default",
"Share",
"ValidityPeriod",
"Options",
"Fixed",
"Multi",
"ShowAsListColumn"
]
valueType
string
Valid values[
"String",
"Currency",
"Day",
"DateTime",
"Int",
"Float",
"Media",
"DatePeriod",
"Record",
"Bool",
"Slider"
]
maxLength
integer (int32)
mediaLibrary
string
Valid values[
"None",
"BookingMedia",
"Logos",
"OfferMedia",
"ItemImages",
"HtmlTemplates",
"HousingAds",
"BookingCommentFiles",
"Maps",
"PlayerScreenShots",
"ADinQ",
"Facebook",
"PlayoutEntities",
"Instagram",
"WebPages",
"Unsplash",
"Documents",
"FallbackMedia",
"OfferSigns",
"HtmlTemplateSystemFiles",
"ImportDocuments"
]
options
Array of string | null
string
attributes
Array of object (Contracts.Connect.Parameters.ModifySingleAttribute) | null
object Recursive
placeholder
string | null
Responses
200
OK
object
success
object (Contracts.Common.Jsons.Common.SuccessJson)
ok
boolean
message
string | null
unauthorizedAccess
boolean | null
notFound
boolean | null
correlationToken
string | null
errors
Array of object (Contracts.Common.Jsons.Common.SuccessJsonError) | null
object
message
string | null
id
string
Valid values[
"InvalidDatePeriodEndDateBeforeStartDate",
"NameAlreadyTaken",
"ExternalIdAlreadyTaken",
"CodeAlreadyTaken"
]
fieldName
string | null
isRequired
boolean | null
isOutOfRange
boolean | null
isTaken
boolean | null
errorCode
string | null
defaultDisplayMessage
string | null
errorCode
string | null
details
object (Contracts.Common.Jsons.Common.ErrorDetailsJson)
message
string | null
defaultDisplayMessage
string | null
object
success
object (Contracts.Common.Jsons.Common.SuccessJson)
ok
boolean
message
string | null
unauthorizedAccess
boolean | null
notFound
boolean | null
correlationToken
string | null
errors
Array of object (Contracts.Common.Jsons.Common.SuccessJsonError) | null
object
message
string | null
id
string
Valid values[
"InvalidDatePeriodEndDateBeforeStartDate",
"NameAlreadyTaken",
"ExternalIdAlreadyTaken",
"CodeAlreadyTaken"
]
fieldName
string | null
isRequired
boolean | null
isOutOfRange
boolean | null
isTaken
boolean | null
errorCode
string | null
defaultDisplayMessage
string | null
errorCode
string | null
details
object (Contracts.Common.Jsons.Common.ErrorDetailsJson)
message
string | null
defaultDisplayMessage
string | null
object
success
object (Contracts.Common.Jsons.Common.SuccessJson)
ok
boolean
message
string | null
unauthorizedAccess
boolean | null
notFound
boolean | null
correlationToken
string | null
errors
Array of object (Contracts.Common.Jsons.Common.SuccessJsonError) | null
object
message
string | null
id
string
Valid values[
"InvalidDatePeriodEndDateBeforeStartDate",
"NameAlreadyTaken",
"ExternalIdAlreadyTaken",
"CodeAlreadyTaken"
]
fieldName
string | null
isRequired
boolean | null
isOutOfRange
boolean | null
isTaken
boolean | null
errorCode
string | null
defaultDisplayMessage
string | null
errorCode
string | null
details
object (Contracts.Common.Jsons.Common.ErrorDetailsJson)
message
string | null
defaultDisplayMessage
string | null
400
Bad Request
object
type
string | null
title
string | null
status
integer (int32) | null
detail
string | null
instance
string | null
property*
object
type
string | null
title
string | null
status
integer (int32) | null
detail
string | null
instance
string | null
property*
object
type
string | null
title
string | null
status
integer (int32) | null
detail
string | null
instance
string | null
property*
401
Unauthorized
403
Forbidden
object
type
string | null
title
string | null
status
integer (int32) | null
detail
string | null
instance
string | null
property*
object
type
string | null
title
string | null
status
integer (int32) | null
detail
string | null
instance
string | null
property*
object
type
string | null
title
string | null
status
integer (int32) | null
detail
string | null
instance
string | null
property*
500
Internal Server Error