OpenAIOpenAI API
POST/containers/{container_id}/files
Manage Create Container File.
Contract-preserving POST Endpoint for Create Container File in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.
All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.
Request
- operationId
CreateContainerFile- Server
https://api.openai.com/v1- Authentication
- ApiKeyAuth, AdminApiKeyAuth
Request parameters
container_id
pathstringrequired
container id value in the OpenAI API contract.
Request body
CreateContainerFileBodyrequired
Content-Type: application/json, multipart/form-data
Properties: filefile_id
Responses
200
ContainerFileResourceapplication/json
Successful supplier response.
Properties: bytescontainer_idcreated_atidobjectpathsource
429
ErrorResponseapplication/json
Supplier response with HTTP status 429.
Properties: error
{
"bytes": 0,
"created_at": 0
}