Create Schedule
POST/api/EntityEventSchedules/CreateSchedule
Tier: Public — stable, supported for third-party integration.
Creates an entity-event schedule. Validated: the scope name must be valid; the event type's entity kind must suit the schedule scope; and (Scope, EventId, scope entity) must be unique. For a Sku scope the supplied scope id is currently not stored (a known defect — the schedule persists with no SKU reference).
Request
Responses
- 200
- 400
The created schedule. See EntityEventSchedules.EventScheduleDetailDto.
AddEventScheduleDto.Name missing (MissingRequiredField);
AddEventScheduleDto.Scope not a valid Enums.EventScheduleScope member (InvalidValue);
the event type's entity kind does not suit the schedule scope (DuplicateResource — this response code names the scope/type-mismatch case, not the uniqueness case);
a schedule already exists for the same scope, event type and scope entity (InvalidEventScope — this response code names the uniqueness-collision case);
or the insert failed (OperationFailed).