Using the following APIs in the confluence Cloud API, I want to grant group permissions.
But if the group name contains spaces. e.g. test group.
The space is a problem and the API URL is invalid.
Example: /wiki/rest/api/~/group/test group
Is there any way to escape this?
There is also a method to specify the group ID, but in order to obtain the group ID, it is necessary to specify the group name in the same way, which requires escaping.
Hi @青山 明
It is better not to use group name. It can be changed.
You should use groupId. You can get group id with https://developer.atlassian.com/cloud/confluence/rest/api-group-group/#api-wiki-rest-api-group-get . Get all groups, find group by name and send groupId.