Skip to main content

ValidateUploadTemplate

Validates an enterprise VOC upload template.

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples. Debug

Authorization information

The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
  • Action: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization for the operation. Details are as follows:
    • For required resource types, an asterisk (*) is added as a prefix.
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Related action: other permissions required to successfully perform the action. The caller must also have the permissions of the related actions for the operation to succeed.
ActionAccess levelResource typeCondition keyRelated action
aimiaobi:ValidateUploadTemplateget
*All resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
WorkspaceIdstringYes

The unique identifier of the Alibaba Cloud Model Studio workspace: Get workspace ID (Workspace ID)

xxxx
TemplateTypestringYes

Template type (Content: content asset template validation, PositiveSample: positive sample)

Content
FileKeystringYes

File key

Content
TaskTypestringNo

Task type: lightAppSass (SaaS page call), sdkBatchTask (SDK batch task)

lightAppSass

Response parameters

NameTypeDescriptionExample value
object

PlainResult

Codestring

Status code

NoData
Dataobject

Template validation result

TotalCountinteger

Total count

50
CommentCountinteger

Number of comments

50
DialogueCountinteger

Number of dialogues

50
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error description

success
RequestIdstring

The unique identifier of the request

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Successboolean

Indicates whether the request was successful: true (successful), false (failed)

true

Examples

Success response JSON format
{
  "Code": "NoData",
  "Data": {
    "TotalCount": 50,
    "CommentCount": 50,
    "DialogueCount": 50
  },
  "HttpStatusCode": 200,
  "Message": "success",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true
}

Error codes

Visit the Error Center to view more error codes.