# PSV - Diplomas
# Types
These are the valid diplomas that can be assigned to an athlete
| Diploma |
|---|
| Aspirant-initiator |
| Initiator |
| Initiator reining |
| Trainer B springen |
| Trainer B dressuur |
| Trainer B eventing |
| Trainer B reining |
| Trainer A springen |
| Trainer A dressuur |
| Trainer A eventing |
| Trainer A reining |
| Instructeur B springen |
| Instructeur B dressuur |
| Instructeur B eventing |
| Instructeur B reining |
| Bachelor LO |
| Master LO |
| Bachelor kinesitherapie |
| Master kinesitherapie |
| Jeugdsportcoördinator |
| G-sport lesgever |
| Bewegingsanimator |
# Events
--- PSV_DIPLOMAS_UPDATED ---
{
"event": "PSV_DIPLOMAS_UPDATED",
"data": {
"person_id": 123
}
}
# Validation
Tip
Validation mentioned will trigger for each entry in the payload array. In case of an error, the index of the element in that array will be included in the response with error messages as mentioned in the general information
{
"diplomas" : [
"array",
"each entry needs to be a valid diploma",
"4 entries maximum, due to limitation of old application"
]
}
# List
--- ENDPOINT ---
Domain: equidata
Url: /people/123/psv/diplomas
Method: GET
--- EXAMPLE RESPONSE ---
{
"diplomas": [
"Initiator",
"Trainer A springen",
"Bachelor LO"
]
}
# Update
Warning
Make sure to add all data to the payload every time you call this endpoint.
- If your intention is to add a new entry, include the existing entries in the payload.
- If your intention is to delete an existing entry, add all remaining entries in the payload.
Warning
This is a specific endpoint for PSV. When trying to call this endpoint as a different liga, you'll get an unauthorized response.
--- ENDPOINT ---
Domain: equidata
Url: /people/123/psv/diplomas
Method: PUT
--- EXAMPLE PAYLOAD ---
{
"diplomas": [
"Initiator",
"Trainer A springen",
"Bachelor LO"
]
}
--- EXAMPLE RESPONSE ---
{
"diplomas": [
"Initiator",
"Trainer A springen",
"Bachelor LO"
]
}