Web Services API | Groups Web services | Update group
Update group
Updates group data by id or group code.
-
URL: /integration/ws/management/rest/groups/<id_grupo_o_codGroup>
-
Method: PUT
-
Headers:
-
Accept: version/format header
-
X-Cloud-Auth-Token*: authorization header
-
X-Cloud-Synchronization : synchronization type(default async ).
- Content-Type*: application/json
-
Parameters:
- id or codGroup, included in URL.
-
group*: group to be updated (id, codGroup and parentId are ignored):
-
name*: group name
-
description: group description
-
image: group image. Can be::
-
url: image url ({"url": "image_url"})
-
base64: image data ({"base64Image": "image_data", "mimeType": "image_mimeType"})
-
roles: group roles as a map. Allowed values are:
-
management: user, groupadmin, admin
-
training: user, trainer, groupadmin,admin
-
social: user, admin
-
play: user, author, validator, admin
-
talent: admin, employee
-
content: author, manager, reviewer, projectowner
-
extra:
-
isOrganization (*): Enable group as organization in customer
-
Responses:
-
200: OK. Content:
-
status: plataform status
-
location: platform resource location (if any)
-
message: plataform success or error message (if any)
-
status: general status
-
location: resource generic location (if any)
-
message: generic message, success or error (if any)
-
responsePlatforms: response by platform, with:
-
Request example:
-
Response example:
(*) Field "isOrganization" only applies in customers with multiorganización enabled and root groups