Skip to main content
PUT
Upload one source file with its content hash

Authorizations

Authorization
string
header
required

WorkOS access JWT or a user-owned WorkOS API key. User keys are bound to one organization and restricted to their enabled product permissions. Session-only onboarding and session revocation require an interactive access JWT. No cookie session is assumed.

Headers

X-Request-Id
string

Optional caller-provided correlation identifier.

Required string length: 1 - 128
Idempotency-Key
string
required

Identifies one mutation and its canonical request payload.

Required string length: 1 - 128

Path Parameters

project_id
string
required

Project identifier.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
operation_id
string
required

Operation identifier.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$

Body

application/json
path
string
required

Printable ASCII USTAR-compatible relative repository path without dot segments, backslashes, Git metadata or credential files. Environment secrets use the protected secret form; .env.example is allowed.

Required string length: 1 - 240
content_base64
string
required
Maximum string length: 2796204
Pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
executable
boolean
required
sha256
string
required
Pattern: ^sha256:[a-f0-9]{64}$

Response

The tenant-scoped managed source result.

path
string
required

Printable ASCII USTAR-compatible relative repository path without dot segments, backslashes, Git metadata or credential files. Environment secrets use the protected secret form; .env.example is allowed.

Required string length: 1 - 240
sha256
string
required
Pattern: ^sha256:[a-f0-9]{64}$
byte_length
integer
required
Required range: 0 <= x <= 2097152
executable
boolean
required