Updating a division's properties
Use this endpoint to update properties of a division, such as associated holidays, allowed program IDs, and metadata schema validations.
Path parameters
Parameter | Description | Type | Required |
---|---|---|---|
hierarchyId | Hierarchy ID | String | Yes |
levelId | Level ID | String | Yes |
divisionId | Division ID | String | Yes |
Body parameters
Parameter | Description | Type | Required |
---|---|---|---|
schema | A valid JSON schema as specified in https://json-schema.org/specification.html | Object | |
holidays | List of holidays | Array of objects
| |
program_ids | List of allowed program IDs | Array of integers | |
job_params | List of job parameters | Array of objects | |
allow_weekends_transactions | Flag describing if transactions should be allowed on weekends. | Boolean |
Request
curl --request PATCH \
--url https://api-sandbox.pismolabs.io/corporate/hierarchies/7fb7d31b-7248-4796-a1f7-d3c8e52deab7/levels/5c7b6af0-3137-42aa-88f4-24f5064c0b5f/divisions/76188bd3-bd2b-47c3-8d93-f7a6e69f4c88 \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data '
{
"holidays": [
{
"day": 31,
"month": 12,
"description": "New Year"
}
],
"program_ids": [
123,
456,
789
],
"allow_weekends_transactions": true
}
'
Response
204 - No content.
Updated about 1 year ago