Skip to content

Provider user batch add excel

POST v1/ad/provider/user/:provider_id/excel

Request

namenecessarytypedefaultdescribe
filetruefile-excel(excel)

Response data struct

namenecessarytypedefaultdescribe
codetrueint-错误码(error code)
messagetruestring-错误信息(error message)
causetruestring-错误原因(error cause)
detailstrueobject-详情(details)
-urltruestring-下载链接(download url)

Example

  • Url params: v1/ad/provider/user/20230307063155IMFd8JoE/excel

  • Body of form-data;

keyvalue
filebatch_user.xlsx
  • Header:
keyvalue
x-api-keyyour'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"
    }
}