PUT/v1/user-groups/{id}Update a user group

Update a user group description
headerAuthorizationAuthentication token (bearer token or API key).
{
"name" : String,
"description" : com.sesamsolutions.platform.common.TriOpt[String],
"remarks" : com.sesamsolutions.platform.common.TriOpt[String],
"externalId" : com.sesamsolutions.platform.common.TriOpt[com.sesamsolutions.platform.devicemgmt.model.ExternalId],
"source" : com.sesamsolutions.platform.common.TriOpt[com.sesamsolutions.platform.devicemgmt.model.ExternalId.Source]
}

Response

status200All ok, returned the id of created user group
status401Invalid authentication token
status403Insufficient rights
status404User group not found
Number

Example: Update a user group

PUT/v1/user-groups/1

headerAuthorizationBearer 22a614eb-fa1f-4085-944a-02600dbf470c
{
"name": "Update group",
"description": "group for test"
}

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
1

Example: Clear a group's external id via null, keeping a source-only row

Example: Reject clearing a group's source while it keeps an external id