post https://slemma.com/api/v1/groups/
Updates the specified group by passing new values in the request body. Only Name field can be updated.
- To update 'TeamAttributes', you must provide en entire list of team attributes and corresponding values. If you pass only attributes that you want to update, all other attributes, which are not provided, will be deleted.
- To delete all attributes, pass TeamAttributes parameter with an empty array/hash.
The following are the examples of HTTP status codes including errors that API can generate
Response codes | Response content | Description |
---|---|---|
200 OK | The group has beed successfully updated. | |
400 Bad Request | The Name cannot be empty | The field "Name" cannot be empty. |
400 Bad Request | Change group type is not available | The Name parameter is the one and only parameter you can pass in the request body. |
400 Bad Request | Attribute not found, Key=112 | A team attribute wasn't found. |
404 Not Found | Object not found | The group with the specified ID wasn't found. |
400 Bad Request | Seconds level is not available | You need the "SecondsLevel" feature to be enabled for your account. |