Automattic / Automattic/jetpack

Information about invitable roles in `/roles` endpoint

Open
#7,803 2 comments 0 reactions 0 assignees View on GitHub
[Feature] WPCOM API [Pri] Low Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

> /sites/$site/roles endpoint doesn't contain information about invites. A user can be invited as a viewer/follower, but these roles do not exist in that endpoint. I think we should either have a separate endpoint for invitation roles, or we should add all roles and mark them as selectable, invitable etc. We currently have a workaround for this, just like in Calypso, we manually add the viewer/follower roles depending on the privacy of the site, but I think this information should be coming from the API.

p7rcWF-Ap-p2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.