Checking Whether the Current User has the Permission to Set Workloads
Function
This API is used to check whether the current user has the permission to set workloads.
Calling Method
For details, see Calling APIs.
Authorization Information
No identity policy-based permission required for calling this API.
URI
GET /v3/projects/{project_uuid}/issues/{issue_id}/history-permission
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_uuid | Yes | String | Definition 32-character UUID of a project, which uniquely identifies a project. Obtain the value of this parameter from the project_id field in the response body of the Querying the Project List API. Constraints A string of 32 characters consisting of letters and digits. Range N/A Default Value N/A |
| issue_id | Yes | String | Definition: Work item ID, which can be obtained from the Performing Advanced Query of Work Items API. The value of the id field in the response message body is the work item ID. Constraints: The value must contain 1 to 10 digits. Value range: Minimum length: 1 character. Maximum length: 10 characters. Default value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition User token. Obtain a token by calling the IAM API for obtaining a user token. The value of X-Subject-Token in the response header is the user token. Constraints N/A Range The value contains 10 to 32,768 characters. Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| result | result object | Definition: Returned result. |
| status | String | Definition: Returned status. Value range: success: The API is successfully called. error: The API call failed. |
Example Requests
{endpoint}/v3/projects/381fcca9c056482d92da3e8b9da71db5/issues/69813204/history-permission Example Responses
Status code: 200
{
"result" : {
"is_history_processor" : true
},
"status" : "success"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Response to a successful request for checking whether the current user has the permission to set workloads. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank 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