Publish the current draft as an immutable version
pipeline:manage
A token needs thepipeline:managescope: Create, update, and delete pipeline definitionsGranted bywrite_api,write_repository.Every operation this scope unlocksAudited · mutation
x-gitmoap-audit: {"kind":"audited","arg":"mutation"}
Quota · versions per pipeline component
x-gitmoap-quota: {"kind":"enforced","arg":"versions_per_pipeline_component"}
Dry run
Takesdry_run.
Freezes the current draft as a numbered version that pipelines can reference. The draft must
validate, and the number must be at least what the change requires: removing a parameter or a
boundary port needs a new major version, adding an optional one a new minor, and a number once
published is never reused. The response gives the lowest permitted version and what the publish
does to pipelines already using the component, re-checking a sample of them; that report is
advisory and never blocks the publish. Pass dry_run=true for the report alone. Maintainers and
above; a component holds a limited number of versions.
Parameters
- group_idGroupId (string · uuid)The group's id
- component_idComponentId (string · uuid)The component's id
- dry_runbooleanoptionalReport the lowest permissible version and what would change downstream, and write nothing
Request body
application/json- versionComponentVersion (string)
- changelogstring or nulloptional
Responses
blast_radiusComponentBlastRadius
- The ComponentBlastRadius schema
- floating_pipelinesinteger · int320–∞Pipelines whose reference would resolve to this version.
- sampledinteger · int320–∞How many of them were re-expanded and re-validated.
sample_failuresarray of BlastRadiusFailureoptional
- The BlastRadiusFailure schema
- pipeline_idPipelineId (string · uuid)
- pipeline_namePipelineName (string)
- repository_idRepositoryId (string · uuid)
- violationsValidationSummary
- capability_requirementsarray of CapabilityId (string)
- contract_changeContractChangepatchminormajorHow far the contract moved between the last published version and the draft.
- depthinteger · int320–∞
- expanded_node_countinteger · int320–∞
- minimum_versionComponentVersion (string)The lowest version the compatibility gate permits for this contract delta.
- variable_requirementsarray of EnvironmentVariableName (string)The variables the version's steps read from the pipeline that uses it.
- versionComponentVersion (string)
blast_radiusComponentBlastRadius
- The ComponentBlastRadius schema
- floating_pipelinesinteger · int320–∞Pipelines whose reference would resolve to this version.
- sampledinteger · int320–∞How many of them were re-expanded and re-validated.
sample_failuresarray of BlastRadiusFailureoptional
- The BlastRadiusFailure schema
- pipeline_idPipelineId (string · uuid)
- pipeline_namePipelineName (string)
- repository_idRepositoryId (string · uuid)
- violationsValidationSummary
- capability_requirementsarray of CapabilityId (string)
- contract_changeContractChangepatchminormajorHow far the contract moved between the last published version and the draft.
- depthinteger · int320–∞
- expanded_node_countinteger · int320–∞
- minimum_versionComponentVersion (string)The lowest version the compatibility gate permits for this contract delta.
- variable_requirementsarray of EnvironmentVariableName (string)The variables the version's steps read from the pipeline that uses it.
- versionComponentVersion (string)
- BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
- PIPELINE_VALIDATION_FAILEDThe pipeline definition is invalid;
violationslists every problem, so all of them can be fixed at once
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
- UNAUTHORIZEDNo credential was sent, or the one sent is invalid, expired or revoked
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
- FORBIDDENYou are signed in but may not do this here;
reasonnames the permission or the rule that refused it - INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs;
required_scopenames it - PERMISSION_REQUIREDYou need a permission you do not hold here; the message names it
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
- NOT_FOUNDThe resource does not exist — or exists and you cannot see it: a private resource you have no access to answers exactly as an absent one does
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
- CONFLICTThe request conflicts with the resource's current state;
reasonsays how - LEGAL_ACCEPTANCE_REQUIREDAccept the current Terms of Service before changing anything; reading stays open
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
- TOO_MANY_REQUESTSRetryableA quota, a rate limit or a transfer budget is spent. When the response carries
Retry-After, retry after that many seconds
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
CLI
gitmoap pipeline-components publish-group-pipeline-component-version
- --group-ididThe group's id (id or group path)
- --component-ididThe component's id
- --dry-runflagoptionalReport the lowest permissible version and what would change downstream, and write nothing
- --changelogstringoptional
- --versionstring