D2lvalenceElixir.Utils.Service.get_all_grade_objects_for_org

You're seeing just the function get_all_grade_objects_for_org, go back to D2lvalenceElixir.Utils.Service module for more information.
Link to this function

get_all_grade_objects_for_org(user_context, org_unit_id, options \\ [])

View Source

Specs

get_all_grade_objects_for_org(
  %D2lvalenceElixir.Auth.D2LUserContext{
    anonymous: term(),
    app_id: term(),
    app_key: term(),
    encrypt_requests: term(),
    host: term(),
    scheme: term(),
    server_skew: term(),
    user_id: term(),
    user_key: term()
  },
  integer(),
  serializers: map(),
  ver: String.t(),
  body: list()
) ::
  {:error, String.t()}
  | {:ok,
     [
       %D2lvalenceElixir.Data.GradeObjectNumeric{
         can_exceed_max_points: term(),
         category: term(),
         description: term(),
         exclude_from_final_grade_calculation: term(),
         grade_scheme_id: term(),
         grade_type: term(),
         id: term(),
         is_bonus: term(),
         max_points: term(),
         name: term(),
         short_name: term()
       }
       | %D2lvalenceElixir.Data.GradeObjectPassFail{
           category: term(),
           description: term(),
           exclude_from_final_grade_calculation: term(),
           grade_scheme_id: term(),
           grade_type: term(),
           id: term(),
           is_bonus: term(),
           max_points: term(),
           name: term(),
           short_name: term()
         }
       | %D2lvalenceElixir.Data.GradeObjectText{
           category: term(),
           description: term(),
           grade_type: term(),
           id: term(),
           name: term(),
           short_name: term()
         }
       | %D2lvalenceElixir.Data.GradeObject{
           category: term(),
           description: term(),
           grade_type: term(),
           id: term(),
           name: term(),
           short_name: term()
         }
     ]}

Get all the grade objects for the organization unit id.

Returns

{:error, cause} when an error is caused.

{:ok, list(%D2lvalenceElixir.Data.GradeObjectNumeric{} | %D2lvalenceElixir.Data.GradeObjectPassFail{} | %D2lvalenceElixir.Data.GradeObjectText{} | %D2lvalenceElixir.Data.GradeObject{})} The result contains the information of the grade objects.

Options

version: version of the component to verify. If not specified, will get the version of the component. serializers: Map of availaber serializers. application/json recommended. body: Options to pass to the body of the request.