mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-11 04:19:42 +00:00
45 lines
12 KiB
Plaintext
45 lines
12 KiB
Plaintext
---
|
|
id: create-set-attributes-action
|
|
sidebar_label: Create a set attributes action
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJztWG1v4jgQ/itWPrUSBfp2u4d00rGrnsTpdrsq7N2HHkImmRC3iZ2zHShC/PebsROaAGXpqqf7slSiiT0ePzPzzIzNKlA5aG6FkoMo6AWhBm5hCLZvrRbTwoLphzQbtIIITKhF7t56wUcnyTgzYBnfSDPuxNtslACLVZqqhZAzZoo8V9rSo5o+QGgNW4g0ZRIgYlaxKTC/dcR4bEEzm4hKF8OnavJkkYgwYVwDs8ItnYFNUH4uOFso/RjjhhO/biKiU3a2M4p4J894HVAD+wBmhbF1YLFqwiphqyxPAT1x0v8yMKXQCxqlsmyJ7hK0JAOJWlusQNmvg9M2etjymQl690EFudzJBONWoOGfAoz9oKJl0Fu5V6EBY2Z1Aa0gVKhNWprieZ6K0MW082AoWKvAhAlknJ7sMgcMn4eEe+aaGIDONDS75axXLBBRTdige+UMhdEdGUdUQVGgQGsHdpNTxJmN7bb+Urp8CqmSM4OuJ3fBEydH4sLLy7j77iKKzs4vp1dnV+dwfvYeePfs/Kf4gl//PL1+F74P1lvb7aL9NrraCFPxPoxNYMN6cpyYUyINpkwOoYhFyOY8LaBNyLgOEzGHuhOnSqXAfebFvEjRjTFPzQ6uwV4clDWVUoakRO41oDlVa9zZCltB3Un6tfuQY0yOPPQhv+h26V8TxM0T2kRZUol6S9FAQWOOu8EPmr4xTffy4Xt4eudVMgyKVhg0FmuVMY6koeKKJUoThzibaVXkpJGGqIbbpM5njYx1dM75DN7M16Rsr59NooqU6CUj0N/nah5Fk5KeoCfcTNRCgj6chftwlkm4UVVhww6BW1BbM07Aqa9Cgr6ORQrNBtiwg7ZClJgUIn3uWq/27Is82ahkxipS43C57Qg3JvOmpR0m0LH+Li3xqn1ulmZwrflyH2phITMH7bXwZHfyxtnXsASOs+U+eFCJjBT8OqPVbezwOP3AJTTHxrijhMXEWG6LIwAeFRBUyLzCDdahf/2YcDn7RhSobM+hxQaSl0+3kv0BnJ5GoDMhiWH/Y79pBeZR5Dmf0tAb7rzRemjr0v1mgtHLyi70NggqzVgLS91Htdy/SjVb3fZqX4P9wCN256sLHmoL6YzFwlGdP9uv6a5Kwm2MTN9tmxW0gXSt+3daum69LPcnSbltbrRW2gTrsTfiep8RA8SnJbaXIeg51kG3Bs3RYAstiTgSTUOiRym+wFMIbqV5lXGHTwJAW+4i67MMKwQ1Gj8+3dRCJ9840ymtl8yoDG8eJLWgcC80dvwygmg9zSm6UOXKnXtybhN862wdXEyneRuphnGFcR4yLkiFTnFxYm1uep3OCt3Apf3MM1i3JYYScaklABWlDs8FLp5zLYggviptxL3ZJb8DHmYQqp2L3ciJM4ny2LSMmEl/RQvxOoQ2azJyTPjCQgu7dACngDcy3S/IyPtxfXpIYfE46kKbKJFRZK0To0R0QjjiH36rKuhIPQJdufD7l6UqtH8MyNfEgLvn29FNFai9x8TGQfC4rrXtoOPO9PUSu0l8IWNFKCiyXtl5u9vu1vLp883dJ4Y3yd2wIBerSRZyOmTSIcyFhochNWpMG5apSMRLRgRQ2DSwJqGzcJYJyZzfQM4FcpVqFIHEPAI8rRMo6RgSfBqMnFuJuRmXtZnDV/5txKvnjP3xY8F/8WOBTyA6WnTylAuq075SrMpyc7+dAL6u7C04mLIJlSpctFpNuYGvOl2vaRgTS1OWj5/LiktyXAA8orMyFoBHWFKYfcDPRgSNxDETqNBsl2tqKH5FP6QSf1B2XKumX26HI6oN5Y8gSHZao/mCDlf43Qv+xj98Ub5vuF9KaHwVpHh6KrC+o4zXS59/AUgfq9k=
|
|
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 a set attributes action' (create-set-attributes-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 a set attributes action</h1>
|
|
|
|
<MethodEndpoint method={"post"} path={"/workflow_actions/set_attributes_actions"}></MethodEndpoint>
|
|
|
|
|
|
|
|
Create a set attributes 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_set_attributes. 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":"Set attribute(s) to a specific value."}}></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> |