ID do projeto. Você pode encontrar esse parâmetro em sua Conta de Distribuidor ao lado do nome do projeto.
Example: 44056
Request Body schema: application/json
name
required
string [ 1 .. 255 ] characters ^\S
Readable name of a rule. Used to display a rule in Publisher Account.
is_enabled
required
boolean
If rule is enabled.
required
Array of tipo = string (objects) or Array of tipo = data (objects) or Array of type = number (objects)
One of:
Condições que são comparadas aos valores de atributo do usuário.
Devem estar reunidas todas as condições para que a ação entre em efeito.
[ 1 .. 100 ] items
Array ([ 1 .. 100 ] items)
attribute
required
string [ 1 .. 255 ] characters ^[-_.\\d\\w]+$
Código de atributo do usuário.
operator
required
string
Tipo de operação realizada por condição. Para o tipo de atributo string.
Enum:
Description
eq
Iguais
ne
Não são iguais
value
required
string <= 255 characters
Valor da condição com o qual o valor do atributo do usuário será comparado. O tipo depende do tipo de atributo.
type
required
string
Tipo de atributo de usuário.
Value:"string"
can_be_missing
boolean
Indicates that the condition is met even if attribute is missing from user attributes. Pass true to show the item to users who don't have this attribute. Users who have the attribute, but the value does not match that specified in the condition, will not see the item. False — users who have the attribute, but the value does not match that specified in the condition, or the attribute is missing, will not see the item.
required
Array of objects or objects [ 1 .. 100 ] items
Array ([ 1 .. 100 ] items)
One of:
Items which are shown to a user if their attribute values meet conditions.
item_id
required
number
Item ID.
is_satisfied_for_unauth
boolean
Whether the item is displayed to unauthorized users. If true, the item is displayed to the unauthorized user regardless of catalog display rules. false by default.
Responses
201
Regra criada com sucesso.
401
Autenticação não aprovada ou errada. Verifique se você usou a autenticação ou credenciais corretas.