Avaturn
    Avaturn
    • Create User
      POST
    • Delete User
      DELETE
    • New Session
      POST
    • List User Avatars
      GET
    • New Avatar
      POST
    • Get Customization
      GET
    • Set Customization
      PUT
    • Delete User Avatar
      DELETE
    • Render User Avatar Async
      POST
    • Create Export
      POST
    • 数据模型
      • Schemas
        • AssetSlot
        • AssetSlotWithColor
        • AssetSlotWithColor
        • AssetSlots
        • AvatarBody
        • AvatarListItem
        • AvatarReadyWebhook
        • BoneScale
        • CreateOrEditExistingSessionConfig
        • CreateSessionConfig
        • EditExistingSessionConfig
        • ExportReadyWebhook
        • ExternalAvatarCustomization
        • ExternalAvatarCustomization
        • HTTPValidationError
        • NewAvatarRequest
        • NewAvatarResponse
        • NewExportResponse
        • NewSessionRequest
        • NewSessionResponse
        • NewUserResponse
        • RenderReadyWebhook
        • RenderResult
        • RenderStatus
        • ScanStatus
        • ValidationError
        • Model
        • Model

      New Avatar

      开发环境
      http://dev-cn.your-api-server.com
      开发环境
      http://dev-cn.your-api-server.com
      POST
      /api/v1/avatars/new
      Create new avatar for given user from images.
      This endpoint creates a provisional avatar for the specified user.
      It responds with an avatar_id and upload_url. To complete the creation,
      upload the images
      using the multipart/form-data request to upload_url
      and wait for processing to complete.
      See detailed guide for more information.

      请求参数

      Body 参数application/json

      示例

      返回响应

      🟢200Provisional avatar is created. Photo upload awaited.
      application/json
      Body

      🟠422Validation Error
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'http://dev-cn.your-api-server.com/api/v1/avatars/new' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "user_id": "<put-user-id-here>"
      }'
      响应示例响应示例
      200 - 示例 1
      {
          "avatar_id": "ceaabbd8-6fdf-460c-878c-7d0ae67338c0",
          "upload_url": "string"
      }
      修改于 2024-05-30 08:40:21
      上一页
      List User Avatars
      下一页
      Get Customization
      Built with