Skip to content

Commit dc0dbbd

Browse files
authored
Merge pull request #205 from jleckie/hotfix-master/SA-12388
Add users and fixtures to allowed audience entities when creating news [SA-12388]
2 parents a46b5f2 + cc92be7 commit dc0dbbd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openapi/components/requestBodies/newsItem.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,12 @@ content:
120120
121121
The variables within each audience string have this meaning:
122122
* `$entityType` is the type of audience: currently out of
123-
`campus`, `folder`, `role`, `school_house`, `year`
123+
`campus`, 'fixturesteam', `folder`, `role`, `school_house`, `user`, `year`
124124
* `$entityValue` is the identifier for the audience, JSON-encoded
125125
then base64-encoded
126126
* `$relationship` is the users who are actually in the identified
127127
audience:
128+
128129
* `self` for the users associated directly with the audience
129130
* `teachers_of` for the teachers of users in the audience
130131
* `parents_of` for the parents of users in the audience
@@ -135,6 +136,7 @@ content:
135136
Examples:
136137
* `campus:IjEi:self` is a simple audience, targeting users in campus
137138
ID 1
139+
* `user:IjIi:self,user:IjI4Ig==:self` is a simple audience, targeting user ID 2 and user ID 28
138140
* `folder:IjU1Ig==:parents_of` is a simple audience, targeting
139141
parents of users in folder ID 55
140142
* `folder:IjU1Ig==:parents_of` is a simple audience, targeting

0 commit comments

Comments
 (0)