Updates the work type with the specified ID.


PUT https://api.yourpayroll.com.au/api/v2/business/{businessId}/worktype/{id}

Path parameters

Parameter name Value Description Additional
id int32 Required
businessId string Required

Request body

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

    "accruesLeave": "boolean",
    "employmentTypes": [
    "externalId": "string",
    "id": "int32",
    "leaveCategoryId": "int32",
    "mappingType": "string",
    "name": "string",
    "payCategoryId": "int32",
    "shortCode": "string",
    "source": "string"


Name Type
accruesLeave boolean
employmentTypes[] array of string
externalId string
id int32
leaveCategoryId int32
mappingType string
name string
payCategoryId int32
shortCode string
source string


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

Status code Description Resource
200 OK