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

Reject a provider submission

reject_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"}

Closes the submission with the reason you give, which the publisher can read on it; the publisher may submit again. Only a submission awaiting review can be rejected, and a reason is required. 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": "b50c9f3b-55c2-483f-8344-d066da752484",
"config_schema": {},
"default_timeout_seconds": 33,
"description": "Renders each region as density contours of its operations.",
"image_uri": "https://gitmoap.example/acme/7c833356",
"inputs": [],
"name": "payments-api",
"outputs": [],
"requires_docker": false,
"stage_type": "source"
}
],
"contract_version": 34,
"manifest_digest": "manifest-digest-9435",
"provider_id": "5171a41b-8686-493e-a16c-24f3694f319d",
"published_at": "2026-10-12T01:39:19Z",
"published_by": "a3f1c2d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"version": "version-6c0f",
"changelog": "changelog-0737",
"cosign_signature_ref": "cosign-signature-ref-d7f7",
"lifecycle_state": "active",
"signed": false,
"sunset_at": "2026-10-10T02:08:32Z",
"sunset_enforced_at": "2026-10-12T19:05:36Z"
},
"manifest_digest": "manifest-digest-7bb9",
"provider_description": "provider-description-c5e8",
"provider_id": "a6f9b5d2-53b3-46fd-b3b8-978d02e7ee1e",
"provider_name": "payments-api",
"publisher_id": "3fadc942-0aff-44b4-97ac-2dd4b9011e79",
"source_image_refs": {
"source_image_refs": {
"image_digest": "image-digest-be51",
"image_ref": "image-ref-1bd9"
}
},
"state": "submitted",
"submission_id": "cc27be57-3984-425b-9e7b-fec33b057088",
"submitted_at": "2026-10-10T09:27:23Z",
"submitted_by": {
"email": "mara@acme.example",
"id": "id-70a8",
"username": "mara",
"avatar_url": "https://gitmoap.example/acme/9aeb7e7b"
},
"target_tier": "platform",
"version": "version-1fc7",
"attest_result": {
"attested_at": "2026-10-08T15:14:42Z",
"capabilities": {
"capabilities": {
"image_digest": "image-digest-409c",
"image_uri": "https://gitmoap.example/acme/f5d144e1"
}
}
},
"mirror_result": {
"capabilities": {
"capabilities": {
"gitmoap_image_uri": "https://gitmoap.example/acme/3e257ea1",
"image_digest": "image-digest-2df3"
}
},
"mirrored_at": "2026-10-14T21:48:06Z",
"sbom_ref": "sbom-ref-ceb3"
},
"owning_group_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"published_at": "2026-10-12T21:33:43Z",
"registry_pull_secret_ref": "registry-pull-secret-ref-c1d3",
"review_notes": "review-notes-5e1b",
"reviewed_at": "2026-10-13T06:41:08Z",
"reviewer": {
"email": "tomas@acme.example",
"id": "id-09d8",
"username": "mara",
"avatar_url": "https://gitmoap.example/acme/c2ea61da"
}
}
400application/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-2c89",
"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-418c",
"message": "Stream pipeline status into the run header"
}
}
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-d824",
"message": "Draw the region map from operation density"
}
}
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-adf3",
"message": "Inline scalar newtypes but keep their brand"
}
}
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-a8f9",
"message": "Inline scalar newtypes but keep their brand"
}
}

CLI

gitmoap provider-admin reject-provider-submission

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

Used in these guides