UploadSampleFile

Updated at:

Uploads and checks a sample file.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-saf:UploadSampleFile

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the error message returned by the operation. Valid values:

  • zh: Chinese.

  • en: English.

Default value: en.

zh

Tab

string

No

The scenario.

INTERNET

Type

string

No

The access type.

SAF_CONSOLE

FileName

string

No

The file name.

icekredit_202312_23a_1764640368_6908.csv

FileUrl

string

No

The file URL.

saf/cpoc/34cd7959590ef568086035b956210495/1761186218068_XN_test JR142_1023_204794.csv

RegId

string

No

The region code.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

A32FE941-35F2-5378-B37C-4B8FDB16F094

ResultObject

object

The returned result.

FileUrl

string

The file URL.

saf/cpoc/30e2aff8f355af429bbab18f776496ef/1764037297543_icekredit_model_A_2025b_1764034785_147787.csv

FileName

string

The file name.

Acct71b_Sample140934_md5_batch20250916.csv

FileSize

integer

The file size.

1472

RowCount

integer

The number of rows.

4974

DateType

string

The date format type. Example value: yyyyMMdd, which indicates a consecutive numeric format of year, month, and day.

yyyyMMdd

ColumnStats

array<object>

The columns.

object

The columns.

FieldName

string

The field name.

fb_org_id

RowNumber

integer

The row where the record is located.

4

DistinctNumber

integer

The number of distinct values.

4

DistinctRate

string

The distinct rate.

28.23%

MissNumber

integer

The number of missing values.

5

MissRate

string

The missing rate.

28.23%

PreviewData

object

The table data.

Headers

array

The table headers.

string

The column header.

[]

Rows

array

The row data.

array

The row data.

string

The row data.

[]

NotExistScenes

array

The scenarios that do not exist.

string

The scenarios that do not exist.

dsa

BeyondBacktrackingPeriodNum

integer

The number of tasks.

gd

PhoneInvalidList

array

The count.

string

ds。

dsf

Code

string

The status code.

200

HttpStatusCode

string

The HTTP status code.

200

Message

string

The returned message.

success

Examples

Success response

JSON format

{
  "RequestId": "A32FE941-35F2-5378-B37C-4B8FDB16F094",
  "ResultObject": {
    "FileUrl": "saf/cpoc/30e2aff8f355af429bbab18f776496ef/1764037297543_icekredit_model_A_2025b_1764034785_147787.csv",
    "FileName": "Acct71b_Sample140934_md5_batch20250916.csv",
    "FileSize": 1472,
    "RowCount": 4974,
    "DateType": "yyyyMMdd",
    "ColumnStats": [
      {
        "FieldName": "fb_org_id",
        "RowNumber": 4,
        "DistinctNumber": 4,
        "DistinctRate": "28.23%",
        "MissNumber": 5,
        "MissRate": "28.23%"
      }
    ],
    "PreviewData": {
      "Headers": [
        "[]"
      ],
      "Rows": [
        [
          "[]"
        ]
      ]
    },
    "NotExistScenes": [
      "dsa"
    ],
    "BeyondBacktrackingPeriodNum": 0,
    "PhoneInvalidList": [
      "dsf"
    ]
  },
  "Code": "200",
  "HttpStatusCode": "200",
  "Message": "success"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.