openapi: 3.2.0 info: title: AutoContent Platform Collections API version: 1.0.0 description: First-class content Assets with prepaid USD billing. Generic document and video routes do not exist. servers: - url: https://api.autocontentapi.com/v1 tags: - name: Collections paths: /collections/{id}: patch: operationId: updateCollection summary: Rename a Source collection tags: - Collections security: - platformOAuth: [] - platformApiKey: [] x-required-scopes: - platform.write x-principal: oauth_or_api_key x-idempotency-required: false parameters: - name: id in: path required: true schema: type: string pattern: ^col_[A-Za-z0-9_-]+$ requestBody: required: true content: application/json: schema: type: object properties: name: type: string minLength: 1 maxLength: 200 x-max-utf8-bytes: 200 required: - name additionalProperties: false responses: '200': description: Successful response. content: application/json: schema: $ref: '#/components/schemas/Collection' default: $ref: '#/components/responses/AutoContentError' delete: operationId: deleteCollection summary: Delete an empty Source collection tags: - Collections security: - platformOAuth: [] - platformApiKey: [] x-required-scopes: - platform.write x-principal: oauth_or_api_key x-idempotency-required: false parameters: - name: id in: path required: true schema: type: string pattern: ^col_[A-Za-z0-9_-]+$ responses: '204': description: Deleted successfully; no response body. default: $ref: '#/components/responses/AutoContentError' components: schemas: Collection: type: object additionalProperties: false required: - id - project_id - name - created_at - updated_at properties: id: type: string pattern: ^col_[A-Za-z0-9_-]+$ project_id: type: string pattern: ^prj_[A-Za-z0-9_-]+$ name: type: string minLength: 1 maxLength: 200 created_at: type: string format: date-time updated_at: type: string format: date-time ErrorEnvelope: type: object additionalProperties: false required: - error properties: error: $ref: '#/components/schemas/ErrorBody' ErrorBody: type: object additionalProperties: false required: - code - message - correlation_id - doc_url properties: code: type: string enum: - invalid_request - unknown_asset_type - invalid_asset_options - invalid_model_options - model_not_supported - model_retired - project_not_ready - project_limit_exceeded - provider_operation_limit_exceeded - source_not_ready - source_unreachable - source_paywalled - product_visual_required - no_qualified_trend - no_qualified_knowledge - input_resolution_failed - max_cost_exceeded - payment_required - content_loop_budget_exceeded - content_loop_limit_exceeded - idempotency_conflict - idempotency_in_progress - consent_required - voice_not_found - voice_not_ready - voice_not_supported - avatar_not_found - avatar_not_ready - avatar_not_supported - artifact_verification_failed - rate_limited - webhook_limit_exceeded - not_found - unauthorized - forbidden - internal_error message: type: string details: oneOf: - type: array items: $ref: '#/components/schemas/ErrorDetail' - type: object correlation_id: type: string pattern: ^corr_[A-Za-z0-9_-]+$ doc_url: type: string format: uri ErrorDetail: type: object additionalProperties: false required: - reason properties: field: type: string reason: type: string responses: AutoContentError: description: Normalized AutoContent error; provider payloads are never returned. headers: Retry-After: description: Whole seconds before retry when the error supplies a bounded retry time. schema: type: integer minimum: 1 content: application/json: schema: $ref: '#/components/schemas/ErrorEnvelope' example: error: code: max_cost_exceeded message: Current price exceeds max_cost_usd. correlation_id: corr_42 doc_url: https://docs.autocontentapi.com/errors/max-cost-exceeded securitySchemes: platformOAuth: type: http scheme: bearer bearerFormat: Platform OAuth JWT platformApiKey: type: http scheme: bearer bearerFormat: acp_ Platform API key