{"method":"POST","path":"https://api.revcent.com/v2/product_groups/{product_group_id}","summary":"Edit A Product Group","description":"Edit a previously created Product Group using the Product Group ID. Only include the properties you wish to modify. For example, if you only want to modify the name of the Product Group, then only include the name property in the request body.<br><br>Important: If the 'products' array is provided, the products you provide in the 'products' array will automatically be associated with the group, and any products not included in the array will be disassociated if previously in the group. Only provide the 'products' array if it contains the ID's of all products you want in the group. If the 'products'array is provided and is empty, all associated products will be disassociated from the group. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/EditProductGroup.md for an in-depth overview of this operation.","operationId":"EditProductGroup","parameters":[{"in":"path","name":"product_group_id","description":"The Product Group ID","required":true,"schema":{"type":"string","description":"A 20 character product group ID.","minLength":20,"maxLength":20}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"type":"string","description":"The Product Group name."},"description":{"type":"string","description":"The Product Group description."},"enabled":{"type":"boolean","description":"Whether the Product Group is enabled."},"products":{"type":"array","description":"All product(s) to associate with the Product Group. Only provide the 'products' array if it contains the ID's of all products you want in the group. Any product ID's not included in the 'products' array will be disassociated from the group if previously associated. If the array is provided and is empty, all associated products will be disassociated from the group.","items":{"type":"string","description":"A 20 character product ID.","minLength":20,"maxLength":20}}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"API call response code.","type":"integer","format":"int32","enum":[1]},"product_group_id":{"type":"string","description":"A 20 character product group ID.","minLength":20,"maxLength":20},"result":{"type":"string"}},"type":"object","additionalProperties":false}}},"description":"Successful response."},"default":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"This value indicates that there is an error. Will always be 0.","type":"integer","enum":[0]},"error_code":{"description":"The specific error code.","type":"string"},"message":{"description":"A human readable description of the error.","type":"string"},"result":{"description":"A description of the API call result.","type":"string"}},"title":"APIStandardErrors","type":"object","additionalProperties":false}}},"description":"Error response."}}}