...
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user/token |
HTTP Method | POST |
Description | Create the personal access token |
Example URI | |
Authentication | HTTP Basic |
Produces Content-Type | text/plain |
Consumes Content-Type | Application/XML, Application/JSON |
Example Responses |
|
Create Personal Access Token: Payload Properties (XML, JSON)
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|---|
userId | N/A | UUID of the user | UUID of the user | N | userName |
| N/A | User Name | String value of User name | N | userId |
name | Token Name | Token Name | Specifies the name of the application that will access the Universal Controller Web Service APIs using the personal access token. | Y | |
expiration | Expiration | Description of property. | Specifies when the personal access token expires. If left unspecified, the token never expires. | N |
Create Personal Access Token: XML and JSON Examples
XML | JSON | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Example Request |
|
| ||||||||||
Example Response |
|
|
Anchor | ||||
---|---|---|---|---|
|
...
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user/token/list |
HTTP Method | GET |
Description | List the user tokens |
Example URI | http://localhost:9090/uc/resources/user/token/list http://localhost:9090/uc/resources/user/token/list?username=test http://localhost:9090/uc/resources/user/token/list?userid=1234567 |
Authentication | HTTP Basic |
Produces Content-Type | Application/XML, Application/JSON |
Consumes Content-Type | |
Example Responses |
|
List Personal Access Tokens: Query Parameters
The following request parameters will be needed for the service.
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|---|
userid | N/A | UUID of the user | UUID of the user | Y | username |
username | N/A | User Name | String value of User name | Y | userid |
List Personal Access Tokens: XML and JSON Examples
XML | JSON | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Example Response |
|
|
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user/list |
HTTP Method | GET |
Description | Retrieves information on all Users. |
Example URI | http://localhost:8080/uc/resources/user/list |
Authentication | HTTP Basic |
Produces Content-Type | application/xml, application/json |
Example | |
User Properties | See #User Properties. |
User Permission Properties | |
User Role Properties | See User Role Properties. |
...
XML
...
JSON
...
...
title | JSON |
---|
...
Optionally Include Personal Access Tokens on User Payloads: User List API
The User Read and List API’s optionally allows to display the tokens using the query parameter. The default value is false and user has to pass the parameter to view the token details.
Description | |
---|---|
URI | http://host_name/uc/resources/user/list |
HTTP Method | GET |
Description | List the user tokens |
Example URI | http://localhost:9090/uc/resources/user/list?username=test&showTokens=true http://localhost:9090/uc/resources/user/list?userid=1234567&showTokens=false |
Authentication | HTTP Basic |
Produces Content-Type | Application/XML, Application/JSON |
Consumes Content-Type | |
Example Responses |
|
Optinally Include Personal Access Tokens on List User Payloads: Query Parameters
The following request parameters will be needed for the service.
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|---|
userid | N/A | UUID of the user | UUID of the user | Y | username |
username | N/A | User Name | String value of User name | Y | userid |
showTokens | N/A | Show tokens | Boolean
| N |
Anchor | ||||
---|---|---|---|---|
|
XML | JSON | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
...
Description
...
URI
...
HTTP Method
...
PUT
...
Description
...
Modifies the User specified by the sysId in the request.
To modify User properties without modifying related records, see the excludeRelated property.
...
Example URI
...
Consumes Content-Type
...
application/xml, application/json
...
Produces Content-Type
...
n/a
...
Example
...
See Create, Modify, and Read a User: XML and JSON Examples.
...
User Properties
...
See User Properties.
...
User Permission Properties
...
See User Permission Properties.
...
User Role Properties
...
See User Role Properties.
...
Example Response
...
- Status 200 /OK
Successfully updated the user with sysId <sysId>.
...
The User Read and List API’s optionally allows to display the tokens using the query parameter. The default value is false and user has to pass the parameter to view the token details.
Optionally Include Personal Access Tokens on Read/List User Payloads: User Read API
...
Description
...
URI
...
http://host_name/uc/resources/user
...
HTTP Method
...
GET
...
Description
...
List the user tokens
...
Example URI
...
http://localhost:9090/uc/resources/user?username=test&showTokens=true
http://localhost:9090/uc/resources/user?userid=1234567&showTokens=false
...
Authentication
...
HTTP Basic
...
Produces Content-Type
...
Application/XML, Application/JSON
...
Consumes Content-Type
...
Example Responses
...
Status 200
Successful user details
Status 400
Error message.
Status 403
Operation prohibited due to security constraints.
Status 404
A user with name “{name}” does not exist.
A user with id "{uuid}" does not exist.
Status 500
Unexpected request failure. See log(s) for more details.
Optionally Include Personal Access Tokens on Read/List User Payloads: User List API
...
Description
...
URI
...
http://host_name/uc/resources/user/list
...
HTTP Method
...
GET
...
Description
...
List the user tokens
...
Example URI
...
http://localhost:9090/uc/resources/user/list?username=test&showTokens=true
http://localhost:9090/uc/resources/user/list?userid=1234567&showTokens=false
...
Authentication
...
HTTP Basic
...
Produces Content-Type
...
Application/XML, Application/JSON
...
Consumes Content-Type
...
Example Responses
...
Status 200
Successful user details
Status 400
Error message.
Status 403
Operation prohibited due to security constraints.
Status 404
A user with name “{name}” does not exist.
A user with id "{uuid}" does not exist.
Status 500
Unexpected request failure. See log(s) for more details.
Optionally Include Personal Access Tokens on Read/List User Payloads: Query Parameters
The following request parameters will be needed for the service.
...
Property
...
UI Field Name
...
Description
...
Specifications
...
Required
...
Mutually Exclusive With
...
userid
...
N/A
...
UUID of the user
...
UUID of the user
...
Y
...
username
...
username
...
N/A
...
User Name
...
String value of User name
...
Y
...
userid
...
showTokens
...
N/A
...
Show tokens
...
Boolean
True - Includes the Token details
False (Default) - Empty Token List
...
N
Optionally Include Personal Access Tokens on Read/List User Payloads: Example Response
...
XML
...
JSON
...
Expand | ||
---|---|---|
| ||
|
...
Expand | ||
---|---|---|
| ||
|
...
|
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user |
HTTP Method | PUT |
Description | Modifies the User specified by the sysId in the request. |
Example URI | http://localhost:8080/uc/resources/user |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example | |
User Properties | See User Properties. |
User Permission Properties | |
User Role Properties | See User Role Properties. |
Example Response |
|
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user |
HTTP Method | GET |
Description | Retrieves information on a specific User. |
URI Parameters | See Read a User: URI Parameters, below. |
Example URI | |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
User Properties | See User Properties. |
User Permission Properties | |
User Role Properties | See User Role Properties. |
Example Response |
|
Anchor | ||||
---|---|---|---|---|
|
Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|
| Unique ID for this User. | Y |
| |
| Name used within the Controller to identify this User. | Maximum 40 alphanumerics. | Y |
|
Optionally Include Personal Access Tokens on User Payloads: User Read API
The User Read and List API’s optionally allows to display the tokens using the query parameter. The default value is false and user has to pass the parameter to view the token details.
...
URI Parameters
Description | |
---|---|
URI | http://host_name/uc/resources/user |
HTTP Method | GET |
Description |
Retrieves information on a specific User.
List the user tokens | |
Example URI |
&showTokens=true |
Consumes Content-Type
1234567&showTokens=false | |
Authentication | HTTP Basic |
Produces Content-Type |
Application/ |
XML, |
Application/ |
User Properties
See User Properties.
User Permission Properties
User Role Properties
See User Role Properties.
Example Response
(See Create, Modify, and Read a User: XML and JSON Examples.)
JSON | |
Consumes Content-Type | |
Example Responses |
|
|
...
|
Optinally Include Personal Access Tokens on Read a User Payloads:
...
Query Parameters
The following request parameters will be needed for the service.
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|---|
userid |
N/A | UUID of the user | UUID of the user | Y |
username |
is specified)
username |
username
userid
N/A |
Name used within the Controller to identify this User.
Maximum 40 alphanumerics.
Y
(unless userid
is specified)
User Name | String value of User name | Y | userid | ||
showTokens | N/A | Show tokens | Boolean
| N |
Anchor | ||||
---|---|---|---|---|
|
Description | |
---|---|
URI | http://host_name/uc/resources/user/token |
HTTP Method | DELETE |
Description | Delete the personal access token(s) |
Example URI | http://localhost:9090/uc/resources/user/token?tokenname=test1&username=abc http://localhost:9090/uc/resources/user/token?tokenname=test1&userid=1234567 |
Authentication | HTTP Basic |
Produces Content-Type | |
Consumes Content-Type | |
Example Responses |
|
Revoke Personal Access Token: Query Parameters
The following request parameters will be needed for the service.
Property | UI Field Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|---|
userid | N/A | UUID of the user | UUID of the user | Y | username |
username | N/A | User Name | String value of User name | N | userid |
tokenname | token name | Token Name | Specifies the name of the application that will access the Universal Controller Web Service APIs using the personal access token. | Y |
Anchor | ||||
---|---|---|---|---|
|
...