Appearance
Provider user batch add excel
POST
v1/ad/provider/user/:provider_id/excel
Request
name | necessary | type | default | describe |
---|---|---|---|---|
file | true | file | - | excel(excel) |
Response data struct
name | necessary | type | default | describe |
---|---|---|---|---|
code | true | int | - | 错误码(error code) |
message | true | string | - | 错误信息(error message) |
cause | true | string | - | 错误原因(error cause) |
details | true | object | - | 详情(details) |
-url | true | string | - | 下载链接(download url) |
Example
Url params:
v1/ad/provider/user/20230307063155IMFd8JoE/excel
Body of form-data;
key | value |
---|---|
file | batch_user.xlsx |
- Header:
key | value |
---|---|
x-api-key | your's key value |
- Response body:
json
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"url": "https://api-somnoon.com/v1/static/batch_user-20230530101446CUTuspRA.xlsx?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODYyNzY4ODYsInNpZ24iOiJiYXRjaEFkZFVzZXItMjAyMzA1MzAxMDE0NDZDVVR1c3BSQS54bHN4In0.I2OaRGVLLS_4OIEkyaRAvcDayw67eAE5jzJoxeTiQAU"
}
}
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"url": "https://api-somnoon.com/v1/static/batch_user-20230530101446CUTuspRA.xlsx?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODYyNzY4ODYsInNpZ24iOiJiYXRjaEFkZFVzZXItMjAyMzA1MzAxMDE0NDZDVVR1c3BSQS54bHN4In0.I2OaRGVLLS_4OIEkyaRAvcDayw67eAE5jzJoxeTiQAU"
}
}