Download OpenAPI specification:Download
API to create/manage namespaced groups and categories on a Discourse instance.
If user_id
s are specified which aren't associated with an account on Discourse already, accounts will be created associated with those user_id
s.
name required | string |
description | string |
users | Array of strings (Auth0 User ID) |
id | integer (group_id) |
discourse_group_name | string (discourse_group_name) group name used on discourse (will be namespaced, could be shortened or have naming conflicts resolved) |
{- "name": "Tea Lovers",
- "description": "For those who love tea",
- "users": [
- "ad|Mozillians-LDAP|lmcardle",
- "oauth2|firefoxaccounts|123456"
]
}
{- "id": 412,
- "discourse_group_name": "mdm-tea-lovers"
}
id required | integer (group_id) Example: 412 The group ID |
name | string |
description | string |
users | Array of strings (Auth0 User ID) |
discourse_group_name | string (discourse_group_name) group name used on discourse (will be namespaced, could be shortened or have naming conflicts resolved) |
{- "name": "Tea Lovers",
- "description": "For those who love tea",
- "users": [
- "ad|Mozillians-LDAP|lmcardle",
- "oauth2|firefoxaccounts|123456"
], - "discourse_group_name": "mdm-tea-lovers"
}
Passing a list of users here will reset the membership of the group to only those in the list. Users can be added/removed using the /group/{id}/users
route. Users which don't yet exist in Discourse will be created.
id required | integer (group_id) Example: 412 The group ID |
name | string |
description | string |
users | Array of strings (Auth0 User ID) |
discourse_group_name | string (discourse_group_name) group name used on discourse (will be namespaced, could be shortened or have naming conflicts resolved) |
{- "name": "We Love Tea"
}
{- "discourse_group_name": "mdm-we-love-tea"
}
If users passed here don't yet exist in Discourse, they'll be created.
id required | integer (group_id) Example: 412 The group ID |
add | Array of strings (Auth0 User ID) |
remove | Array of strings (Auth0 User ID) |
{- "add": [
- "ad|Mozilla-LDAP|lmcardle"
], - "remove": [
- "ad|Mozilla-LDAP|lmcardle"
]
}
Groups passed will be subscribed to the category. The category's topics won't be shown on the global /latest
view.
name required | string |
description | string |
groups | Array of integers (group_id) [ items ] Array of groups which should be subscribed to the category |
id | integer (category_id) |
email_in | string <email> |
url | string |
{- "name": "Coffee Club",
- "description": "Public discussion of the Coffee Club's activities",
- "groups": [
- 412
]
}
{- "email_in": "mdm.coffee-club@discourse.example.com",
}
id required | integer (category_id) Example: 123 The category ID |
name | string |
description | string |
groups | Array of integers (group_id) [ items ] Array of groups which should be subscribed to the category |
email_in | string <email> |
url | string |
{- "name": "Coffee Club",
- "description": "Public discussion of the Coffee Club's activities",
- "groups": [
- 412
], - "email_in": "mdm.coffee-club@discourse.example.com",
}
Passing a list of groups here will reset the subscribed groups on the category to only those in the list.
id required | integer (category_id) Example: 123 The category ID |
name | string |
description | string |
groups | Array of integers (group_id) [ items ] Array of groups which should be subscribed to the category |
email_in | string <email> |
url | string |
{- "name": "Coffee Club",
- "description": "Public discussion of the Coffee Club's activities",
- "groups": [
- 412
]
}
{- "email_in": "mdm.coffee-club@discourse.example.com",
}
id required | string (Auth0 User ID) Example: ad|Mozilla-LDAP|lmcardle The user ID |
username | string |
url | string |
groups | Array of integers (group_id) [ items ] |
{- "username": "lmcardle",
- "groups": [
- 412
]
}