Skip to content

Upload the data to be deleted in Okta

Request

OAuth 2.0 scope:
  • okta.identitySources.manage

Uploads external IDs of entities that need to be deleted in Okta from the identity source for the given session

Path
identitySourceIdstringrequired

The ID of the identity source for which the session is created

Example:0oa3l6l6WK6h0R0QW0g4
sessionIdstringrequired

The ID of the identity source session

Example:aps1qqonvr2SZv6o70h8
Bodyapplication/json
entityTypestring

The type of data to bulk delete in a session. Currently, only USERS is supported.

Value:"USERS"
profilesArray of objects(IdentitySourceUserProfileForDelete)

Array of profiles to be deleted

curl -i -X POST \
  https://subdomain.okta.com/api/v1/identity-sources/0oa3l6l6WK6h0R0QW0g4/sessions/aps1qqonvr2SZv6o70h8/bulk-delete \
  -H 'Content-Type: application/json' \
  -d '{
    "entityType": "USERS",
    "profiles": [
      {
        "externalId": "EXT123456784C2IF"
      },
      {
        "externalId": "EXT123456784C3IF"
      },
      {
        "externalId": "EXT123456784C4IF"
      }
    ]
  }'

Responses

Accepted

Response
No content