# Update User Group

Update a user group.

## PUT /public/v1/accounts/user-groups/{id}

>

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"Marketplace API","version":"5.0.764-gbc924a47"},"servers":[{"url":"https://api.s1.today"}],"paths":{"/public/v1/accounts/user-groups/{id}":{"put":{"tags":["UserGroups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"logo":{"type":"string","nullable":true},"modules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"pattern":"^MOD-\\d\\d\\d\\d$"},{"pattern":"^MOD-\\d\\d\\d\\d$"},{"pattern":"^MOD-\\d\\d\\d\\d$"}]}},"additionalProperties":false}},"buyers":{"type":"array","items":{"type":"object","properties":{"id":{"pattern":"^BUY-\\d\\d\\d\\d-\\d\\d\\d\\d$","type":"string"}},"additionalProperties":false},"nullable":true}},"additionalProperties":false}},"text/json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1user-groups~1{id}/put/requestBody/content/application~1json/schema/properties"},"additionalProperties":false}},"application/*+json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1user-groups~1{id}/put/requestBody/content/application~1json/schema/properties"},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"created":{"allOf":[{"type":"object","properties":{"at":{"type":"string","format":"date-time","nullable":true},"by":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"audit":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1user-groups~1{id}/put/responses/200/content/application~1json/schema/properties/audit/allOf/0/properties"},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"omitted":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"icon":{"type":"string","nullable":true}},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}],"nullable":true},"updated":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1user-groups~1{id}/put/responses/200/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties"},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}]},"$meta":{"allOf":[{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1user-groups~1{id}/put/responses/200/content/application~1json/schema/properties/audit/allOf/0/properties/created/allOf/0/properties/by/allOf/0/properties/$meta/allOf/0/properties"},"additionalProperties":false}],"nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"account":{"type":"object","allOf":[{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"type":{"allOf":[{"enum":["Client","Vendor","Operations"],"type":"string"}],"nullable":true},"status":{"allOf":[{"enum":["Active","Enabled","Disabled"],"type":"string"}],"nullable":true},"name":{"type":"string","nullable":true}},"additionalProperties":false}]},"modules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"name":{"type":"string"},"filters":{"allOf":[{"type":"object","properties":{"group.buyers":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}],"nullable":true},"settings":{"allOf":[{"type":"object","properties":{"sharedAccount":{"type":"boolean","deprecated":true},"configurable":{"type":"boolean"},"default":{"type":"boolean"},"paid":{"type":"boolean"},"type":{"type":"array","items":{"type":"string"}},"obsolete":{"type":"boolean"},"eligibility":{"allOf":[{"type":"object","properties":{"multi":{"type":"boolean"},"single":{"type":"boolean"}},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}],"nullable":true}},"additionalProperties":false}},"logo":{"type":"string","nullable":true},"isDefault":{"type":"boolean"},"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"name":{"type":"string"}},"additionalProperties":false}},"buyers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"icon":{"type":"string","nullable":true},"name":{"type":"string","nullable":true}},"additionalProperties":false},"nullable":true}},"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1public~1v1~1accounts~1user-groups~1{id}/put/responses/400/content/application~1json/schema/properties"},"additionalProperties":{"$ref":"#/paths/~1public~1v1~1accounts~1user-groups~1{id}/put/responses/400/content/application~1json/schema/additionalProperties"}}}}}}}}}}
```
