Update Resource Description

This API is used to update existing resource descriptions.

Before you begin

  • Session ID is obtained from the login API.
  • Ensure that the session ID is valid and has not expired.
  • Make sure you have valid login credentials for accessing the system.

Request Structure

Endpoint: /platform-update-aclidentifier
Type: PUT
Sample URL: https://<Tenant_name/Host_name>:<portno>/avxapi/platform-update-aclidentifier?gwkey=f000ca01&gwsource=external
Headers:
Content-Type: application/json
Table 1. Input Parameters
Name Description
sessionID

Header

(Mandatory) Use session ID retrieved from login API is required if username and password are not provided.

Example: "sessionId": "ce7f1a14-2bf9-4e4a-89a8-bc780a255813"

username

Header

(Mandatory) AppViewX login username is required if sessionId is not provided.

Example: "admin"

Password

Header

(Mandatory) AppViewX login password is required if sessionId is not provided..

Example: "AppViewX@123"

Content-Type

Header

(Mandatory) The parameter should be set to application/json to specify the nature of the data in the payload.

Example: "application/json"

gwkey

Query

(Optional) Tenant Key. Needed only in the case of multi-tenant installations which is a string value.
gwsource

Query

(Mandatory) Source from which the request is triggered.
The values can be:
  • web
  • external
name

Payload

String

(Mandatory) Name of the resource whose description needs to be updated.

Example: "myResource"

description

Payload

String

(Mandatory) Description that needs to be updated.

Example: "Sample resource for test"

Response Structure

  • Status Code: 200 OK
  • Message: null.
  • Headers:
    • Content-Type: application/json
Table 2. Response Parameters
Name Description
response Contains the response attributes for search of role successfully.
message Success message or failure description in case of error.
appStatusCode Application specific status code for the response. Will be non-null for failure response.
tags More info in case of failure response.

Status Codes

HTTP Code appStatusCode Response Message
200 OK null null
400 Bad request VALIDATION_ERROR_0004 Field(s) does not comply with the validation criteria. Please recheck the input payload::[description::VALIDATION_ERROR_0006:: Input does not match the pattern configured]

Field(s) does not comply with the validation criteria. Please recheck the input payload::[name::VALIDATION_ERROR_0006:: Input does not match the pattern configured].

404 Not found RBAC_RE_005 Resource(s) not found.
407 Proxy Authentication Required AVX_GW_011 Session validation failed, reason - Session information is missing.

Sample Request/Response

Use Case

To update the existing resource descriptions.

Sample Request
https://<Tenant_name/Host_name>:<portno>/avxapi/platform-update-aclidentifier?gwkey=f000ca01&gwsource=external
Request Payload
{name: "myResource", description: "Sample resource for test"}
Sample Response
{
  "response": null,
  "message": null,
  "appStatusCode": null,
  "tags": null,
  "headers": null
}