Skip to main content

Update group

PUT 

/:organization_id/groups/:id

Updates a specific group

Request

Path Parameters

    organization_id integerrequired

    Organization ID

    id integerrequired

    Group ID

Bodyrequired

    namestringrequired

    Name of the group (must be unique within the organization)

    custom_fieldsobject

    Custom fields for this group. Fields are defined by the organization's custom_group_fields. Values will be coerced to appropriate types:

    • Boolean fields will be coerced to true/false
    • Number fields will be coerced to floating point
    • Date fields will be coerced to date objects

Responses

Group updated successfully

Schema
    idintegerrequired

    Unique identifier for the group

    organization_idintegerrequired

    ID of the organization this group belongs to

    namestringrequired

    Name of the group (must be unique within the organization)

    custom_fieldsobject

    Custom fields defined for this group, with format depending on field types

    created_atdate-time

    Creation timestamp

    updated_atdate-time

    Last update timestamp

Authorization: http

name: basicAuthtype: httpscheme: basicdescription: Basic authentication using API key ID and API key
import http.client
import json

conn = http.client.HTTPSConnection("cloud-staging.cloverhound.com")
payload = ''
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic PHVzZXJuYW1lPjo8cGFzc3dvcmQ+'
}
conn.request("PUT", "/:organization_id/groups/:id", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Auth
Parameters
— pathrequired
— pathrequired
Body required
{
  "name": "string",
  "custom_fields": {}
}