External Link objects represent links between an external service and a Pathwright user.
external
or saml2
. Only external
links can currently be deleted via this API.{
"id": 123,
"link_type": "saml2",
"external_id": "some_account@gsuite.example.com",
"last_external_update": "2017-10-09T21:36:40.707776Z"
}
Endpoint: https://yourschool.pathwright.com/api/public/link/
Method: GET
Gives a list of all active external links in your school.
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 1,
"user": 123,
"link_type": "saml2",
"external_id": "saml2.user@example.com",
"last_external_update": "2017-10-09T21:36:40.707776Z"
},
{
"id": 2,
"user": 456,
"link_type": "external",
"external_id": "my_external_id",
"last_external_update": "2017-10-09T21:36:40.707776Z"
}
]
}
Endpoint: https://yourschool.pathwright.com/api/public/link/
Method: POST
Links a school member to an external ID of some sort.
Returns the link object, representing all profile information visible and updatable via this API.
{
"id": 123,
"link_type": "external",
"external_id": "some_external_user_id_123",
"last_external_update": "2017-10-19T21:36:40.707776Z"
}
[//]: <> (TODO: Add retrieve/update)
Endpoint: https://yourschool.pathwright.com/api/public/link/{link_id}/
Method: DELETE
Removes an external link for a school member.
Currently disallowed for SAML2.
[//]: <> (TODO: Spec, implement, and document SAML2 revocation)
204 No Content