fc.graphql.comment.access
Changed on:
10 Dec 2024
Setting Area | System |
---|---|
Supported context levels: | ACCOUNT |
Overview
This setting is a feature toggle that enables the Retailer-specific Permissions for the Comment GraphQL API.
It allows you to manage User access rights for creating, updating, and viewing Comments with the corresponding GraphQL Permissions at the Account or Retailer level.
Values
Data Type | Values |
---|---|
STRING | Default Value(s):
Possible Values:
|
Detailed technical description
To ensure full backward compatibility,
`fc.graphql.comment.access`
`retailer`
value
`retailer`
Comments can only be viewed, created, or updated when a querying User has a Role with a corresponding Permission(s):
- On Retailer-level (Context) with a specified
`RETAILER`
that matches the one of the Entity associated with the Comment`retailerId`
- On Account-level (Context)
`ACCOUNT`
`account`
value
`account`
Comments can be viewed, created, or updated by a User with a corresponding Permission(s).
Both
`ACCOUNT`
`RETAILER`
System Defaults
The Comment GraphQL API behavior defaults to the
`retailer`
`fc.graphql.comment.access`
- Is created with the value set
`retailer`
- Is created with an invalid value (corresponds to any value except the and
`account`
)`retailer`
- Is not created
Configuration example
1POST {{fluentApiHost}}/graphql
2
3mutation CreateSetting {
4 createSetting(input: {
5 name: "fc.graphql.comment.access",
6 valueType: "STRING",
7 value: "retailer",
8 context: "ACCOUNT",
9 contextId: 0
10 }) {
11 id
12 name
13 }
14}
Language: json
Update example
1POST {{fluentApiHost}}/graphql
2
3mutation updateSetting {
4 updateSetting(input: {
5 id: 123,
6 name: "fc.graphql.comment.access",
7 valueType: "STRING",
8 value:"account",
9 context: "ACCOUNT",
10 contextId: 0
11 }) {
12 id
13 name
14 }
15}
Language: json