Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

General Information


ServiceAPIMethod
urac/admin/group/editPUT


Data Model: Groups

Workflow: Edit Group Flow

Input


Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
gIdQueryYESStringN/AThe Group ID
nameBodyYESStringN/A
descriptionBodyYESStringN/A



NameSourceMandatoryTypeSpecial FormatDescription
gIdQueryYESStringN/AThe Group ID
nameBodyYESStringN/A
descriptionBodyYESStringN/A
configBodyYESObjectN/A

allowedPackages
YESObjectN/A


^([A-Za-z0-9]+)$
YESArray of strings

Then keys should follow the pattern : 
^([A-Za-z0-9]+)$

The key is the product code.
The strings inside the array are the package codes.


allowedEnvironments
NOObjectN/A


^([A-Za-z]+)$
NOObjectN/AThe environment code with empty object for now 


Output


Valid Response

Valid Response Sample
{
	"result": true,
	"data": true
}


Invalid Response

Error Response Sample
{
    "result":false,
    "errors":{
        "codes":[417],
        "details":[
            {
                "code":417,
                "message":"Invalid group id provided"
            }
        ]
    }
}



Error Codes



Code
Description
417Invalid group id provided
418Unable to edit Group.


Example (CURL)


Request

Calling Edit Group API
 > CURL -X POST http://127.0.0.1:4000/urac/admin/group/edit?gId=5 -d '{
	"name": "Some Group",
	"description": "group description",
	"config": {
		"allowedPackages": {
			"prod": ["pack"]
		},
	"allowedEnvironments": {
			"PROD": {}
		}
	}
}'

Response

Edit Group API response
{
	"result": true,
	"data": true
}
  • No labels