competence_id

Unique ID for this competence.

id

Alias for "competence_id".

title

Title of the competence.

real_title

Display the competence title without additional text like the parent name or "(deactivated)" which may be added to the title.

competence_type

Name of the competence type.

code

Internal code for the competence.

valid_for

Defines for how long the competence is valid, from the time it is acquired by a person.

duration

Applies to competences of type ”course”. String containing a text with how long a course typically lasts, but may be split in days, hours and minutes. For module courses, each module's duration is returned, split by a '+' character. Example of three module course: "3 dager, 18 timer + 12 timer + 20 timer".

short_description

Short description of the competence.

description

Full description of the competence.

colorcode

Hex color code for the competence.

modified

The last time the competence object was changed.

checked_by

Applicable for competences of type ”checklist_item”. Values: ”self”/”manager”/”both”/”either”. Indicates what is requied for the checklist item to be regarded as fulfilled.

children

Applicable for competences of type ”group”, ”checklist”, ”complex”, ”competence”. List of children Competence objects (simple view).

files

File objects for files added to competence.

locale

Locale code (”no”/”en”) representing the language of the competence.

languages_available

List of all available languages for competence.

organisations

List of Organisation objects that this competence is restricted to.

min_age

Minimum age for participants for this event.

max_age

Maximum age for participants for this event.

prerequisites

Array of Competence objects. These competences are required for participants before they can sign on to event/start ecourse/etc.

prerequisites_text

Text describing prerequisites for competence.

categories

Array of Category objects registered for the competence.

attributes

Array of CompetenceAttribute registered for the competence.

instructors

Array of Persons registered as instructors for the competence. This is only available for competence of type "course".

durations

Array of Duration objects.

weight

Weighting of course, compared to others. Can be used for course credits, etc.

survey_data

Only available for competences of type "survey" or "survey_item". Array containing objects with info about how the survey and questions should be presented.

survey_qualifications

Only available for competences of type "survey_item". Describes what is required to pass the question.

survey_render_url

Only available for competences of type "survey_item". URL to rendered item/question.

custom_attributes

Object containing custom attributes for competence. Custom attributes can be almost anything, but they are defined specifically for each installation of Snapper Grape, and not part of the standard Snapper Grape data model. They are presented on the form (whether or not they are presented as simple value or object with "value" and "display_value", depends on the specific implementation):

{
    custom_attribute_name: custom_attribute_value,
    other_custom_attribute_name: {
        value: other_custom_attribute_value
        display_value: other_custom_attribute_display_value
}

external_competence_id

Returns the external id for the competence.

owner_person

Returns the person defined as owner for the competence

owner_organisation

Returns the organisation defined as owner for the competence