API that changes identity LCS from Active to Terminated

Can some provide the steps on how to change an identity API from active to terminated?

I did see an API called set life cycle state… I appears to be the one one im looking for but my test don’t appear to be working.

tried the following post callout from postman
{{api-url}}/v3/identities/2c91808673e3b1550173e5d05f953751/set-lifecycle-state

body:

{
  "lifecycleStateId": "ec5bb3df31c24580b0d30b9007fd7e37"
}

I’m doing something wrong but i’m not exactly sure what.

getting the following error

{
    "errorName": "NotSupportedException",
    "errorMessage": "RESTEASY003065: Cannot consume content type",
    "trackingId": "9168c3888e0d424ba3101b9972282187"
}
1 Like

Hi @ctiongson,

Looks like your Content-Type is set incorrectly, you will need to use Content-Type as application/json.


image

3 Likes

TYVM for the quick response worked like a charm.

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.