Download build target output

Retrieve a method to download an output for a given build target.

If the requested type of output is source, and the requested output method is url, a download link to a tarball of the source files is returned. If the requested output method is git, a Git remote, ref, and access token (if necessary) is returned.

Otherwise, the possible types of outputs are specific to the requested target, and the output method must be url. See the documentation for type for more information.

get/v0/build_target_outputs

Query parameters

build_idstring required

Build ID

target'node' | 'typescript' | 'python' | 'go' | 'java' | 'kotlin' | 'ruby' | 'terraform' | 'cli' | 'php' | 'csharp' | 'sql' | 'openapi' required

SDK language target name

'source' required

The raw source code generated by Stainless

OR
'dist' required

TypeScript: compiled dist tarball

OR
'wheel' required

Python: wheel distribution package

OR
'openapi-with-transforms' required

OpenAPI: spec with transforms applied

OR
'openapi-with-code-samples' required

OpenAPI: spec with code samples

OR
'openapi-sdk-spec' required

OpenAPI: internal SDK specification JSON

output'url' | 'git'

Output format: url (download URL) or git (temporary access token).

Response

success

OR

Changes

Changed in 5 of the 24 revisions of this API.58

  • 3aab121e637411See the full diff
    • added subschema #1 subschema #2 to the response body oneOf list for the response status 200

      response-body-one-of-added

    • removed subschema #1 subschema #2 from the response body oneOf list for the response status 200

      response-body-one-of-removed

    • added subschema #1 subschema #2 to the response body oneOf list for the response status 200

      response-body-one-of-added

    • added the new enum value sql to the query request parameter target

      request-parameter-enum-value-added

    • removed subschema #1 subschema #2 from the response body oneOf list for the response status 200

      response-body-one-of-removed

  • 6783cf45e0ea12See the full diff
    • added subschema #1 subschema #2 to the response body oneOf list for the response status 200

      response-body-one-of-added

    • added the new enum value openapi to the query request parameter target

      request-parameter-enum-value-added

    • removed subschema #1 subschema #2 from the response body oneOf list for the response status 200

      response-body-one-of-removed

    • added response discriminator for the response status 200

      response-body-discriminator-added

    • removed the enum value source from the query request parameter type

      request-parameter-enum-value-removed

    • added subschema #1 subschema #2 to the response body oneOf list for the response status 200

      response-body-one-of-added

    • for the query request parameter type, the type/format was generalized from string/ to /

      request-parameter-type-generalized

    • removed subschema #1 subschema #2 from the response body oneOf list for the response status 200

      response-body-one-of-removed