Skip to content

Deactivate a trusted origin

Request

OAuth 2.0 scope:
  • okta.trustedOrigins.manage

Deactivates a trusted origin. Sets the status to INACTIVE.

Path
trustedOriginIdstringrequired

id of the trusted origin

Example:7j2PkU1nyNIDe26ZNufR
curl -i -X POST \
  https://subdomain.okta.com/api/v1/trustedOrigins/7j2PkU1nyNIDe26ZNufR/lifecycle/deactivate

Responses

Success

Bodyapplication/json
createdstring, (date-time)read-only

Timestamp when the trusted origin was created

createdBystring

The ID of the user who created the trusted origin

idstringread-only

Unique identifier for the trusted origin

lastUpdatedstring, (date-time)read-only

Timestamp when the trusted origin was last updated

lastUpdatedBystring

The ID of the user who last updated the trusted origin

namestring, <= 255(TrustedOriginName)

Unique name for the trusted origin

originstring, <= 255(TrustedOriginOrigin)

Unique origin URL for the trusted origin. The supported schemes for this attribute are HTTP, HTTPS, FTP, Ionic 2, and Capacitor.

scopesArray of objects, <= 3(TrustedOriginScopes)

Array of scope types that this trusted origin is used for

statusstring(LifecycleStatus)
Enum:"ACTIVE""INACTIVE"
Response
{ "id": "tos10hu7rkbtrFt1M0g4", "name": "New trusted origin", "origin": "http://example.com", "status": "INACTIVE", "scopes": [ { … }, { … } ], "created": "2018-01-13T01:11:44.000Z", "createdBy": "00ut5t92p6IEOi4bu0g3", "lastedUpdated": "2018-01-13T01:11:44.000Z", "lastedUpdatedBy": "00ut5t92p6IEOi4bu0g3", "_links": { "activate": { … }, "self": { … } } }