mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-05 13:57:37 +08:00
chore(openapi): sync shared API contract from cloud@7321193
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Build package / Build Test (3.10) (push) Has been cancelled
Build package / Build Test (3.11) (push) Has been cancelled
Build package / Build Test (3.12) (push) Has been cancelled
Build package / Build Test (3.13) (push) Has been cancelled
Build package / Build Test (3.14) (push) Has been cancelled
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Build package / Build Test (3.10) (push) Has been cancelled
Build package / Build Test (3.11) (push) Has been cancelled
Build package / Build Test (3.12) (push) Has been cancelled
Build package / Build Test (3.13) (push) Has been cancelled
Build package / Build Test (3.14) (push) Has been cancelled
This commit is contained in:
parent
bb84c75283
commit
df6c3158d4
72
openapi.yaml
72
openapi.yaml
@ -1783,7 +1783,7 @@ paths:
|
|||||||
description: |
|
description: |
|
||||||
Updates an asset's metadata. At least one field must be provided.
|
Updates an asset's metadata. At least one field must be provided.
|
||||||
Only name, mime_type, preview_id, and user_metadata can be updated.
|
Only name, mime_type, preview_id, and user_metadata can be updated.
|
||||||
For tag management, use the dedicated PUT /api/assets/{id}/tags endpoint.
|
For tag management, use POST (add) and DELETE (remove) /api/assets/{id}/tags.
|
||||||
operationId: updateAsset
|
operationId: updateAsset
|
||||||
parameters:
|
parameters:
|
||||||
- description: Asset ID
|
- description: Asset ID
|
||||||
@ -1982,76 +1982,6 @@ paths:
|
|||||||
summary: Add tags to asset
|
summary: Add tags to asset
|
||||||
tags:
|
tags:
|
||||||
- file
|
- file
|
||||||
put:
|
|
||||||
description: Adds and removes tags from an asset in a single operation
|
|
||||||
operationId: updateAssetTags
|
|
||||||
parameters:
|
|
||||||
- description: Asset ID
|
|
||||||
in: path
|
|
||||||
name: id
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
description: At least one of add or remove must contain items. Empty arrays are allowed when the other array has items.
|
|
||||||
minProperties: 1
|
|
||||||
properties:
|
|
||||||
add:
|
|
||||||
description: Tags to add to the asset. Can be empty if remove has items.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
remove:
|
|
||||||
description: Tags to remove from the asset. Can be empty if add has items.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
required: true
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/TagsModificationResponse'
|
|
||||||
description: Tags updated successfully
|
|
||||||
"400":
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
|
||||||
description: Invalid request
|
|
||||||
"401":
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
|
||||||
description: Unauthorized
|
|
||||||
"404":
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
|
||||||
description: Asset not found
|
|
||||||
"422":
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
|
||||||
description: Reserved tag validation error
|
|
||||||
"500":
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
|
||||||
description: Internal server error
|
|
||||||
summary: Update asset tags
|
|
||||||
tags:
|
|
||||||
- file
|
|
||||||
/api/assets/from-hash:
|
/api/assets/from-hash:
|
||||||
post:
|
post:
|
||||||
description: |
|
description: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user