Skip to content

Update Customer Group ​

Updates the data of an existing customer group.

Request ​

PUT /api/oauth/v2/resource/customers/groups/{uuid}

HeaderValue
AuthorizationBearer {access_token}
Content-Typeapplication/json

URL parameters ​

ParameterTypeRequiredDescription
uuidstring (UUID)YesUnique customer group ID

Body parameters ​

Note: All fields are optional. Fields that are not sent remain unchanged.

FieldTypeRequiredDescription
namestringNoName of the customer group (max. 50 characters). Leading and trailing spaces are removed. Emoji and other 4-byte characters are not allowed
descriptionstringNoDescription text. Emoji and other 4-byte characters are not allowed
colorstringNoColor as a hex code (e.g. #74AFAD)

Important: "description": null does not clear the description. A field explicitly set to null is treated the same as a field that wasn't sent — the response still returns 200 OK, and the existing description stays unchanged. To clear a description, send an empty string ("").

Required scope: customers

Response ​

Success (200 OK) ​

json
{
  "data": {
    "id": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
    "name": "VIP customers",
    "description": "Customers with a premium contract",
    "color": "#74AFAD"
  }
}

Response fields ​

FieldTypeDescription
data.idstring (UUID)Unique customer group ID
data.namestringName of the customer group
data.descriptionstring | nullDescription text
data.colorstringColor as a hex code
Beispiele
bash
curl -X PUT "https://my.offisy.at/api/oauth/v2/resource/customers/groups/b2c3d4e5-f6a7-8901-bcde-f01234567890" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Muster GmbH",
    "description": "beispiel",
    "color": "beispiel"
  }'
Parameter
Zuerst Token anfordern

Possible errors ​

StatusCodeDescription
400validation_errorInvalid request data (e.g. name too long, or name/description containing emoji)
401invalid_clientInvalid or missing access token
403insufficient_scopeScope customers not present
403access_deniedAccess denied due to missing permission
404not_foundCustomer group not found

On 400, the response returns a JSON error object, e.g.:

json
{"error":"validation_error","error_description":"name must not exceed 50 characters."}
json
{"error":"validation_error","error_description":"description must not contain emoji or other 4-byte characters."}

Offisy GmbH