Auto-assignment validation

You must make the auto_assign object according to the following rules or you will receive validation error messages and the user will not be created.
  1. The JSON object must be well-formed
    • Error message: The value is not a well-formed JSON array
  2. The array must contain object data
    • Error message: The JSON array contains no object data
  3. The array must contain the correct number of objects
    • Error message: The array must contain 1-12 survey assignment objects
  4. Each object must contain the keys “key” and “target“
    • Error message: Each survey assignment object must specify a valid survey key and a survey target
  5. There must be no duplicate “key”/”target” combinations in the array of objects (a respondent may only complete the same survey about different targets in one assignment)
    • Error message:Assessment targets must be unique per assignment (a respondent may complete the same survey only about different targets in one assignment)
  6. A valid target (either “self”, a user UUID or a group UUID) must be provided
    • Error message: Assessment targets must either be one of self, or, any valid user or group UUID belonging to the authenticated org