Allowance Management

Reorder the allowance types

Changed on

Sets the order the allowance types are listed in, throughout the app and in GET /allowance-types. Send every id of the workspace: an id that is left out keeps its old position and the resulting order is ambiguous.

post/allowance-types/reorder

Request

  • Base URL
    https://api.absentify.com/api/v1
  • URL
    https://api.absentify.com/api/v1/allowance-types/reorder
  • Auth
    API key in header X-API-KEY

Request body

idsstring[] required

The allowance type ids, in the order you want them in.

Response

Successful response

successboolean required

Changes

    • warning

      changed the pattern of the request property / from ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ to ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

    • info

      endpoint added