Moving a Group
Function
This API is used to move a group up or down to adjust the position of the group on the page.
Calling Method
For details, see Calling APIs.
URI
PUT /v1/projects/{project_id}/applications/groups/swap
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID Minimum: 32 Maximum: 32 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. Minimum: 0 Maximum: 20000 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
Yes |
String |
Group ID |
movement |
Yes |
Integer |
Moving direction. 1: Upward. -1: Downward. Enumeration values:
|
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
String |
Group ID |
status |
String |
Request success or failure status |
Example Requests
https://{endpoint}/v1/projects/0a38ce9ba3c740c199a0f872b6163661/applications/groups/swap { "id" : "a958794f9f4f4a24a96950c9cb279a4d", "movement" : 1 }
Example Responses
Status code: 200
OK: The request is successful.
{ "result" : "a958794f9f4f4a24a96950c9cb279a4d", "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK: The request is successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot