--- id: patch-users sidebar_label: Update multiple users hide_title: true hide_table_of_contents: true api: {"operationId":"patchUsers","description":"Update multiple users","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","required":true,"writeOnly":true},"name":{"type":"string"},"email":{"type":"string","format":"email"},"type":{"type":"string","enum":["NeprofileUser","NeaccessUser"],"default":"NeprofileUser"},"profile_id":{"type":"string","format":"uuid"},"title":{"type":"string"},"status":{"type":"string","enum":["Active","Disabled"]},"login":{"type":"string"},"admin":{"type":"boolean"},"group_strings":{"type":"string","example":"Administrator_group,Developer_group"}}}}}}}}},"responses":{"200":{"description":"Expected response to a valid request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readonly":true},"uid":{"type":"string","minLength":32,"maxLength":32,"readonly":true},"name":{"type":"string"},"email":{"type":"string","format":"email"},"type":{"type":"string","enum":["NeprofileUser","NeaccessUser"],"default":"NeprofileUser"},"title":{"type":"string"},"status":{"type":"string","enum":["Active","Disabled"]},"login":{"type":"string"},"last_login":{"type":"string","format":"date-time","readOnly":true},"cookies_accepted_at":{"type":"string","format":"date-time","readOnly":true},"preferred_language":{"type":"string"}}}}}},{"type":"object","properties":{"info":{"type":"string","example":"job has started"},"job_status":{"type":"object","properties":{"job_id":{"type":"string","example":"3ce88e47ad6dba2ddf349d21"},"status":{"type":"string","example":"queued"}}},"status":{"type":"int","example":200}}}]}}}},"400":{"description":"Bad Request - unable to complete.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"error":{"example":"Invalid JSON syntax. Please check your syntax and try again."}}},{"type":"object","properties":{"error":{"example":"The failed to create/update"},"errors":{"example":{"attribute":"can't be blank"}}}}]}}}},"500":{"description":"Internal Server Error - returned on unhandled exceptions.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"description":"A message describing the error","example":"Sorry something went wrong"}}}}}}},"method":"patch","path":"/users","jsonRequestBodyExample":{"users":[{"id":"3fa85f64-5717-4562-b3fc-2c963f66afa6","name":"string","email":"user@example.com","type":"NeprofileUser","profile_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6","title":"string","status":"Active","login":"string","admin":true,"group_strings":"Administrator_group,Developer_group"}]},"info":{"version":"1.0.0","title":"SecZetta Lifecycle API","description":"The Lifecycle API can be used to access and modify various resources in your environment.","license":{"name":"MIT"}},"postman":{"name":"Update multiple users","description":{"content":"Update multiple users","type":"text/plain"},"url":{"path":["users"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"PATCH","body":{"mode":"raw","raw":"\"\"","options":{"raw":{"language":"json"}}}}} sidebar_class_name: "patch api-method" info_path: nerm/api/seczetta-lifecycle-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 'Update multiple users' (patch-users)" --- import ApiTabs from "@theme/ApiTabs"; 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 DiscriminatorTabs from "@theme/DiscriminatorTabs"; import TabItem from "@theme/TabItem"; ## Update multiple users Update multiple users
Request Body required
    users object[]
Expected response to a valid request
Schema
    oneOf
    users object[]
    = 32 characters` and `<= 32 characters`"} defaultValue={undefined}>
    job_status object
Bad Request - unable to complete.
Schema
    oneOf
Internal Server Error - returned on unhandled exceptions.
Schema