Update Platform by ID
Update a platform by ID
API Authentication Method | Supported |
---|---|
LTIK-AUTH-V2 | |
SERVICE-AUTH-V1 | |
Bearer | ✅ |
Path Parameters
The platform ID
Request Body
Platform URL (i.e. iss)
Platform client ID
Platform name
Platform authentication endpoint
Platform access token endpoint
authConfig object required
- 200
Returns the platform with the matching platformID.
Schema
Platform URL
Platform client ID
Platform name
Platform authentication endpoint
authConfig object required
Platform access token endpoint
Platform ID
Platform Public Key
true if the registration is active and allowed to launch
{
"url": "string",
"clientId": "string",
"name": "string",
"authenticationEndpoint": "string",
"authConfig": {
"key": "string"
},
"accesstokenEndpoint": "string",
"id": "string",
"publicKey": "string",
"active": true
}
{
"url": "https://platform.org",
"clientId": "10000000000001",
"name": "Platform 1",
"authenticationEndpoint": "https://platform.org/lti/authorize",
"authConfig": {
"key": "https://platform.org/lti/security/jwks",
"method": "JWK_SET"
},
"accesstokenEndpoint": "https://platform.org/login/oauth2/token",
"id": "f33d6c450b7632c1ff87586c4f150eee",
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAymGcob5nh7kKHWCNQ3J6\n4dX5fknKrwCifFtt32ov09IUHWj2WwTSnZOvi43a3IpJ+zCj9dUnW9NF+Axx+s/X\nNUIcJWLAZtf3QkDAChJZeEEsxptFm9bFfKZjXlq1e5XFFetZBgUN0d+KDJYZP8BV\nQ1bAIwRcrwDDqVXdmYJlwfejstSm8oPkW7NJv6HBsqcloJVlwIfl5ltZfAUiKgIP\nuecHkD16ma712VxSDhZALhhtgGNRbur64nfkEWenYjCyECWMEFJBBw+ef2FAR5g/\nWtvzvkHZmoG79p/9eBw1wM09edT/GnXMXrv9CLWaTz7aTrn0GCBSK/K1unBaF8Q4\nbzRDDrbETKSLc9TPbD7xw+RIMOjLnJXUSz/2FfqmJggzzBOnISwQsuFPIK8IaCdS\nM+CHpHuUHMY8cPNgn63HiWEuy9evrny6gAK40pIgCpTGdsf0EYvOYn/kP7wElCDf\nmogRFJKBRH7BN0Syk+aMmt1t4mPP1QTk3HdfUmdZTU3ueeaIJ18m6Kif88wtij4F\n6PZDrs6h5BCEZUtpl78+H030TSm7OrY9SlOPcD/K+4fZlrkiuFc2hhjb1awTHd2I\nGzWZ8ur3Dr7V/Zgdm6Tio33ot8dEhJcKXbC8V1jhiVtewyDGqFSOBTRuhxNIt0/0\n24z6Wb9bMUH/ztaywZjkIesCAwEAAQ==\n-----END PUBLIC KEY-----\n",
"active": true
}
PUT /admin/platforms/:platformID
Request
Request
const axios = require('axios');
const data = {
url: 'https://platform.org',
clientId: '10000000000001',
name: 'Platform 3',
authenticationEndpoint: 'https://platform.org/lti/authorize2',
authConfig: {
key: 'https://platform.org/lti/security/jwks2',
method: 'JWK_SET'
},
accesstokenEndpoint: 'https://platform.org/login/oauth2/token'
};
const url = `https://your.ltiaas.com/admin/platforms/${platform_id}`;
const config = {
headers: {
'Authorization': `Bearer ${API_KEY}`
}
};
try {
const response = await axios.put(url, data, config);
console.log(response.data);
} catch(error) {
console.log(error);
}
const axios = require('axios');
const data = {
url: 'https://platform.org',
clientId: '10000000000001',
name: 'Platform 3',
authenticationEndpoint: 'https://platform.org/lti/authorize2',
authConfig: {
key: 'https://platform.org/lti/security/jwks2',
method: 'JWK_SET'
},
accesstokenEndpoint: 'https://platform.org/login/oauth2/token'
};
const url = `https://your.ltiaas.com/admin/platforms/${platform_id}`;
const config = {
headers: {
'Authorization': `Bearer ${API_KEY}`
}
};
try {
const response = await axios.put(url, data, config);
console.log(response.data);
} catch(error) {
console.log(error);
}
const axios = require('axios');
const data = {
url: 'https://platform.org',
clientId: '10000000000001',
name: 'Platform 3',
authenticationEndpoint: 'https://platform.org/lti/authorize2',
authConfig: {
key: 'https://platform.org/lti/security/jwks2',
method: 'JWK_SET'
},
accesstokenEndpoint: 'https://platform.org/login/oauth2/token'
};
const url = `https://your.ltiaas.com/admin/platforms/${platform_id}`;
const config = {
headers: {
'Authorization': `Bearer ${API_KEY}`
}
};
try {
const response = await axios.put(url, data, config);
console.log(response.data);
} catch(error) {
console.log(error);
}
const axios = require('axios');
const data = {
url: 'https://platform.org',
clientId: '10000000000001',
name: 'Platform 3',
authenticationEndpoint: 'https://platform.org/lti/authorize2',
authConfig: {
key: 'https://platform.org/lti/security/jwks2',
method: 'JWK_SET'
},
accesstokenEndpoint: 'https://platform.org/login/oauth2/token'
};
const url = `https://your.ltiaas.com/admin/platforms/${platform_id}`;
const config = {
headers: {
'Authorization': `Bearer ${API_KEY}`
}
};
try {
const response = await axios.put(url, data, config);
console.log(response.data);
} catch(error) {
console.log(error);
}
const axios = require('axios');
const data = {
url: 'https://platform.org',
clientId: '10000000000001',
name: 'Platform 3',
authenticationEndpoint: 'https://platform.org/lti/authorize2',
authConfig: {
key: 'https://platform.org/lti/security/jwks2',
method: 'JWK_SET'
},
accesstokenEndpoint: 'https://platform.org/login/oauth2/token'
};
const url = `https://your.ltiaas.com/admin/platforms/${platform_id}`;
const config = {
headers: {
'Authorization': `Bearer ${API_KEY}`
}
};
try {
const response = await axios.put(url, data, config);
console.log(response.data);
} catch(error) {
console.log(error);
}
const axios = require('axios');
const data = {
url: 'https://platform.org',
clientId: '10000000000001',
name: 'Platform 3',
authenticationEndpoint: 'https://platform.org/lti/authorize2',
authConfig: {
key: 'https://platform.org/lti/security/jwks2',
method: 'JWK_SET'
},
accesstokenEndpoint: 'https://platform.org/login/oauth2/token'
};
const url = `https://your.ltiaas.com/admin/platforms/${platform_id}`;
const config = {
headers: {
'Authorization': `Bearer ${API_KEY}`
}
};
try {
const response = await axios.put(url, data, config);
console.log(response.data);
} catch(error) {
console.log(error);
}
const axios = require('axios');
const data = {
url: 'https://platform.org',
clientId: '10000000000001',
name: 'Platform 3',
authenticationEndpoint: 'https://platform.org/lti/authorize2',
authConfig: {
key: 'https://platform.org/lti/security/jwks2',
method: 'JWK_SET'
},
accesstokenEndpoint: 'https://platform.org/login/oauth2/token'
};
const url = `https://your.ltiaas.com/admin/platforms/${platform_id}`;
const config = {
headers: {
'Authorization': `Bearer ${API_KEY}`
}
};
try {
const response = await axios.put(url, data, config);
console.log(response.data);
} catch(error) {
console.log(error);
}