Create/Update registration group
Method
| Method | Description |
|---|---|
| group.groupCreate | Create registration group. |
| group.groupUpdate | Update registration group. |
Request parameters
{
"group": {
"id": {GroupId}, /* Only for update operation */
"name": "{GroupName}",
"description": "{Description}"
},
"resources": {
"{ResourcePath}": "{ResourceCnt}",
...
}
}
Response parameters
{
"group": {
"id": {GroupId},
...
},
"resources": {
"{ResourcePath}": "{NewResourcePath}",
...
},
"completed": {Completed}
}
If a specific option is completely omitted from the update request, it will not be updated, and the previously stored value will be preserved. The "group" node of the response has the same fields as the registration group get operation returns.
A new group is inactive. Publish settings of the group, its members and links of the group to assessments, courses and learning paths are managed on the website.
| Variable | Type | Appearance | Description |
|---|---|---|---|
| {GroupId} | Integer | Mandatory | Registration group id. |
| {GroupName} | String | Mandatory on create | Registration group name, up to 250 characters. Must be unique among your registration groups. |
| {Description} | String | Optional | Registration group description, shown on the group page where people register to the group. HTML formatted, may contain media resources like images and audio. Please be aware that only relative URLs are allowed. See Rich HTML formatting for the full list of supported tags and attributes. If omitted from the update request, the existing value is preserved and not cleared. |
| resources | Object | Optional | If you are using media resources like images you need to send the content of each media resource under "resources" node. |
| {ResourcePath} | String | Mandatory | Path of media resource. Same value as it was used in Description. Example: "fld/image.jpg" for <img src="fld/image.jpg">. |
| {ResourceCnt} | String | Mandatory | Base64 encoded content of media resource. |
| {NewResourcePath} | String | Mandatory | New media resource path. |
| {Completed} | Boolean | Mandatory | Indicates whether action was successfully completed or not. |
