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

ParameterDescriptionTypeRequired
hierarchyIdHierarchy IDStringYes
levelIdLevel IDStringYes
divisionIdDivision IDStringYes

Body parameters

ParameterDescriptionTypeRequired
schemaA valid JSON schema as specified in https://json-schema.org/specification.htmlObject
holidaysList of holidaysArray of objects
  • day (integer, required) –
    The day of the month, in integer form from 1 to 31.
  • month (integer, required) –
    The month, in integer form from 1 to 12.
  • description (string) – The holiday's description.
program_idsList of allowed program IDsArray of integers
job_paramsList of job parametersArray of objects
allow_weekends_transactionsFlag 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.