halo
  1. AttachmentV1alpha1Uc
halo
uc
  • all
  • console
  • extension
  • public
  • uc
  • AnnotationSettingV1alpha1
  • ConfigMapV1alpha1
  • MenuItemV1alpha1
  • MenuV1alpha1
  • RoleBindingV1alpha1
  • RoleV1alpha1
  • SecretV1alpha1
  • SettingV1alpha1
  • UserV1alpha1
  • AttachmentV1alpha1Console
  • AuthProviderV1alpha1Console
  • CommentV1alpha1Console
  • IndicesV1alpha1Console
  • NotifierV1alpha1Console
  • PluginV1alpha1Console
  • PostV1alpha1Console
  • ReplyV1alpha1Console
  • SinglePageV1alpha1Console
  • SystemV1alpha1Console
  • TagV1alpha1Console
  • ThemeV1alpha1Console
  • UserV1alpha1Console
  • CategoryV1alpha1Public
  • PostV1alpha1Public
  • SinglePageV1alpha1Public
  • TagV1alpha1Public
  • CommentV1alpha1Public
  • IndexV1alpha1Public
  • MenuV1alpha1Public
  • SystemV1alpha1Public
  • MetricsV1alpha1Public
  • NotifierV1alpha1Uc
  • NotificationV1alpha1Public
  • NotificationV1alpha1Uc
  • PluginV1alpha1Public
  • ThumbnailV1alpha1Public
  • AuthProviderV1alpha1
  • UserConnectionV1alpha1
  • SystemConfigV1alpha1Console
  • MigrationV1alpha1Console
  • PolicyAlpha1Console
  • CategoryV1alpha1
  • CommentV1alpha1
  • PostV1alpha1
  • ReplyV1alpha1
  • SinglePageV1alpha1
  • SnapshotV1alpha1
  • TagV1alpha1
  • CounterV1alpha1
  • BackupV1alpha1
  • NotificationV1alpha1
  • NotificationTemplateV1alpha1
  • NotifierDescriptorV1alpha1
  • ReasonV1alpha1
  • ReasonTypeV1alpha1
  • SubscriptionV1alpha1
  • ExtensionDefinitionV1alpha1
  • ExtensionPointDefinitionV1alpha1
  • PluginV1alpha1
  • ReverseProxyV1alpha1
  • DeviceV1alpha1
  • PersonalAccessTokenV1alpha1
  • RememberMeTokenV1alpha1
  • AttachmentV1alpha1
  • GroupV1alpha1
  • LocalThumbnailV1alpha1
  • PolicyV1alpha1
  • PolicyTemplateV1alpha1
  • ThumbnailV1alpha1
  • ThemeV1alpha1
  • UserConnectionV1alpha1Uc
  • PostV1alpha1Uc
  • SnapshotV1alpha1Uc
  • UserPreferenceV1alpha1Uc
  • TwoFactorAuthV1alpha1Uc
  • DeviceV1alpha1Uc
  • PersonalAccessTokenV1alpha1Uc
  • AttachmentV1alpha1Uc
  • NotifierV1alpha1Uc
    • FetchReceiverConfig
      GET
    • SaveReceiverConfig
      POST
  • NotificationV1alpha1Uc
    • ListUserNotificationPreferences
      GET
    • SaveUserNotificationPreferences
      POST
    • ListUserNotifications
      GET
    • MarkNotificationsAsRead
      PUT
    • DeleteSpecifiedNotification
      DELETE
    • MarkNotificationAsRead
      PUT
  • UserConnectionV1alpha1Uc
    • DisconnectMyConnection
      PUT
  • PostV1alpha1Uc
    • ListMyPosts
      GET
    • CreateMyPost
      POST
    • GetMyPost
      GET
    • UpdateMyPost
      PUT
    • GetMyPostDraft
      GET
    • UpdateMyPostDraft
      PUT
    • PublishMyPost
      PUT
    • RecycleMyPost
      DELETE
    • UnpublishMyPost
      PUT
  • SnapshotV1alpha1Uc
    • GetSnapshotForPost
      GET
  • UserPreferenceV1alpha1Uc
    • getMyPreference
      GET
    • updateMyPreference
      PUT
  • TwoFactorAuthV1alpha1Uc
    • GetTwoFactorAuthenticationSettings
    • DisableTwoFactor
    • EnableTwoFactor
    • ConfigurerTotp
    • DeleteTotp
    • GetTotpAuthLink
  • DeviceV1alpha1Uc
    • ListDevices
    • RevokeDevice
  • PersonalAccessTokenV1alpha1Uc
    • ObtainPats
    • GeneratePat
    • DeletePat
    • ObtainPat
    • RestorePat
    • RevokePat
  • AttachmentV1alpha1Uc
    • ListMyAttachments
      GET
    • CreateAttachmentForPost
      POST
    • UploadUcAttachment
      POST
    • ExternalTransferAttachment_1
      POST
  1. AttachmentV1alpha1Uc

ExternalTransferAttachment_1

POST
/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload-from-url
Upload attachment from the given URL.

请求参数

Query 参数

Header 参数

Body 参数application/json

示例
{
    "filename": "string",
    "url": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.80.101:8090/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload-from-url' \
--header 'Authorization: {{authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "filename": "string",
    "url": "string"
}'

返回响应

🟢200成功
*/*
default response
Body

示例
{
    "apiVersion": "string",
    "kind": "string",
    "metadata": {
        "annotations": {
            "property1": "string",
            "property2": "string"
        },
        "creationTimestamp": "2019-08-24T14:15:22.123Z",
        "deletionTimestamp": "2019-08-24T14:15:22.123Z",
        "finalizers": [
            "string"
        ],
        "generateName": "string",
        "labels": {
            "property1": "string",
            "property2": "string"
        },
        "name": "string",
        "version": 0
    },
    "spec": {
        "displayName": "string",
        "groupName": "string",
        "mediaType": "string",
        "ownerName": "string",
        "policyName": "string",
        "size": 0,
        "tags": [
            "string"
        ]
    },
    "status": {
        "permalink": "string",
        "thumbnails": {
            "property1": "string",
            "property2": "string"
        }
    }
}
修改于 2025-09-17 17:14:20
上一页
UploadUcAttachment
Built with