v50

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-031984301.2 MB
Source File

Attach Source Files

This endpoint can only be used after files have been uploaded via the Upload Zip File endpoint. It allows you to add multiple source files to a project.

Each file must be individually attached by setting the fileUrl to the associatedFiles.id returned by the Poll Upload Zip File endpoint, once the unzipStatus is extracted.

If a file is attached after the project has already been started, a new start project request must be made.

Note: The maximum character size of the sum between the name and the path fields must not exceed 255. Otherwise the request cannot be validated.

post/projects/{projectId}/source-files/attach-files

Query parameters

fieldsstring

A comma separated list of fields to include in the response. Every value in the list should either consist of a top-level property name (excluding the items envelope for endpoints returning lists) or refer to a property of a top-level property of type object, in the following form: "toplevelpropertyname.subpropertyname". When this query parameter is omitted, default resource representations are returned (excluding fields marked as optional). The same applies to nested objects when just specifying the top-level property name, without explicitly listing sub-property names. When specifying the fields query parameter, only the specified fields are returned. The id property is always returned.

Headers

Authorizationstring required

The bearer access token provided by Auth0.

X-LC-Tenantstring required

The identifier of the account where the request is executed.

Request body

Response