# Upload remote execution source

Upload the source code for the remote execution.

Endpoint: POST /iacm/api/orgs/{org}/projects/{project}/workspaces/{workspace}/remote-executions/{id}/upload
Version: 1.0
Security: x-api-key

## Path parameters:

  - `org` (string, required)
    Org is the organisation identifier.
    Example: "o4"

  - `project` (string, required)
    Project is the project identifier.
    Example: "klq"

  - `workspace` (string, required)
    Workspace is the resource workspace this variable is associated with.
    Example: "Nam est et architecto optio exercitationem."

  - `id` (string, required)
    The ID of the remote execution
    Example: "d5c94778-9703-4d55-bbd9-9abc084a5653"

## Header parameters:

  - `Harness-Account` (string, required)
    Account is the internal customer account ID.
    Example: "2z"

  - `Content-Length` (integer)
    Size in bytes of the source code.
    Example: 7915008551940518000

  - `Content-Digest` (string, required)
    Content-Digest header as defined in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Digest. Sha256 is the only supported algorithm.
    Example: "Sed doloribus aut quidem."

## Response 200 fields (application/json):

  - `account` (string, required)
    Account is the internal customer account ID.
    Example: "xt"

  - `created` (integer, required)
    Created is the unix timestamp at which the resource was originally created in milliseconds.
    Example: 2264143297016755500

  - `custom_arguments` (object)
    The arguments supplied to the plan.
    Example: {"In error maiores sequi sit consequatur magnam.":["Doloribus aut nam fuga.","Enim magni aut qui quo perferendis.","Placeat hic rerum perferendis.","Dolorum facere sunt ipsa rerum omnis eum."],"Voluptatibus et et rem necessitatibus eos.":["Ut possimus.","Eius veniam omnis perspiciatis iure.","Incidunt doloribus corrupti dolores."]}

  - `executed` (boolean, required)
    The boolean value indicating if the remote execution has been executed.
    Example: true

  - `id` (string, required)
    The ID of the remote execution.
    Example: "9ce10e01-0989-406b-8f4f-9ad12e99b61c"

  - `org` (string, required)
    Org is the organisation identifier.
    Example: "3"

  - `pipeline_execution_id` (string, required)
    The pipeline execution ID of the pipeline executing the remote execution
    Example: "Debitis qui delectus."

  - `pipeline_execution_url` (string, required)
    The pipeline execution URL of the pipeline executing the remote execution
    Example: "Voluptate eveniet non."

  - `project` (string, required)
    Project is the project identifier.
    Example: "5j8"

  - `sha256_checksum` (string, required)
    The checksum of the patch file of changes that the remote execution will run against.
    Example: "Blanditiis eius et esse dolorum."

  - `updated` (integer, required)
    Modified is the unix timestamp at which the resource was last modified in milliseconds.
    Example: 7194215559774520000

  - `workspace` (string, required)
    The workspace associated with the remote execution.
    Example: "Est eius."

## Response 400 fields (application/vnd.goa.error):

  - `fault` (boolean, required)
    Is the error a server-side fault?

  - `id` (string, required)
    ID is a unique identifier for this particular occurrence of the problem.
    Example: "123abc"

  - `message` (string, required)
    Message is a human-readable explanation specific to this occurrence of the problem.
    Example: "parameter 'p' must be an integer"

  - `name` (string, required)
    Name is the name of this class of errors.
    Example: "bad_request"

  - `temporary` (boolean, required)
    Is the error temporary?

  - `timeout` (boolean, required)
    Is the error a timeout?
    Example: true


