Updates the specified employee group.

Request

PUT https://apisg.yourpayroll.io/api/v2/business/{businessId}/employeegroup/{id}

Path parameters

Parameter name Value Description Additional
id int32 Required
businessId string Required

Request body

The request body takes a complete SgEmployeeGroupModel resource, containing the following writable properties:

{
    "filterCombinationStrategy": "string",
    "filters": [
        {
            "filterType": "string",
            "operator": "string",
            "value": "string"
        }
    ],
    "id": "int32",
    "name": "string"
}

Properties

Name Type Description
filterCombinationStrategy string FilterCombinationStrategyEnum

Possible values are:

  • Or
  • And
filters[] array
filters[].filterType string SgFilterTypeEnum

Possible values are:

  • Location
  • LocationOrParents
  • Employee
  • PaySchedule
  • EmploymentType
  • Tag
filters[].operator string FilterOperatorEnum

Possible values are:

  • In
  • NotIn
filters[].value string String
id int32 Int32
name string String

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK

SgEmployeeGroupModel