Skip to main content

Create resource upload

Create resource upload. POST /api/openapi/v1/resource-uploads, scope admin.v1.resource-uploads.manage.

  • Scope: admin.v1.resource-uploads.manage
  • Permission: Manage resource uploads (resource-uploads)
  • Permission type: Manage
  • Endpoint: POST/api/openapi/v1/resource-uploads

Authentication and request headers

Call with an application API key. This endpoint checks only the scope above; read, manage and execute permissions do not imply one another.
NameLocationTypeRequiredDescriptionExample
AuthorizationheaderstringYesApplication API key, passed as a Bearer token.Bearer qwk_***
X-Request-IdheaderstringNoOptional request tracing identifier; generated by the server if omitted.req-20260831-001

Request parameters

NameLocationTypeRequiredDescriptionExample
Idempotency-KeyheaderstringRequiredIdempotency key used to prevent duplicate submissions"<string>"
media_typebodystringNoFile media type"<string>"
resource_typebodystringRequiredResource type"skill"
size_bytesbodyinteger · int64NoFile size in bytes1
upload_kindbodystringNoUpload kind"package"

Request example

cURL

Responses

201 Created
NameTypeRequiredDescriptionExample
asset_urlstringNoAsset URL"<string>"
created_atstring · date-timeYesCreated at"2026-08-27T10:00:00Z"
error_codestringNoError code"<string>"
expected_sha256stringNoExpected file SHA-256 digest"<string>"
expires_atstring · date-timeYesExpires at"2026-08-27T10:00:00Z"
max_size_bytesinteger · int64NoMaximum file size in bytes0
media_typestringNoFile media type"<string>"
resource_typestringYesResource type"skill"
size_bytesinteger · int64NoFile size in bytes0
statusstringYesStatus"created"
updated_atstring · date-timeYesUpdated at"2026-08-27T10:00:00Z"
upload_headersobjectNoUpload headers{}
upload_idstring · uuidYesUpload session ID"<uuid>"
upload_kindstringYesUpload kind"package"
upload_methodstringNoUpload HTTP method"<string>"
upload_urlstringNoUpload URL"<string>"
upload_url_expires_atstring · date-timeNoUpload URL expiration time"2026-08-27T10:00:00Z"
Response example
default Flat business error
NameTypeRequiredDescriptionExample
codestringNoStable business error code"<string>"
detailstringYesHuman-readable error description"<string>"
detailsOpenapiErrorDetailsNoError details{"field":"<string>","reason":"<string>","suggestion":"<string>"}
details.fieldstringNoRequest field that failed validation"<string>"
details.reasonstringNoStable validation failure reason"<string>"
details.suggestionstringNoSuggested normalized value"<string>"
errorstringYesStable HTTP error type"<string>"
Response example