Update the enablement status of the matching agent.
PUT {{baseUrl}}/app/rest/agents/:agentLocator/enabledInfo?fields=<string>
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fields | string |
Request Body
{"status"=>"<boolean>", "comment"=>{"timestamp"=>"<string>", "text"=>"<string>", "user"=>{"username"=>"<string>", "name"=>"<string>", "id"=>"<long>", "email"=>"<string>", "lastLogin"=>"<string>", "password"=>"<string>", "hasPassword"=>"<boolean>", "realm"=>"<string>", "href"=>"<string>", "properties"=>{"count"=>"<integer>", "href"=>"<string>", "property"=>[{"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "inherited"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "inherited"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}, "roles"=>{"role"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "groups"=>{"count"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "group"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "locator"=>"<string>", "avatars"=>{"urlToSize20"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "urlToSize28"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "urlToSize32"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "urlToSize40"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "urlToSize56"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "urlToSize64"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "urlToSize80"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "enabled2FA"=>"<boolean>"}}, "statusSwitchTime"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"status":"\u003cboolean\u003e","comment":{"timestamp":"\u003cstring\u003e","text":"\u003cstring\u003e","user":{"username":"\u003cstring\u003e","name":"\u003cstring\u003e","id":"\u003clong\u003e","email":"\u003cstring\u003e","lastLogin":"\u003cstring\u003e","password":"\u003cstring\u003e","hasPassword":"\u003cboolean\u003e","realm":"\u003cstring\u003e","href":"\u003cstring\u003e","properties":{"count":"\u003cinteger\u003e","href":"\u003cstring\u003e","property":[{"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"inherited":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"inherited":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]},"roles":{"role":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"groups":{"count":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"group":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"locator":"\u003cstring\u003e","avatars":{"urlToSize20":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"urlToSize28":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"urlToSize32":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"urlToSize40":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"urlToSize56":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"urlToSize64":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"urlToSize80":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"enabled2FA":"\u003cboolean\u003e"}},"statusSwitchTime":"\u003cstring\u003e"}