Account Operations
Copy link

Credential Warning

Note: Sys Admin or Client Admin account permissions required to execute account operations. Sys Admin have full control over operations Client Admin can only administer their accounts within their client and cannot add or remove a user’s clients

get /AppSpiderEnterprise/rest/v1/Account/GetAccount?accountId=<accountId>

Description
Copy link

Retrieves a user account

Parameters
Copy link

NameTypeRequiredDescription
accountIdguidYrequest parameter id of the account to return

Response Messages
Copy link

Response Status CodeReasonDescription
200SuccessResponse contains the account info
400FailureNo account found

Response example:
Copy link

{ "type": "object", "properties": { "Account": { "type": "object", "properties": { "UserName": { "type": "string" }, "Password": { "type": "null" }, "FirstName": { "type": "string" }, "LastName": { "type": "string" }, "DefaultTimeZone": { "type": "string" }, "Email": { "type": "string" }, "Enabled": { "type": "boolean" }, "Locked": { "type": "boolean" }, "External": { "type": "boolean" }, "Clients": { "type": "array", "items": [ { "type": "object", "properties": { "Roles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "NotInRoles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "Groups": { "type": "array", "items": {} }, "ClientInfo": { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } }, "required": [ "Roles", "NotInRoles", "Groups", "ClientInfo" ] } ] }, "UserId": { "type": "string" } }, "required": [ "UserName", "Password", "FirstName", "LastName", "DefaultTimeZone", "Email", "Enabled", "Locked", "External", "Clients", "UserId" ] }, "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "null" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "Account", "IsSuccess", "Reason", "ErrorMessage", "Links" ] }

get /AppSpiderEnterprise/rest/v1/Account/GetAccount?userName=<userName> Description Retrieves the account for the username

Parameters

ParametersTypeRequiredDescription
userNamestringYThe username

Response Messages

Response status codeReasonDescription
200SuccessResponse contains the account info for that username
400FailureNo account found

Response example:

{ "type": "object", "properties": { "Account": { "type": "object", "properties": { "UserName": { "type": "string" }, "Password": { "type": "null" }, "FirstName": { "type": "string" }, "LastName": { "type": "string" }, "DefaultTimeZone": { "type": "string" }, "Email": { "type": "string" }, "Enabled": { "type": "boolean" }, "Locked": { "type": "boolean" }, "External": { "type": "boolean" }, "Clients": { "type": "array", "items": [ { "type": "object", "properties": { "Roles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "NotInRoles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "Groups": { "type": "array", "items": {} }, "ClientInfo": { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } }, "required": [ "Roles", "NotInRoles", "Groups", "ClientInfo" ] } ] }, "UserId": { "type": "string" } }, "required": [ "UserName", "Password", "FirstName", "LastName", "DefaultTimeZone", "Email", "Enabled", "Locked", "External", "Clients", "UserId" ] }, "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "null" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "Account", "IsSuccess", "Reason", "ErrorMessage", "Links" ] }

post /AppSpiderEnterprise/rest/v1/Account/AddAccount

Description
Copy link

Add a new user account.

Parameters
Copy link

NameTypeRequiredDescription
UsernamestringYusername
PasswordstringYpassword ( this is encrypted on server)
FirstNamestringNfirstname
LastNamestringNlastName
DefaultTimeZonestringNdefault time zone
EmailstringNemail
EnabledbooelanYenable (true / false)
LockedbooelanYlocked (true / false)
ExternalbooelanYExternal (true / false)
ClientsarrayYlist of user’s clients (role,groups,notinroles)
RolearrayYclient roles
RoleIdguidYrole id
RoleNamestringYrole name
NotInRolesarrayYclient’s not in roles
RoleIdguidNrole id
RoleNamestringNrole name
GroupsarrayYclient’s groups
GroupIdguidNgroup id
GroupNamestringNgroup name
ClientInfoobjectYAccount client
ClientIdguidYclient id
ClientNamestringYclient name

Request example:
Copy link

{ "type": "object", "properties": { "Username": { "type": "string" }, "Password": { "type": "string" }, "FirstName": { "type": "string" }, "LastName": { "type": "string" }, "DefaultTimeZone": { "type": "string" }, "Email": { "type": "string" }, "Enabled": { "type": "boolean" }, "Locked": { "type": "boolean" }, "External": { "type": "boolean" }, "Clients": { "type": "array", "items": [ { "type": "object", "properties": { "Roles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "NotInRoles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "Groups": { "type": "array", "items": {} }, "ClientInfo": { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } }, "required": [ "Roles", "NotInRoles", "Groups", "ClientInfo" ] } ] } }, "required": [ "Username", "Password", "FirstName", "LastName", "DefaultTimeZone", "Email", "Enabled", "Locked", "External", "Clients" ] }

Response Messages
Copy link

Response Status CodeReasonDescription
200Successaccount added
400FailureRequired parameters not provided

Response example:
Copy link

{ "type": "object", "properties": { "Account": { "type": "object", "properties": { "UserId": { "type": "string" } }, "required": [ "UserId" ] }, "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "string" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "Account", "IsSuccess", "Reason", "ErrorMessage", "Links" ] }

put /AppSpiderEnterprise/rest/v1/Account/UpdateAccount?accountId=<accountId>

Description
Copy link

Update a new user account.

Parameters
Copy link

NameTypeRequiredDescription
UsernamestringYusername
PasswordstringYpassword ( this is encrypted on server)
FirstNamestringNfirstname
LastNamestringNlastName
DefaultTimeZonestringNdefault time zone
EmailstringNemail
EnabledbooelanYenable (true / false)
LockedbooelanYlocked (true / false)
ExternalbooelanYExternal (true / false)
ClientsarrayYlist of user’s clients (role,groups,notinroles)
RolearrayYclient roles
RoleIdguidYrole id
RoleNamestringYrole name
NotInRolesarrayYclient’s not in roles
RoleIdguidNrole id
RoleNamestringNrole name
GroupsarrayYclient’s groups
GroupIdguidNgroup id
GroupNamestringNgroup name
ClientInfoobjectYAccount client
ClientIdguidYclient id
ClientNamestringYclient name

Request example:
Copy link

{ "type": "object", "properties": { "Username": { "type": "string" }, "Password": { "type": "string" }, "FirstName": { "type": "string" }, "LastName": { "type": "string" }, "DefaultTimeZone": { "type": "string" }, "Email": { "type": "string" }, "Enabled": { "type": "boolean" }, "Locked": { "type": "boolean" }, "External": { "type": "boolean" }, "Clients": { "type": "array", "items": [ { "type": "object", "properties": { "Roles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "NotInRoles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "Groups": { "type": "array", "items": {} }, "ClientInfo": { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } }, "required": [ "Roles", "NotInRoles", "Groups", "ClientInfo" ] } ] } }, "required": [ "Username", "Password", "FirstName", "LastName", "DefaultTimeZone", "Email", "Enabled", "Locked", "External", "Clients" ] }

Response Messages
Copy link

Response Status CodeReasonDescription
200Successaccount updated
400FailureRequired parameters not provided

Response example:
Copy link

{ "type": "object", "properties": { "Account": { "type": "object", "properties": { "UserId": { "type": "string" } }, "required": [ "UserId" ] }, "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "string" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "Account", "IsSuccess", "Reason", "ErrorMessage", "Links" ] }

delete /AppSpiderEnterprise/rest/v1/Group/DeleteAccount?accountId=<accountId>

Description
Copy link

Deletes a user.

Parameters
Copy link

No parameters

Response Messages
Copy link

Response Status CodeReasonDescription
200SuccessUser has been deleted

Response example:
Copy link

{ "type": "object", "properties": { "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "null" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "IsSuccess", "Reason", "ErrorMessage", "Links" ] }

get /AppSpiderEnterprise/rest/v1/Account/GetClients?accountId=<accountId>

Description
Copy link

Retrieves all clients accounts Client Admin will only see the client they are associated with or authenticated to System Admins will see all user’s clients

Parameters
Copy link

NameTypeRequiredDescription
accountIdguidYrequest parameter id of the account

Response Messages
Copy link

Response Status CodeReasonDescription
200SuccessResponse contains the account client(s) info
400FailureNo client info found

Response example:
Copy link

{ "type": "object", "properties": { "Account": { "type": "object", "properties": { "Clients": { "type": "array", "items": [ { "type": "object", "properties": { "Roles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "NotInRoles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "Groups": { "type": "array", "items": [ { "type": "object", "properties": { "GroupId": { "type": "string" }, "GroupName": { "type": "string" } }, "required": [ "GroupId", "GroupName" ] } ] }, "ClientInfo": { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } }, "required": [ "Roles", "NotInRoles", "Groups", "ClientInfo" ] }, { "type": "object", "properties": { "Roles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "NotInRoles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "Groups": { "type": "array", "items": {} }, "ClientInfo": { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } }, "required": [ "Roles", "NotInRoles", "Groups", "ClientInfo" ] } ] }, "UserId": { "type": "string" } }, "required": [ "Clients", "UserId" ] }, "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "null" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "Account", "IsSuccess", "Reason", "ErrorMessage", "Links" ] }

post /AppSpiderEnterprise/rest/v1/Account/AddClients?accountId=<accountId>

Description
Copy link

Add a new client to a user account. Sys admin only

Parameters
Copy link

NameTypeRequiredDescription
ClientsarrayYlist of user’s clients (role,groups,notinroles)
RolearrayYclient roles
RoleIdguidYrole id
RoleNamestringYrole name
NotInRolesarrayYclient’s not in roles
RoleIdguidNrole id
RoleNamestringNrole name
GroupsarrayYclient’s groups
GroupIdguidNgroup id
GroupNamestringNgroup name
ClientInfoobjectYAccount client
ClientIdguidYclient id
ClientNamestringYclient name

Request example:
Copy link

{ "type": "object", "properties": { "Clients": { "type": "array", "items": [ { "type": "object", "properties": { "Roles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "NotInRoles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "Groups": { "type": "array", "items": [ { "type": "object", "properties": { "GroupId": { "type": "string" }, "GroupName": { "type": "string" } }, "required": [ "GroupId", "GroupName" ] } ] }, "ClientInfo": { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } }, "required": [ "Roles", "NotInRoles", "Groups", "ClientInfo" ] } ] } }, "required": [ "Clients" ] }

Response Messages
Copy link

Response Status CodeReasonDescription
200Successaccount client(s) added
400FailureRequired parameters not provided

Response example:
Copy link

{ "type": "object", "properties": { "Account": { "type": "object", "properties": { "UserId": { "type": "string" } }, "required": [ "UserId" ] }, "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "null" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "Account", "IsSuccess", "Reason", "ErrorMessage", "Links" ] }

put /AppSpiderEnterprise/rest/v1/Account/UpdateClients?accountId=<accountId>

Description
Copy link

Updates a user’s client(s)

Parameters
Copy link

NameTypeRequiredDescription
ClientsarrayYlist of user’s clients (role,groups,notinroles)
RolearrayYclient roles
RoleIdguidYrole id
RoleNamestringYrole name
NotInRolesarrayYclient’s not in roles
RoleIdguidNrole id
RoleNamestringNrole name
GroupsarrayYclient’s groups
GroupIdguidNgroup id
GroupNamestringNgroup name
ClientInfoobjectYAccount client
ClientIdguidYclient id
ClientNamestringYclient name

Request example:
Copy link

{ "type": "object", "properties": { "Clients": { "type": "array", "items": [ { "type": "object", "properties": { "Roles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "NotInRoles": { "type": "array", "items": [ { "type": "object", "properties": { "RoleId": { "type": "string" }, "RoleName": { "type": "string" } }, "required": [ "RoleId", "RoleName" ] } ] }, "Groups": { "type": "array", "items": [ { "type": "object", "properties": { "GroupId": { "type": "string" }, "GroupName": { "type": "string" } }, "required": [ "GroupId", "GroupName" ] } ] }, "ClientInfo": { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } }, "required": [ "Roles", "NotInRoles", "Groups", "ClientInfo" ] } ] } }, "required": [ "Clients" ] }

Response Messages
Copy link

Response Status CodeReasonDescription
200Successaccount client(s) uddated
400FailureRequired parameters not provided

Response example:
Copy link

{ "type": "object", "properties": { "Account": { "type": "object", "properties": { "UserId": { "type": "string" } }, "required": [ "UserId" ] }, "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "null" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "Account", "IsSuccess", "Reason", "ErrorMessage", "Links" ] }

delete /AppSpiderEnterprise/rest/v1/Group/DeleteClients?accountId=<accountId>

Description
Copy link

Deletes a user’s client(s) Sys admin only

Parameters
Copy link

NameTypeRequiredDescription
accountIdguidYrequest parameter id of the account to return
ClientIdstringYClient Id
ClientNamestringYClient Name

Response Messages
Copy link

Response Status CodeReasonDescription
200SuccessUser’s client(s) has been deleted

Request example:
Copy link

{ "type": "array", "items": [ { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] }, { "type": "object", "properties": { "ClientId": { "type": "string" }, "ClientName": { "type": "string" } }, "required": [ "ClientId", "ClientName" ] } ] }

Response example:
Copy link

{ "type": "object", "properties": { "IsSuccess": { "type": "boolean" }, "Reason": { "type": "null" }, "ErrorMessage": { "type": "null" }, "Links": { "type": "array", "items": [ { "type": "object", "properties": { "Rel": { "type": "string" }, "Href": { "type": "string" } }, "required": [ "Rel", "Href" ] } ] } }, "required": [ "IsSuccess", "Reason", "ErrorMessage", "Links" ] }