curl --request POST \
--url https://api.scholarlysoftware.com/api/v1/admin_assistant_roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "admin_assistant_role",
"attributes": {
"effective_from": "2023-12-25",
"external_id": "AAR-001",
"effective_to": "2023-12-25"
},
"relationships": {
"admin_assistant": {
"data": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"faculty_member": {
"data": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "admin_assistant_role",
"attributes": {
"effective_from": "2023-12-25",
"custom_fields": {},
"external_id": "AAR-001",
"effective_to": "2023-12-25"
},
"relationships": {
"admin_assistant": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"faculty_member": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}Create a new admin assistant role mapping
curl --request POST \
--url https://api.scholarlysoftware.com/api/v1/admin_assistant_roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "admin_assistant_role",
"attributes": {
"effective_from": "2023-12-25",
"external_id": "AAR-001",
"effective_to": "2023-12-25"
},
"relationships": {
"admin_assistant": {
"data": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"faculty_member": {
"data": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "admin_assistant_role",
"attributes": {
"effective_from": "2023-12-25",
"custom_fields": {},
"external_id": "AAR-001",
"effective_to": "2023-12-25"
},
"relationships": {
"admin_assistant": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"faculty_member": {
"links": {
"related": "<string>"
},
"meta": {},
"data": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer token
Show child attributes
admin assistant role created
Show child attributes