OSF Schema Response Actions API
Schema Response Actions are objects that when created cause state transitions for Schema Responses. Users use state transitions to submit, approve, and revise new Schema Responses. Schema Response Actions have a few different triggers to cause state transitions: - `submit` is a trigger to transition a Schema Response from an `in_progress` state to an `unapproved` state, this freezes edits for the Schema Response and allows all admin contributors to the Schema Response's Registration to either approved or reject the Schema Response. - `approve` is a trigger to transition a Schema Response from an `unapproved` state to an `approved` state, this makes the Schema Response changes public completing the update of the Schema Response. On Schema Responses that are associated with a Registration that has Registration Provider a moderated workflow the `approve` trigger will transition the Schema Response to `pending_moderation`. - `accept` is a trigger to transition a Schema Response from an `pending_moderation` state to an `approved` state. This trigger is only valid for Schema Responses that are associated with a Registration that has Registration Provider a moderated workflow and only possible for a user designated as moderator of a Registration Provider. - `admin_reject` is a trigger to transition a Schema Response from an `unapproved` state to an `in_progress` state. This trigger allows users to reject purposed changes to a Schema Response. - `moderator_reject` is a trigger to transition a Schema Response from an `pending_moderation` state to an `in_progress` state. This trigger is only valid for Schema Responses that are associated with a Registration that has Registration Provider a moderated workflow and only possible for a user designated as moderator of a Registration Provider.