Download OpenAPI specification:Download
This documentation describes how to manage legal guardians assigned to an user.
This API requires the Guardian feature.
Creates a new legal Guardian
object (User Guardian) |
{- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@emailserver.com",
- "contact_number": "+32 12 34 56 78",
- "relationship": "father"
}
{- "data": {
- "id": 2,
- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@emailhost.com",
- "contact_number": "john.doe@emailhost.com",
- "relationship": "father"
}
}
Updates an existing Guardian user
object (User Guardian) |
{- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@emailserver.com",
- "contact_number": "+32 12 34 56 78",
- "relationship": "father"
}
{- "data": {
- "id": 2,
- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@emailhost.com",
- "contact_number": "john.doe@emailhost.com",
- "relationship": "father"
}
}
Gets the list of guardians assigned to a specific user
Array of objects (User Guardian) |
{- "data": [
- {
- "id": 2,
- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@emailhost.com",
- "contact_number": "john.doe@emailhost.com",
- "relationship": "father"
}
]
}
Retrieve a paginated response of guardian action logs
userId required | string User ID |
Array of objects (User Guardian) | |
object |
{- "data": [
- {
- "id": 2,
- "date": "2020-01-01T00:00:00.000Z",
- "action": "Approved XYZ role",
- "guardian": {
- "id": 2,
- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@emailhost.com",
- "contact_number": "john.doe@emailhost.com",
- "relationship": "father"
}
}
], - "meta": {
- "pagination": {
- "total": "string",
- "count": "string",
- "per_page": "string",
- "current_page": "string",
- "total_pages": "string",
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Retrieve a paginated response of guardian consent for roles
userId required | string User ID |
Array of objects (Guardian Role Consents) | |
object |
{- "data": [
- {
- "id": "string",
- "role_name": "string",
- "team_name": "string",
- "role_start_date": "2019-08-24",
- "consent_status": "string"
}
], - "meta": {
- "pagination": {
- "total": "string",
- "count": "string",
- "per_page": "string",
- "current_page": "string",
- "total_pages": "string",
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Retrieve a paginated response of guardian consent for activities
userId required | string User ID |
Array of objects (Guardian Activity Consents) | |
object |
{- "data": [
- {
- "id": "string",
- "activity_name": "string",
- "activity_date": "2019-08-24",
- "consent_status": "string"
}
], - "meta": {
- "pagination": {
- "total": "string",
- "count": "string",
- "per_page": "string",
- "current_page": "string",
- "total_pages": "string",
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}