POST /gui_app_framework/application_definitions/{application_definition_id}/user_role_id/{user_role_id}

Add a user role to the list associated with an application definition

Table 1. POST /gui_app_framework/application_definitions/{application_definition_id}/user_role_id/{user_role_id} resource details
MIME Type

application/json

Table 2. POST /gui_app_framework/application_definitions/{application_definition_id}/user_role_id/{user_role_id} request parameter details
Parameter Type Optionality Data Type MIME Type Description

application_definition_id

path

Required

Number (Integer)

text/plain

- The application definition identifier.

user_role_id

path

Required

Number (Integer)

text/plain

- The user role identifier.

fields

query

Optional

String

text/plain

Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas.

Table 3. POST /gui_app_framework/application_definitions/{application_definition_id}/user_role_id/{user_role_id} response codes
HTTP Response Code Unique Code Description

404

33900

The application definition ID specified does not exist

409

33000

The current state of the specified application ID does not allow the requested action

409

33700

The application framework is currently disabled.

422

33906

The user role ID does not exist

422

33907

This user role cannot be modified

500

1020

The request could not be completed.

Response Description

An updated list of user roles for the application definition

Response Sample


{
    "user_roles": [
        42
    ]
}