importRotations
POST/api/v1/imports/rotations
Creates the draft rotations of excubio-discover (docs/migration.md
§1.3). People are given as keyed hashes of their directory names;
the cloud hashes the login names and e-mail addresses of the
tenant's people with the given key, which it does not store. A
matched person who is not a member of the rotation's team becomes
one, with the role member; an unmatched hash is left out of its
layer and listed. A rotation's overrides are created after it, in
their order, as createOverride creates them for a rotation
manager (docs/on-call.md §2); one whose person matches nobody, or
that has ended, is left out. stakeholders are added to their
team's stakeholders, which keep the stored ones; a person who is one
keeps their entry. With dry_run nothing is kept.
Request
Responses
- 200
- 409
- 422
Created (or with dry_run, would create) rotations, and the hashes without a matching person
request.duplicate: a rotation slug is taken in its team; override.overlap: an override without replace overlaps an earlier one
import.team_unknown, tenant.limit_exceeded