Skip to content
GitmoapAPIBeta
Integrateprovider-admin
POST/admin/provider-submissions/{submission_id}/approve

Approve a provider submission

approve_provider_submission
  • provider_admin:manage
    A token needs the provider_admin:manage scope: Review, feature and sunset provider submissionsGranted by write_api.Every operation this scope unlocks
  • Audited · mutation

    x-gitmoap-audit: {"kind":"audited","arg":"mutation"}

Records the approval, with an optional note, and starts publishing: the submitted image is copied into the platform's registry and signed, and the submission moves on through its states. Only a submission awaiting review can be approved, and only while its publisher is still verified. Platform administrators only.

Parameters

Path
  • submission_idProviderSubmissionId (string · uuid)Submission id

Request body

application/json
  • notestring or nulloptional
  • reasonstring or nulloptional
Request body exampleSynthesized example
{}

Responses

200application/json
  • auth_schemaobject
  • manifestProviderVersionManifestThe provider version as submitted. Image locations and digests, signing and lifecycle are filled in by the platform when the version is published.
    • The ProviderVersionManifest schema
    • capabilitiesarray of CapabilityDescriptor
      • The CapabilityDescriptor schema
      • cache_enabledboolean
      • capability_idCapabilityId (string)
      • config_schemaobjectThe JSON Schema a step's config must satisfy to use this capability.
      • default_timeout_secondsinteger · int320–∞
      • descriptionstring
      • image_uristringThe container image that runs the capability, with an immutable version tag.
      • inputsarray of PortDescriptor
      • namestring
      • outputsarray of PortDescriptor
      • requires_dockerboolean
      • stage_typeStageTypesourcebuildtestpublishdeploynotifycustomThe pipeline stage a capability belongs to. Maps verbatim to the stage_type field of a capability in gitmoap-provider.yaml.
      • bindablearray of PortName (string)optionalConfig keys that can take their value from an earlier step. Each has an optional value input port of the same name: connect it and read it with {"$from": "<key>"}, or leave it unconnected and write the value yourself.
      • image_digeststring or nulloptionalThe exact build of the capability's container image, when the catalog records one. Pinned so a run cannot pick up a different build behind the same tag.
      • input_groupsarray of PortGroupoptionalRules about which inputs are alternatives to each other. Empty for most capabilities.
      • source_image_refstring or nulloptionalFor a verified provider, the image's location in its publisher's registry before gitmoap copied it. Absent for providers gitmoap builds itself.
    • contract_versioninteger · int320–∞
    • manifest_digeststringThe SHA-256 digest of the version's gitmoap-provider.yaml. May be empty.
    • provider_idProviderId (string)
    • published_atstring
    • published_bystring"platform" for platform-authored providers; a publisher id otherwise.
    • versionProviderVersion (string)
    • changelogMarkdownDoc (string) or nulloptionalThe version's release notes, in Markdown, up to 64 KB. They cannot be changed once published. Absent when the version has none.
    • cosign_signature_refstring or nulloptionalWhere the cosign signature is stored in the registry, when the images are signed.
    • lifecycle_stateVersionLifecycleactivedeprecatedsunsetoptionalWhere the version is in its life: active, deprecated or sunset. Checked whenever a run starts.
    • signedbooleanoptionalWhether the version's images are signed with gitmoap's cosign key, as verified and platform providers' are.
    • sunset_atstring or nulloptionalWhen the version was sunset. Set only for a sunset version.
    • sunset_enforced_atstring or nulloptionalWhen the sunset's grace period ends. After it, a run that uses the version fails to start.
  • manifest_digeststring
  • provider_descriptionstring
  • provider_idProviderId (string)
  • provider_namestringThe provider's name, as the catalog shows it.
  • publisher_idPublisherId (string · uuid)
  • source_image_refsobjectEach capability's image in your registry, by capability id.
  • stateSubmissionStatesubmittedin_reviewchanges_requestedapprovedmirroringsigningpublishedrejectedmirror_failedwithdrawnverifyingverification_failedWhere a provider submission stands, from review through to publication or refusal.
  • submission_idProviderSubmissionId (string · uuid)
  • submitted_atstring
  • submitted_byActorSummaryWho submitted the version.
  • target_tierProviderTierplatformverifiedcommunityprivateThe tier the version was submitted for: verified goes to review by gitmoap; community and private are checked automatically, without review.
  • versionProviderVersion (string)
  • attest_resultAttestResult or nulloptionalThe result of checking a community or private provider's images.
  • mirror_resultMirrorResult or nulloptional
  • owning_group_idGroupId (string · uuid) or nulloptionalThe organization the provider is private to. Set only when target_tier is private.
  • published_atstring or nulloptional
  • registry_pull_secret_refSsmParameterPath (string) or nulloptionalA reference to the stored credential for pulling images from a private registry, for a private provider that uses one. Never the credential itself.
  • review_notesstring or nulloptional
  • reviewed_atstring or nulloptional
  • reviewerActorSummary or nulloptionalThe gitmoap administrator who reviewed the submission, once reviewed.
200 exampleSynthesized example
{
"auth_schema": {},
"manifest": {
"capabilities": [
{
"cache_enabled": false,
"capability_id": "ded6eaeb-6d39-4899-98de-6c7132fe290b",
"config_schema": {},
"default_timeout_seconds": 52,
"description": "Renders each region as density contours of its operations.",
"image_uri": "https://gitmoap.example/acme/74cd0831",
"inputs": [],
"name": "payments-api",
"outputs": [],
"requires_docker": false,
"stage_type": "source"
},
{
"cache_enabled": false,
"capability_id": "2a8b8ed2-94ec-43ff-bf44-6715155ed715",
"config_schema": {},
"default_timeout_seconds": 71,
"description": "Renders each region as density contours of its operations.",
"image_uri": "https://gitmoap.example/acme/a59543b8",
"inputs": [],
"name": "payments-api",
"outputs": [],
"requires_docker": false,
"stage_type": "source"
}
],
"contract_version": 40,
"manifest_digest": "manifest-digest-038c",
"provider_id": "71493485-ee26-4242-9900-9ffb1b5aca2f",
"published_at": "2026-10-09T22:50:54Z",
"published_by": "b7e2d1c0-9f8e-4d7c-a6b5-c4d3e2f1a0b9",
"version": "version-12de",
"changelog": "changelog-1e8e",
"cosign_signature_ref": "cosign-signature-ref-6d7b",
"lifecycle_state": "active",
"signed": false,
"sunset_at": "2026-10-13T16:10:55Z",
"sunset_enforced_at": "2026-10-12T05:07:05Z"
},
"manifest_digest": "manifest-digest-54e7",
"provider_description": "provider-description-b6cf",
"provider_id": "912f9949-b874-4d69-bbc0-9c824148fd77",
"provider_name": "payments-api",
"publisher_id": "7ba5264c-6c1a-4042-bf8d-fcd82b03a87c",
"source_image_refs": {
"source_image_refs": {
"image_digest": "image-digest-6cec",
"image_ref": "image-ref-5053"
}
},
"state": "submitted",
"submission_id": "2bcf0403-c166-412e-9afe-b237e450f4df",
"submitted_at": "2026-10-16T07:21:13Z",
"submitted_by": {
"email": "mara@acme.example",
"id": "id-5876",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/5b83ba60"
},
"target_tier": "platform",
"version": "version-044b",
"attest_result": {
"attested_at": "2026-10-11T20:35:54Z",
"capabilities": {
"capabilities": {
"image_digest": "image-digest-0964",
"image_uri": "https://gitmoap.example/acme/4bc54cd7"
}
}
},
"mirror_result": {
"capabilities": {
"capabilities": {
"gitmoap_image_uri": "https://gitmoap.example/acme/578c0cab",
"image_digest": "image-digest-0df9"
}
},
"mirrored_at": "2026-10-16T01:30:31Z",
"sbom_ref": "sbom-ref-a281"
},
"owning_group_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"published_at": "2026-10-16T15:17:16Z",
"registry_pull_secret_ref": "registry-pull-secret-ref-95d2",
"review_notes": "review-notes-2eec",
"reviewed_at": "2026-10-16T09:09:56Z",
"reviewer": {
"email": "mara@acme.example",
"id": "id-27fe",
"username": "mara",
"avatar_url": "https://gitmoap.example/acme/410ba2f7"
}
}
400Bad request — a path parameter is not a well-formed value of its typeapplication/json
Error codes
  • BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
  • 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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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.
400 exampleSynthesized example
{
"error": {
"code": "code-8ef1",
"message": "Label every synthesized example"
}
}
401Unauthenticated — no credential, or an invalid oneapplication/json
Error codes
  • 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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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.
401 exampleSynthesized example
{
"error": {
"code": "code-fd55",
"message": "Draw the region map from operation density"
}
}
403application/json
Error codes
  • FORBIDDENYou are signed in but may not do this here; reason names the permission or the rule that refused it
  • INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs; required_scope names 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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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.
403 exampleSynthesized example
{
"error": {
"code": "code-7ce7",
"message": "Pin a page's payload to the build that rendered it"
}
}
404application/json
Error codes
  • 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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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.
404 exampleSynthesized example
{
"error": {
"code": "code-7aca",
"message": "Stream pipeline status into the run header"
}
}
409application/json
Error codes
  • CONFLICTThe request conflicts with the resource's current state; reason says 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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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.
409 exampleSynthesized example
{
"error": {
"code": "code-e483",
"message": "Stream pipeline status into the run header"
}
}
422application/json
Error codes
  • UNPROCESSABLE_ENTITYThe request is well-formed but asks for something the resource's rules do not allow; reason says which
  • 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 reason or code.
    • fieldstring or nulloptionalOn a 400 that 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 on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): 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.
422 exampleSynthesized example
{
"error": {
"code": "code-ab10",
"message": "Label every synthesized example"
}
}

CLI

gitmoap provider-admin approve-provider-submission

  • --submission-ididSubmission id
  • --notestringoptional
  • --reasonstringoptional

Used in these guides