Okta Admin Management API
/Access Controls
//
Replace a trusted origin
OAuth 2.0 scope:
- okta.trustedOrigins.manage
Replaces a trusted origin
Unique origin URL for the trusted origin. The supported schemes for this attribute are HTTP, HTTPS, FTP, Ionic 2, and Capacitor.
Array of scope types that this trusted origin is used for
- https://subdomain.okta.comhttps://subdomain.okta.com/api/v1/trustedOrigins/{trustedOriginId}
curl -i -X PUT \
https://subdomain.okta.com/api/v1/trustedOrigins/7j2PkU1nyNIDe26ZNufR \
-H 'Content-Type: application/json' \
-d '{
"value": {
"id": "tosue7JvguwJ7U6kz0g3",
"name": "Updated Example trusted origin",
"origin": "http://updated.example.com",
"scopes": [
{
"type": "CORS"
},
{
"type": "REDIRECT"
}
],
"status": "ACTIVE",
"created": "2017-12-16T05:01:12.000Z",
"createdBy": "00ut5t92p6IEOi4bu0g3",
"lastUpdated": "2017-12-16T05:01:12.000Z",
"lastUpdatedBy": "00ut5t92p6IEOi4bu0g3",
"_links": {
"self": {
"href": "https://${yourOktaDomain}/api/v1/trustedOrigins/tosue7JvguwJ7U6kz0g3",
"hints": {
"allow": [
"GET",
"PUT",
"DELETE"
]
}
},
"deactivate": {
"href": "https://${yourOktaDomain}/api/v1/trustedOrigins/tosue7JvguwJ7U6kz0g3/lifecycle/deactivate",
"hints": {
"allow": [
"POST"
]
}
}
}
}
}'Success
Unique origin URL for the trusted origin. The supported schemes for this attribute are HTTP, HTTPS, FTP, Ionic 2, and Capacitor.
Array of scope types that this trusted origin is used for
Specifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
Response
{ "value": { "id": "tosue7JvguwJ7U6kz0g3", "name": "Updated Example trusted origin", "origin": "http://updated.example.com", "scopes": [ … ], "status": "ACTIVE", "created": "2017-12-16T05:01:12.000Z", "createdBy": "00ut5t92p6IEOi4bu0g3", "lastUpdated": "2017-12-16T05:01:12.000Z", "lastUpdatedBy": "00ut5t92p6IEOi4bu0g3", "_links": { … } } }