Follow flags to receive email updates about targeting changes to a flag in a project and environment.
Several of the endpoints in the follow flags API require a member ID. The member ID is returned as part of the Invite new members and List account members responses. It is the _id
field of each element in the items
array.
Get followers of all flags in a given environment and project
Flags and flag followers response
Invalid request
Invalid access token
Forbidden
Invalid resource identifier
{- "_links": {
- "self": {
- "href": "/api/v2/projects/my-project/flags/my-flay/environments/my-environment/followers",
- "type": "application/json"
}
}, - "items": [
- {
- "flagKey": "example-flag-key",
- "followers": [
- {
- "_links": {
- "self": {
- "href": "/api/v2/members/569f183514f4432160000007",
- "type": "application/json"
}
}, - "_id": "569f183514f4432160000007",
- "firstName": "Ariel",
- "lastName": "Flores",
- "role": "admin",
- "email": "ariel@acme.com"
}
]
}
]
}
Get a list of members following a flag in a project and environment
Flag followers response
Invalid request
Invalid access token
Forbidden
Invalid resource identifier
{- "_links": {
- "self": {
- "href": "/api/v2/projects/my-project/flags/my-flay/environments/my-environment/followers",
- "type": "application/json"
}
}, - "items": [
- {
- "_links": {
- "self": {
- "href": "/api/v2/members/569f183514f4432160000007",
- "type": "application/json"
}
}, - "_id": "569f183514f4432160000007",
- "firstName": "Ariel",
- "lastName": "Flores",
- "role": "admin",
- "email": "ariel@acme.com"
}
]
}
Add a member as a follower to a flag in a project and environment
Action succeeded
Invalid request
Invalid access token
Forbidden
Invalid resource identifier
{- "code": "invalid_request",
- "message": "Invalid request body"
}
Remove a member as a follower to a flag in a project and environment
Action succeeded
Invalid request
Invalid access token
Forbidden
Invalid resource identifier
{- "code": "invalid_request",
- "message": "Invalid request body"
}