Update User Group

Lets you update an existing user group details.

API endpoint

https://eu.api.capillarytech.com/v2/userGroup2

Prerequisites

  • Authentication: Basic or OAuth authentication
  • Access group resource: Read and write access to the User Group resource

Resource information

URI/v2/userGroup2
HTTP MethodPUT
PaginationNo
Batch supportNo
Rate limit informationNA

Query parameters

Query ParameterTypeDescription
id*integerUnique ID of the user group, identical to the entity ID. Note: One of the parameters marked * is mandatory.
externalId*stringExternal ID of the group. Note: One of the parameters marked * is mandatory.
extendedFieldsarrayArray containing the extended fields and their corresponding values, enabled for specific verticals within the organisation. Each extended field must be valid and created under the usergroup2 entity.
groupNamestringName of the group. The maximum number of allowed characters is 50.
maxGroupSizeintegerMaximum size (members) of the group. The maximum group size is as defined by the product configuration CONF_MAX_FLEET_GROUP_SIZE. If this configuration is not set, the default maximum size is 30,000.
{
    "id": "51334",
    "maxGroupSize": 110,
    "extendedFields": {
        "platinum": "35"
    }
}

Response parameters

ParameterDescription
idUnique identifier for the entity.
groupNameName of the group being updated.
maxGroupSizeMaximum size (members) of the group.
extendedFieldsAn array containing the extended fields and their corresponding values, enabled for specific verticals within the organisation.
entityTypeType of entity.
promisedPointsScheduleListThis is an array containing objects of promised points scheduled for the user.
triggerBasedPointsListThis is an array containing objects of points based on specific triggers or conditions.
warningsThis is an array that contains warning messages, if any.
{
    "id": 51334,
    "groupName": "natwest14",
    "maxGroupSize": 110,
    "extendedFields": {
        "platinum": 35
    },
    "warnings": []
}

API-specific error codes

1632Group ID, externalD, or primary userID is not valid
91016This is a warning indicating the extended fields are incorrect.
91017This is a warning indicating the extended fields are incorrect.
Language
Authorization
Basic
base64
:
URL
Click Try It! to start a request and see the response here!