Interventionset API

The interventionSet resource represents a set of interventions. This resource is especially useful when the Group has a lot of interventions that can be organized and grouped.

For example, one can create a «Hair removal» Interventionset which will contain all the epilation services («Full legs», «Bikini Line», a.s.o…)

The interventionsets are optional. A group can have several interventionsets, and the interventions can belong to one of the interventionsets or to none of them.

Retrieve all the interventionsets of a Group

GET /api/v1/groups/:group_id/interventionsets

Create an Interventionset

POST /api/v1/groups/:group_id/interventionsets?apikey=xxxxxx
{
  "interventionset": {
     "group_id": 4,
     "name": "Massages",
     "publicname": ""
  }
}

Update an Interventionset

PUT /api/v1/groups/:group_id/interventionsets/:id?apikey=xxxxxx
{
  "interventionset": {
     "publicname": "Traditionnal Massages"
  }
}

Delete an Interventionset

DELETE /api/v1/groups/:group_id/interventionsets/:id

Standard fields

Field Type Description
group_id integer Group identifier
name string(255) Name of the Interventionset
sort integer Integer to specify the order of the Interventionsets when displayed in the pro interface and the appointment module.

Fields for appointments on the client module:

Field Type Description
publicname string(255) Name of the Interventionset as displayed on the appointment module. Important If blank, the interventions which belong to this set will not be available on the appointment module (even if they have a publicname specified).
description text Descriptive text about the Interventionset. Will be displayed in the appointment module.