API 参考Media
Update a file
Change a file's alt text, name, or whether it is kept (never deleted automatically)
PATCH
Change a file's alt text, name, or whether it is kept (never deleted automatically)
apiKeyheader
AuthorizationBearer <token>API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.
id*stringFormat
uuidapplication/json- body
alt_text?|Length
length <= 1000original_name?stringLength
1 <= length <= 255keep?booleanOK
application/json- response
media*curl -X PATCH 'https://socmed.growpaces.com/api/v1/media/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response200
{ "media": { "id": "string", "type": "image", "page_count": 0, "status": "pending", "original_name": "string", "mime_type": "string", "size_bytes": 0, "width": 0, "height": 0, "duration_ms": 0, "frame_rate": 0, "fail_reason": "string", "alt_text": "string", "keep": true, "used_in_posts": 0, "expires_at": "string", "url": "string", "created_at": "string" }}