Updates permissions for the business document with the specified ID.

Request

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

Path parameters

Parameter name Value Description Additional
id int32 Required
businessId string Required

Request body

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

{
    "employeeGroups": [
        "int32"
    ],
    "id": "int32",
    "visibleToAll": "boolean"
}

Properties

Name Type
employeeGroups[] array of int32
id int32
visibleToAll boolean

Response

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

Status code Description Resource
200 OK

OK

DocumentModel