createOrgOpenApiImportExtensionFiles
Write an extension's files from a ready import, for createRepoExtensionFile to add as they are: openapi.ts, which holds the tools and the part of the document they read, and index.ts, which declares a provider from the document's security schemes and turns every tool of openapi.ts into the extension's. Without tags, paths, or operations it takes every operation, up to 500; with them, the operations that carry any of the tags, sit under any of the path prefixes, such as /v1/customers, or that operations names. Forge names each tool from its first tag and its operation id, as projects.listProjects. An operation that can't become a tool is left out and listed in skipped with why.
/orgs/{org_id}/openapi-imports/{import_id}/extension-filesPath parameters
Request body JSON required
Returns
200
OpenApiExtensionFiles
400
InvalidRequest | RequestBodyTooDeep
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
OrgNotFound | OpenApiImportNotFound
One of the following:
- OrgNotFoundEncoded
- OpenApiImportNotFoundEncoded
413
RequestBodyTooLarge
503
SessionUnavailable | RateLimitUnavailable
One of the following:
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded