GitLab API

GitlabTool

Actions1095

Jobs → postApiV4JobsIdArtifacts

AI-generated

Summary

Send a POST request to upload or update artifacts for a specific GitLab job identified by its ID.

Inputs

  • id (required) — The numeric ID of the GitLab job whose artifacts you want to upload or modify.
  • postApiV4JobsIdArtifacts (required) — The request body object containing the artifacts data to be uploaded or updated for the job.
  • baseUrl — Optional base URL for the GitLab instance; defaults to 'https://gitlab.com'.
  • skipAuthentication — Boolean flag to skip authentication; defaults to false which uses the configured GitLab API credentials.

Output shape

The operation returns the response body of the POST request, which typically contains information about the uploaded artifacts or job status.

The POST request targets the endpoint '/api/v4/jobs/{id}/artifacts' where {id} is the job ID. Authentication is required unless explicitly skipped. The response shape depends on GitLab's API but is generally JSON data about the artifacts upload result.

Links

Discussion