Files
developer.sailpoint.com/docs/api/nerm/v1/create-unassign-action.api.mdx
2024-03-06 16:17:34 -05:00

45 lines
12 KiB
Plaintext

---
id: create-unassign-action
sidebar_label: Create an unassign action
hide_title: true
hide_table_of_contents: true
api: eJztWOtv2zYQ/1cIfWoBP/JcuwADlhYZ4GFtisTZPmSGcZZOFhOJ1EjKjmH4f+8dKTl+JXGKAPtSB3Ak8nj3u/fR80iXaMBJrXpJdBbFBsHhjQJr5Vidx7wRtaIEbWxk6d/Oos+eSIASVU0owFN2RD9Dkeo811OpxsJWZamN40c9usPYWTGVeS4UYiKcFiMUQWAiIHVohMukrXkJemo2300zGWcCDAon/dExuozoJxLEVJv7lAQOw7mhTN6L9taq0Tlaj8/iLlxFZd0qnlSvo6nR6qLMkXR/d/6tZ2uiJzgq7cQMnZB8pEBFXFuiItqb3vsO2dTB2EZnt1GDtJZko0ErMvhfhdZ90sksOpv7V2mQHORMha0o1sRNOd6Cssxl7B3YvbPsnnlk4wwL4Cc3K5EcFiCRzNKwu8mGlnc3bPSKAzJZIbbOkN5ETOYogFBFVUUErS3Y61HEobLU3a2+1CYfYa7V2JLp2Vz4AGxIOnh8nB58OEqS9uHx6KR9coiH7Y8IB+3DX9IjOP11dPoh/hgtNsRto30Z3cqK0OkujOvAblQ7pIMVPtxEanQhQJARU5ljh0GBiTM5wVX7jTQRQ0izFKqcLJhCbrcg9XZC4DxpmAqKRwq7NVSe1YIkO+lqlGvJvfAfNoctKfqCo48ODvjfuvyLh5KCgqQ0pJwUICaQS17zERv9DM43Ds6dofAj0XkVWApyitHktDo6KV64klJhMhw+IMZGVyVz5CUu2I4qr7Dke5nK2Ee2j+QSxvhmtmZmO+1sM13lHF4qQfNjpoYkGdbhiWYIdqinCs3zCbgLZ51/S1YNNuoLJIJ7mPUEnn3jkjr317vdmh4silBSUsh8CI5sOKrc6y37ZJwsWQrrNLPxuLw4xk3JvGxkzwfQvvauNQmsQ27WaoAxMNuFWjos7LP6OnxwW3nj9VvTBPfT5Ta605lKNP4+5tMd6uu0fQcK19cGJFHhdGgduGoPgHs5hBiKwHCJ9Tq8fs5AjV/wApftCbZET0H9dKnEXwj81EdTSMUR9j+2mlZk72VZwoiX3lDykutzomvz2yF5r6i70NsgaDhTLax579Vt/6nZbHTbk10N9hMk4ipUF5pgabYehcLRTJ2d13RXrfAypUjfbpsNtJ7yrftPPrpoPU33N1N5MRfGaGOjxSAocbpLiR7hM4rayzWaCdVBf4bUMegqozhw+NpAgZ7k9IIPMfqT9lXKPT8JIIvcRnYuCqoQ3GjC+mhZCz39apJda2NmwuqCrhlMNWV3Tw11/NqDpD3vab4zldrPPSW4jN66G4OL7TaXpGaBaK23jfXuqUxOxzLnSnvW7c7JAKDcVyhw0VHkREKkZ4hcjrpQSjo8ASM5NEI9WpIHhevIjiAuMNZbV7e+JxeK6EVAFW5iMV1/SFvD6g0YX1wZ6WYe4Ajp4mXOK1bvdrC6fc0OCThWiZb+YaVYW0/GKeiJaCU8/NHUzr6+R75i0fdvM12Z8Bixldn3V4+3oYvGRTsHxLURcL9+tWmgF2f41bq6zHapUs0A2KmBz2HnoHOwkkRfL66+CLo0bnuEArDZFDHwZMmTl/cKxDF3Z8oVUehEpjPBvtfUKagQkZ1oV0glvMlQTSQFKBcmBknJgzSiMyjlgyP60ut7i3K4FqBWdp68z2+CnT9m6M8fAd7mR4CQKDw8dMscJFfiUBHmdUG53Qx0rh9bJYWSMuMyROTz+Qgs3ph8seBlSh3DeTx4LBw+jekAQsJzMKX4Pc7YpcG57T6DYvK88lPbZinmZhFOnMdcvp+lHaxUym+X133O/vpnDYppPmNgyoMTfZ9F/9IfvejQE/xvH7w+j3KajCqq3UQT+PLnOwbBko4=
sidebar_class_name: "post api-method"
info_path: docs/api/nerm/v1/nerm-api
custom_edit_url: "https://github.com/sailpoint-oss/developer.sailpoint.com/issues/new?assignees=&labels=&template=bug-report.md&title=%5BBug%5D+Your+Bug+Report+Here Requesting changes to 'Create an unassign action' (create-unassign-action)"
---
import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import TabItem from "@theme/TabItem";
<h1 className={"openapi__heading"}>Create an unassign action</h1>
<MethodEndpoint method={"post"} path={"/workflow_actions/unassign_actions"}></MethodEndpoint>
Create an unassign action. The following supporting objects will need to be created after this action is created (which are tied together via workflow_action_id) - workflow_action_roles. These supporting objects must be created for this action to be complete (APIs for these supporting objects not yet implemented, use UI).
## Request
<MimeTabs className={"openapi-tabs__mime"}><TabItem label={"application/json"} value={"application/json-schema"}><details style={{}} className={"openapi-markdown__details mime"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-mime"}><h3 className={"openapi-markdown__details-summary-header-body"}>Body</h3><strong className={"openapi-schema__required"}>required</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>workflow_action</strong><span className={"openapi-schema__name"}> object</span></span></summary><div style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"workflow_id"} required={false} schemaName={"uuid"} qualifierMessage={undefined} schema={{"type":"string","format":"uuid","required":true,"description":"The workflow the workflow action belongs to.","example":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8"}}></SchemaItem><SchemaItem collapsible={false} name={"description"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","required":true,"description":"The description of the workflow action.","example":"Un-assigns roles from a profile."}}></SchemaItem><SchemaItem collapsible={false} name={"archived"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":false,"description":"If the workflow action is archived or not.","example":false}}></SchemaItem></div></details></SchemaItem></ul></details></TabItem></MimeTabs><div><div><ApiTabs><TabItem label={"200"} value={"200"}><div>
Expected response to a valid request
</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>workflow_action</strong><span className={"openapi-schema__name"}> object</span></span></summary><div style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"workflow_id"} required={false} schemaName={"uuid"} qualifierMessage={undefined} schema={{"type":"string","format":"uuid","required":true,"description":"The workflow the workflow action belongs to.","example":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8"}}></SchemaItem><SchemaItem collapsible={false} name={"description"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","required":false,"description":"The description of the workflow action.","example":"Require approval from another user or a group of users with a specific role."}}></SchemaItem><SchemaItem collapsible={false} name={"page_id"} required={false} schemaName={"uuid"} qualifierMessage={undefined} schema={{"type":"string","format":"uuid","required":true,"description":"The page the workflow action should render.","example":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8"}}></SchemaItem><SchemaItem collapsible={false} name={"add_requester_as_owner"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":true,"description":"If the requester should be added as the owner of the profile to be created.","example":true}}></SchemaItem><SchemaItem collapsible={false} name={"email_attribute_id"} required={false} schemaName={"uuid"} qualifierMessage={undefined} schema={{"type":"string","format":"uuid","required":false,"description":"The attribute storing the email address for the workflow action.","example":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8"}}></SchemaItem><SchemaItem collapsible={false} name={"email_addresses"} required={false} schemaName={"text[]"} qualifierMessage={undefined} schema={{"type":"array","required":false,"items":{"type":"string","format":"text"},"description":"The email addresses for the workflow action.","example":["johndoe@gmail.com","janedoe@gmail.com"]}}></SchemaItem><SchemaItem collapsible={false} name={"new_status"} required={false} schemaName={"text"} qualifierMessage={undefined} schema={{"type":"string","format":"text","required":false,"description":"The new status for the Status Change workflow action.","example":"Active, Inactive, On Leave, Terminated"}}></SchemaItem><SchemaItem collapsible={false} name={"archived"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":false,"description":"If the workflow action is archived or not.","example":false}}></SchemaItem><SchemaItem collapsible={false} name={"skippable"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":false,"description":"If the workflow action is skippable or not.","example":false}}></SchemaItem><SchemaItem collapsible={false} name={"requires_comment"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":false,"description":"If the workflow action requires a comment or not.","example":false}}></SchemaItem></div></details></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"workflow_action\": {\n \"workflow_id\": \"33f072dd-13b4-41e1-8ea0-16f2a59b57c8\",\n \"description\": \"Require approval from another user or a group of users with a specific role.\",\n \"page_id\": \"33f072dd-13b4-41e1-8ea0-16f2a59b57c8\",\n \"add_requester_as_owner\": true,\n \"email_attribute_id\": \"33f072dd-13b4-41e1-8ea0-16f2a59b57c8\",\n \"email_addresses\": [\n \"johndoe@gmail.com\",\n \"janedoe@gmail.com\"\n ],\n \"new_status\": \"Active, Inactive, On Leave, Terminated\",\n \"archived\": false,\n \"skippable\": false,\n \"requires_comment\": false\n }\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"400"} value={"400"}><div>
Bad Request - unable to complete.
</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><div><span className={"badge badge--info"}>oneOf</span><SchemaTabs><TabItem label={"InvalidJson"} value={"0-item-properties"}><SchemaItem collapsible={false} name={"error"} required={false} schemaName={""} qualifierMessage={undefined} schema={{"example":"Invalid JSON syntax. Please check your syntax and try again."}}></SchemaItem></TabItem><TabItem label={"ValidationErrors"} value={"1-item-properties"}><SchemaItem collapsible={false} name={"error"} required={false} schemaName={""} qualifierMessage={undefined} schema={{"example":"The <object> failed to create/update"}}></SchemaItem><SchemaItem collapsible={false} name={"errors"} required={false} schemaName={""} qualifierMessage={undefined} schema={{"example":{"attribute":"can't be blank"}}}></SchemaItem></TabItem></SchemaTabs></div></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"500"} value={"500"}><div>
Internal Server Error - returned on unhandled exceptions.
</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"error"} required={false} schemaName={""} qualifierMessage={undefined} schema={{"description":"A message describing the error","example":"Sorry something went wrong"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"error\": \"Sorry something went wrong\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem></ApiTabs></div></div>