Datalumni public API documentation (1.0)

Download OpenAPI specification:

About

Hello and welcome to the Datalumni public API!

The Datalumni public API is organize around REST and uses HTTP response codes to indicate API Errors.
All requests and response bodies are encoded in JSON (application/json).

Endpoint

Datalumni public API endpoint is the following:

/api/public/v1/

Append this endpoint to your platform URL, depending on its configuration :

  • Using a subdomain of datalumni.com: https://my-school.datalumni.com/api/public/v1/
  • Using a custom domain : https://www.my-domain.com/api/public/v1/

Authentication

Datalumni public API uses Bearer Authentication over HTTPS protocol.

The client must send this token in the Authorization header on every requests.

Authorization: Bearer <your-token-here>

Get your API token

Before you can make requests to the API, you must have generated an API token from your platform.

IMPORTANT: We only support only on API token per platform, for the time being.

Generate your API token

  • In the School Settings, click on the API tab.
  • If no token exists, click on the "Add an API token" button.

Add API Token

Select API Token owner

  • Select the administrator to whom the token will be assigned.
  • NB: An API token is necessarily owned by an administrator. The owner of the token can be changed at any time.

Select API Token owner

Copy API token

  • A button lets you quickly copy your newly created API token.

Copy API token

Campus

Campus is a resource representing a campus. This resource is then used on UserRoles.

In order to be used, Campuses require School.has_campus = True. (Also see School API)

List Campus

List all existing campuses

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create Campus

Create a new campus

Request Body schema: application/json
name
required
string <= 100 characters unique

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string"
}

Delete Campus

Delete a Campus. A Campus can only be deleted if it is NOT in use in any UserRole

path Parameters
campus_id
required
string

Responses

Retrieve Campus

Retrieve a Campus

path Parameters
campus_id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string"
}

Update Campus

Update a Campus

path Parameters
campus_id
required
string
Request Body schema: application/json
name
required
string <= 100 characters unique

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string"
}

Degree

Degree is a resource representing a Degree / a training course form the School. This resource is then used on UserRoles.

Addtional fields section and subsection allow Degrees to be grouped together and will be represented as a tree data structure on your platform.

Degree is always required for Student (3) and Alumni (4). More info on UserRole API.

List Degree

List all exisiting Degrees

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create Degree

Create a new Degree. A Degree name must be unique within a school.

Request Body schema: application/json
name
required
string <= 255 characters unique
section
string or null <= 140 characters
subsection
string or null <= 140 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "section": "string",
  • "subsection": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "section": "string",
  • "subsection": "string"
}

Delete Degree

Delete a Degree. A Degree can only be deleted if it is NOT in use in any UserRole

path Parameters
degree_id
required
string

Responses

Retrieve Degree

Retrieve a Degree

path Parameters
degree_id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "section": "string",
  • "subsection": "string"
}

Update Degree

Update a Degree

path Parameters
degree_id
required
string
Request Body schema: application/json
name
required
string <= 255 characters unique
section
string or null <= 140 characters
subsection
string or null <= 140 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "section": "string",
  • "subsection": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "section": "string",
  • "subsection": "string"
}

List

Lists are all the predefined options used in dropdown field on various forms throughout the platform.

Lists are usually available in French (fr) or English (en).

List scopes

  • BusinessSector: Represents a business sector. Used on User's WorkExperience.
  • ContractType: Represents a type of work contract. Used on User's WorkExperience.
  • DegreeType: Represents a type of degree. Used on User's WorkExperience.
  • Salary: Represents a salary range. Used on User's WorkExperience.
  • WorkExpOpportunity: Represents the way in which the work opportunity was obtained. Used on User's WorkExperience.

List Lists

List all the predefined options used in dropdown field.

query Parameters
scope
required
string
Enum: "BusinessSector" "ContractType" "DegreeType" "Salary" "WorkExpOpportunity"

Type of list (please see List API)

locale
required
string
Enum: "fr" "en"

Locale : "fr" (French) ; "en" (English)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Profile

Profile API refers to items (Educations, Work Experiences, Hobbies) that are listed in User profile:

  • Education: represents a diploma-awarding academic course
  • WorkExperience: represents a work experience
  • Hobby: represents a hobby

Profile items (and their IDs) are listed on User data when searching through the User Directory endpoint.

Important: Some Education resources are automatically created with UserRole (Student / Alumni, see UserRole API). In this case, the Education resource is flagged as immutable and cannot be altered.

NB: There is no create (POST) API endpoint for Profile resources. You can only perform moderation actions on User profiles.

Delete Education

Delete an Education

path Parameters
edu_id
required
string

Responses

Retrieve Education

Retrieve an Education

path Parameters
edu_id
required
string

Responses

Response samples

Content type
application/json
{
  • "city": "string",
  • "country": "string",
  • "degree_type": 0,
  • "description": "string",
  • "facility": "string",
  • "graduation": 0,
  • "graduation_year": 0,
  • "id": 0,
  • "is_immutable": false,
  • "title": "string",
  • "user": 0
}

Update Education

Update an Education

Important: An Education resource flagged is_immutable = true cannot be altered. (see UserRole API)

path Parameters
edu_id
required
string
Request Body schema: application/json
city
string or null <= 255 characters
country
string or null <= 32 characters
degree_type
integer or null

List.DegreeType.ext_id (also see List API)

description
string or null
facility
required
string <= 128 characters
graduation
integer or null
Enum: 0 1 2

0 (Currently graduating) ; 1 (Graduated) ; 2 (Did not graduate)

graduation_year
integer or null
title
required
string <= 128 characters

Responses

Request samples

Content type
application/json
{
  • "city": "string",
  • "country": "string",
  • "degree_type": 0,
  • "description": "string",
  • "facility": "string",
  • "graduation": 0,
  • "graduation_year": 0,
  • "title": "string"
}

Response samples

Content type
application/json
{
  • "city": "string",
  • "country": "string",
  • "degree_type": 0,
  • "description": "string",
  • "facility": "string",
  • "graduation": 0,
  • "graduation_year": 0,
  • "id": 0,
  • "is_immutable": false,
  • "title": "string",
  • "user": 0
}

Delete Work Experience

Delete a Work Experience

path Parameters
exp_id
required
string

Responses

Retrieve Work Experience

Retrieve a Work Experience

path Parameters
exp_id
required
string

Responses

Response samples

Content type
application/json
{
  • "business_sector": 0,
  • "city": "string",
  • "contract_type": 0,
  • "country": "string",
  • "current_occupation": false,
  • "description": "string",
  • "end_date": "2019-08-24",
  • "fits_education": false,
  • "id": 0,
  • "is_executive": false,
  • "organisation": "string",
  • "salary": 0,
  • "start_date": "2019-08-24",
  • "title": "string",
  • "user": 0,
  • "workexp_opportunity": 0
}

Update WorkExperience

Update a Work Experience

path Parameters
exp_id
required
string
Request Body schema: application/json
business_sector
integer or null

List.BusinessSector.ext_id (also see List API)

city
string or null <= 255 characters
contract_type
integer or null

List.ContractType.ext_id (also see List API)

country
string or null <= 32 characters
current_occupation
boolean
Default: false
description
string or null
end_date
string or null <date>
fits_education
boolean
Default: false
is_executive
boolean
Default: false
organisation
required
string <= 64 characters
salary
integer or null

List.Salary.ext_id (also see List API)

start_date
required
string <date>
title
required
string <= 128 characters
workexp_opportunity
integer or null

List.WorkExpOpportunity.ext_id (also see List API)

Responses

Request samples

Content type
application/json
{
  • "business_sector": 0,
  • "city": "string",
  • "contract_type": 0,
  • "country": "string",
  • "current_occupation": false,
  • "description": "string",
  • "end_date": "2019-08-24",
  • "fits_education": false,
  • "is_executive": false,
  • "organisation": "string",
  • "salary": 0,
  • "start_date": "2019-08-24",
  • "title": "string",
  • "workexp_opportunity": 0
}

Response samples

Content type
application/json
{
  • "business_sector": 0,
  • "city": "string",
  • "contract_type": 0,
  • "country": "string",
  • "current_occupation": false,
  • "description": "string",
  • "end_date": "2019-08-24",
  • "fits_education": false,
  • "id": 0,
  • "is_executive": false,
  • "organisation": "string",
  • "salary": 0,
  • "start_date": "2019-08-24",
  • "title": "string",
  • "user": 0,
  • "workexp_opportunity": 0
}

Delete Hobby

Delete a Hobby

path Parameters
hobby_id
required
string

Responses

Retrieve Hobby

Retrieve a Hobby

path Parameters
hobby_id
required
string

Responses

Response samples

Content type
application/json
{
  • "hobby": "string",
  • "id": 0,
  • "user": 0
}

Update Hobby

Update a Hobby

path Parameters
hobby_id
required
string
Request Body schema: application/json
hobby
required
string <= 128 characters

Responses

Request samples

Content type
application/json
{
  • "hobby": "string"
}

Response samples

Content type
application/json
{
  • "hobby": "string",
  • "id": 0,
  • "user": 0
}

School

School API gives you access to your platform's settings.

Retrieve School

Retrieve current School data

Responses

Response samples

Content type
application/json
{
  • "address": "string",
  • "cover": "http://example.com",
  • "currency": "€",
  • "description_photo": "http://example.com",
  • "has_campus": false,
  • "has_filter_blog": false,
  • "has_filter_club": true,
  • "has_filter_event": true,
  • "has_filter_jobads": false,
  • "has_public_pages": false,
  • "icon_pwa": "http://example.com",
  • "id": 0,
  • "login_photo": "http://example.com",
  • "mailing_email": "user@example.com",
  • "mailing_sender": "<School.name>",
  • "name": "string",
  • "phone_countries": "string",
  • "preferred_locale": 1,
  • "primary_color": "#ffb600",
  • "secondary_color": "#00a19b",
  • "show_external": false
}

Update School

Update current School data

Request Body schema: application/json
address
string or null <= 255 characters
cover
string or null <uri>

Banner image displayed above navbar

currency
string <= 10 characters
Default: "€"
description_photo
string or null <uri>

Image used in School's description

has_campus
boolean
Default: false

Use Campus in UserRole objects

has_filter_blog
boolean
Default: false

Blog articles visibility can be restricted based on Degree or Role

has_filter_club
boolean
has_filter_event
boolean
has_filter_jobads
boolean
Default: false

Job ads visibility can be restricted based on Degree or Role

has_public_pages
Dasboard, About and Blog are accessible to unauthenticated users
Default: false
icon_pwa
string or null <uri>

Custom icon used for Progressive Web App

login_photo
string or null <uri>

Background image used on login page

logo
string or null <uri>

School logo

mailing_sender
string or null <= 100 characters
Default: "<School.name>"

Sender displayed on transactionnal emails

name
required
string <= 255 characters
phone_countries
string or null <comma-separated ISO 3166-1 alpha-2> <= 32 characters ^[A-Z]{2}((,[A-Z]{2})+)?$

Country codes to be used as shortcuts on phone-related inputs

preferred_locale
integer
Default: 1
Enum: 1 2

1 (French) ; 2 (English)

primary_color
string <hex color> <= 7 characters
Default: "#ffb600"
secondary_color
string <hex color> <= 7 characters
Default: "#00a19b"
show_external
boolean
Default: false

External roles are listed on Directory

Responses

Request samples

Content type
application/json
{
  • "address": "string",
  • "cover": "http://example.com",
  • "currency": "€",
  • "description_photo": "http://example.com",
  • "has_campus": false,
  • "has_filter_blog": false,
  • "has_filter_club": true,
  • "has_filter_event": true,
  • "has_filter_jobads": false,
  • "has_public_pages": false,
  • "icon_pwa": "http://example.com",
  • "login_photo": "http://example.com",
  • "mailing_sender": "<School.name>",
  • "name": "string",
  • "phone_countries": "string",
  • "preferred_locale": 1,
  • "primary_color": "#ffb600",
  • "secondary_color": "#00a19b",
  • "show_external": false
}

Response samples

Content type
application/json
{
  • "address": "string",
  • "cover": "http://example.com",
  • "currency": "€",
  • "description_photo": "http://example.com",
  • "has_campus": false,
  • "has_filter_blog": false,
  • "has_filter_club": true,
  • "has_filter_event": true,
  • "has_filter_jobads": false,
  • "has_public_pages": false,
  • "icon_pwa": "http://example.com",
  • "id": 0,
  • "login_photo": "http://example.com",
  • "mailing_email": "user@example.com",
  • "mailing_sender": "<School.name>",
  • "name": "string",
  • "phone_countries": "string",
  • "preferred_locale": 1,
  • "primary_color": "#ffb600",
  • "secondary_color": "#00a19b",
  • "show_external": false
}

User

User API allow you to manage any active / inactive Users of your platform.

This endpoint also allows you to perform User import.

List User (Directory)

User Directory.

NB: The following parameters are to be used as query parameters

query Parameters
limit
integer [ 1 .. 100 ]
Default: 12

Number of results to return per page.

offset
integer
Default: 0

The initial index from which to return the results.

activation_date
string <YYYY-MM-DD,YYYY-MM-DD>

Filter user based on their account activation date.

business_sector
integer <BusinessSector.id>

Filter on a BusinessSector.id. (see List API)

campus
integer <Campus.id>

Filter on a Campus.id. (see Campus API)

degree
integer <Degree.id>

Filter on a Degree.id. (see Degree API)

experience_sharing
boolean
Enum: true false

User marked himself/herself as available to share his/her experience.

ext_ref
string

Filter on User external reference.

ℹ️ INFO : The filter performs a substring match rather than an exact value comparison.
For example, if you search for ext_ref=123, it will match users with ext_ref values like 123, A123B, or XYZ123.

graduation_year
integer

Filter by graduation year.

import_date
string <YYYY-MM-DD,YYYY-MM-DD>

Filter user based on their account import date. Import date refers to the date on which User was invited.

is_active
string
Enum: "active" "inactive" "desactive"

Filter based on account status.

civility
integer
Enum: 1 2 3

1 (male), 2 (female), 3 (not informed)

is_mentor
boolean
Enum: true false

User has Mentor badge activated.

is_ambassador
boolean
Enum: true false

User has Ambassador flag activated.

jury
boolean
Enum: true false

User has Jury flag activated.

jobs_notifications
boolean
Enum: true false

User has weekly job notifications activated.

keyword
string

Keyword (within User.first_name, User.last_name, User.email).

looking_for_mentor
boolean
Enum: true false

User is looking for a mentor.

masschat
boolean
Enum: true false

User agrees to receive mass chat messages.

newsletter
boolean
Enum: true false

User is subscribed to the platform's newsletter.

opportunities_enabled
boolean
Enum: true false

User has enabled "#READYTOWORK" badge on his/her profile.

public_to_recruiters
boolean
Enum: true false

User allows recruiter to see his/her profile.

registration_date
string <YYYY-MM-DD,YYYY-MM-DD>

Filter user based on their account registration date. Registration date refers to the date on which User manually registrered.

role
integer
Enum: 2 3 4 5 6 7 8

Filter on a Role : 2 (SchoolAdmin) ; 3 (Student) ; 4 (Alumni) ; 5 (Teacher) ; 6 (Staff) ; 7 (External) ; 8 (Prospect). See UserRole API.

temporary_lecturer
boolean
Enum: true false

User marked himself/herself as available to become a lecturer.

unsub
boolean
Enum: true false

User is unsubscribed from platform emails.

Responses

Response samples

Content type
application/json
{
  • "count": 123,
  • "results": [
    ]
}

Create User

Create a single User.

NB: A registration email will be sent to the User. This email contains a link allowing the user to finalise the creation of his/her account directly from the platform. The registration link expires after 30 days.

Request Body schema: application/json
birth_name
string or null <= 255 characters

birth name (differs from the last_name)

campus
required
integer or null
civility
required
integer
Enum: 1 2 3

1 (male), 2 (female), 3 (not informed)

degree
required
integer or null <Degree.id>

Required for roles 3 (Student) and 4 (Alumni).

email
required
string <email> <= 255 characters
ext_ref
required
string or null <= 255 characters

Any identifier used in another system to identify this User

first_name
required
string <= 255 characters
graduation_year
required
integer or null

Required for roles 3 (Student) and 4 (Alumni).

last_name
required
string <= 255 characters
userrole
required
integer
Enum: 2 3 4 5 6 7 8

2 (SchoolAdmin) ; 3 (Student) ; 4 (Alumni) ; 5 (Teacher) ; 6 (Staff) ; 7 (External) ; 8 (Prospect). See UserRole API.

Responses

Request samples

Content type
application/json
{
  • "birth_name": "string",
  • "campus": 0,
  • "civility": 1,
  • "degree": 0,
  • "email": "user@example.com",
  • "ext_ref": "string",
  • "first_name": "string",
  • "graduation_year": 0,
  • "last_name": "string",
  • "userrole": 2
}

Response samples

Content type
application/json
{
  • "email": "user@example.com",
  • "ext_ref": "string",
  • "first_name": "string",
  • "id": 0,
  • "last_name": "string",
  • "roles": [
    ]
}

Massively create Users

Massively create Users.

⚠️ IMPORTANT: User import is performed asynchronously. This endpoint will return a task ID and a url to track task progress.

A registration email will be sent to each individual User. This email contains a link allowing the user to finalise the creation of his/her account directly from the platform. The registration link expires after 30 days.

Request Body schema: application/json
Array
campus
string or null <Campus.name> <= 100 characters
degree
required
string or null <Degree.name> <= 255 characters

Required for roles 3 (Student) and 4 (Alumni).

email
required
string <email> <= 255 characters
ext_ref
string or null <= 255 characters

Any identifier used in another system to identify this User

first_name
required
string <= 255 characters
graduation_year
required
integer or null [ 2100 .. 1900 ]

Required for roles 3 (Student) and 4 (Alumni).

last_name
required
string <= 255 characters
userrole
required
integer [ 2 .. 8 ]
Enum: 2 3 4 5 6 7 8

2 (SchoolAdmin) ; 3 (Student) ; 4 (Alumni) ; 5 (Teacher) ; 6 (Staff) ; 7 (External) ; 8 (Prospect). See UserRole API.

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{}

Delete User

Delete a User

path Parameters
user_id
required
string

Responses

Update User

Update a User

path Parameters
user_id
required
string
Request Body schema: application/json
birth_name
string or null <= 255 characters
civility
integer or null
Enum: 1 2 3

1 (male), 2 (female), 3 (not informed)

date_birth
string or null <YYYY-MM-DD>
email
required
string <email> <= 255 characters
ext_ref
string

Any identifier used in another system to identify this User

first_name
required
string <= 255 characters
last_name
required
string <= 255 characters
phone
string or null <E.164> <= 16 characters

Responses

Request samples

Content type
application/json
{
  • "birth_name": "string",
  • "civility": 1,
  • "date_birth": "string",
  • "email": "user@example.com",
  • "ext_ref": "string",
  • "first_name": "string",
  • "last_name": "string",
  • "phone": "string"
}

Response samples

Content type
application/json
{
  • "birth_name": "string",
  • "civility": 1,
  • "date_birth": "string",
  • "email": "user@example.com",
  • "ext_ref": "string",
  • "first_name": "string",
  • "id": 0,
  • "last_name": "string",
  • "phone": "string"
}

Update User External Reference

Update User external reference (ext_ref) only.

This endpoint allows updating only the ext_ref field without modifying other user information.

path Parameters
user_id
required
string
Request Body schema: application/json
required
ext_ref
required
string or null <= 255 characters

External reference ID from external system (e.g., ERP). Send empty string to delete.

Responses

Request samples

Content type
application/json
{
  • "ext_ref": "string"
}

Response samples

Content type
application/json
{
  • "ext_ref": "string"
}

Retrieve User profile

Retrieve detailled User profile

path Parameters
user_id
required
string

Responses

Response samples

Content type
application/json
{
  • "birth_name": "string",
  • "civility": 1,
  • "date_birth": "2019-08-24",
  • "educations": [
    ],
  • "email": "user@example.com",
  • "experiences": [
    ],
  • "ext_ref": "string",
  • "first_name": "string",
  • "hobbies": [
    ],
  • "id": 0,
  • "last_name": "string",
  • "phone": "string",
  • "userroles": [
    ]
}

UserRole

UserRole is the resource that links a User to a School with a given role. Possible roles are:

  • 2 SchoolAdmin: User who manage and animate the alumni platform.
  • 3 Student: User that currently study in your School.
  • 4 Alumni: User that studied in your School in the past.
  • 5 Teacher: User that teaches in your School.
  • 6 Staff: User that is part of your School staff.
  • 7 External: User with access to your platform, but that are not directly related to your School.
  • 8 Prospect: Prospective student that should join your School shortly.

NB: Your platform may not strictly follow the above definitions. Please confirm your platform's roles with your account manager.

Important, roles Student (3) and Alumni (4) have specific rules:

  • Always require degree and graduation_year fields.
  • Require campus field if `School.has_campus = true.
  • A Student / Alumni UserRole is always linked to an immutable Education automatically created on User profile.

Statuses:

  • Inactive: A UserRole is considered inactive when activation_date = null.
  • Active: A UserRole is considered active when activation_date != null.
    A User always need at least one active UserRole in order to log in to your platform.
  • Refused: A UserRole is considered as refused when deactivation_date != null. This usually represent User that did not pass the account validation.

Create UserRole

Create a UserRole

Request Body schema: application/json
activate
boolean or null

Update activation_date to current timestamp if passed as true, which marks this UserRole as active.

campus
integer or null <Campus.id>
deactivate
boolean or null

Update deactivation_date to current timestamp if passed as true, which marks this UserRole as deactivated.

degree
integer or null <Degree.id>
graduation_year
integer or null
role
required
integer
Enum: 2 3 4 5 6 7 8

2 (SchoolAdmin) ; 3 (Student) ; 4 (Alumni) ; 5 (Teacher) ; 6 (Staff) ; 7 (External) ; 8 (Prospect). See UserRole API.

user
required
integer <User.id>

Responses

Request samples

Content type
application/json
{
  • "activate": true,
  • "campus": 0,
  • "deactivate": true,
  • "degree": 0,
  • "graduation_year": 0,
  • "role": 2,
  • "user": 0
}

Response samples

Content type
application/json
{
  • "activation_date": "2019-08-24T14:15:22Z",
  • "campus": 0,
  • "deactivation_date": "2019-08-24T14:15:22Z",
  • "degree": 0,
  • "graduation_year": 0,
  • "id": 0,
  • "import_date": "2019-08-24T14:15:22Z",
  • "registration_date": "2019-08-24T14:15:22Z",
  • "role": 2,
  • "user": 0
}

Delete UserRole

Delete a UserRole

path Parameters
userrole_id
required
string

Responses

Retrieve UserRole

Retrieve a UserRole

path Parameters
userrole_id
required
string

Responses

Response samples

Content type
application/json
{
  • "activation_date": "2019-08-24T14:15:22Z",
  • "campus": 0,
  • "deactivation_date": "2019-08-24T14:15:22Z",
  • "degree": 0,
  • "graduation_year": 0,
  • "id": 0,
  • "import_date": "2019-08-24T14:15:22Z",
  • "registration_date": "2019-08-24T14:15:22Z",
  • "role": 2,
  • "user": 0
}

Update UserRole

Update a UserRole

path Parameters
userrole_id
required
string
Request Body schema: application/json
activate
boolean or null

Update activation_date to current timestamp if passed as true, which marks this UserRole as active.

campus
integer or null <Campus.id>
deactivate
boolean or null

Update deactivation_date to current timestamp if passed as true, which marks this UserRole as deactivated.

degree
integer or null <Degree.id>
graduation_year
integer or null
role
required
integer
Enum: 2 3 4 5 6 7 8

2 (SchoolAdmin) ; 3 (Student) ; 4 (Alumni) ; 5 (Teacher) ; 6 (Staff) ; 7 (External) ; 8 (Prospect). See UserRole API.

user
required
integer <User.id>

Responses

Request samples

Content type
application/json
{
  • "activate": true,
  • "campus": 0,
  • "deactivate": true,
  • "degree": 0,
  • "graduation_year": 0,
  • "role": 2,
  • "user": 0
}

Response samples

Content type
application/json
{
  • "activation_date": "2019-08-24T14:15:22Z",
  • "campus": 0,
  • "deactivation_date": "2019-08-24T14:15:22Z",
  • "degree": 0,
  • "graduation_year": 0,
  • "id": 0,
  • "import_date": "2019-08-24T14:15:22Z",
  • "registration_date": "2019-08-24T14:15:22Z",
  • "role": 2,
  • "user": 0
}