Skip to content
GitmoapAPIBeta
Shipcatalog
PATCH/catalog/services/{service_id}

Update a service

update_service
  • catalog:manage
    A token needs the catalog:manage scope: Declare, edit and delete catalog servicesGranted by write_api.Every operation this scope unlocks
  • Audited · mutation

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

Changes only the fields you send; null on an owner field clears it. Send the version you last read to have the update refused if someone changed the service since. Maintainers and above on the declaring group; a new owner group needs the same standing on that group, a new owner team needs authority over the team, and newly bound repositories must be ones you maintain. Afterwards a service that is not external must still bind at least one path, and an external one none.

Parameters

Path
  • service_idServiceId (string · uuid)The service's id

Request body

application/json
  • annotationsobjectoptional
  • api_specsarray of ApiSpecRef or nulloptional
    • The ApiSpecRef schema
    • pathRepoPath (string)
    • repository_idRepositoryId (string · uuid)
    • spec_kindApiSpecKindopenapigrpcasyncapiWhich interface-description format a spec is written in.
  • descriptionstring or nulloptional
  • display_namestring or nulloptional
  • externalboolean or nulloptional
  • kindServiceKindservicelibrarywebsitejobdatastoreapiml_modelotheror nulloptionalWhat sort of thing a service is. The kind decides which scorecard checks apply: a library has no deployments, so a deployment check is not applicable to it rather than failing. For your own classifications, use annotations.
  • lifecycleServiceLifecycleexperimentalproductiondeprecatedretiredor nulloptionalWhere a service is in its life.
  • linksarray of ServiceLink or nulloptional
    • The ServiceLink schema
    • link_typeServiceLinkTyperunbookdashboarddocschatotherWhat a service link points at. other covers anything the listed kinds do not.
    • urlHttpsUrl (string)
  • owner_group_idGroupId (string · uuid) or nulloptional
  • owner_principal_idPrincipalId (string · uuid) or nulloptional
  • owner_team_idTeamId (string · uuid) or nulloptional
  • providesarray of ProvidedArtifact or nulloptional
    • The ProvidedArtifact schema
    • formatPackageRegistryFormatnpmcargopypiThe package ecosystem a registry speaks. A group has at most one registry per format.
    • namePackageName (string)
  • repo_pathsarray of ServiceRepoPathInput or nulloptional
  • slugServiceSlug (string) or nulloptional
  • versioninteger · int64 or nulloptionalThe version you last read. When given and the service has changed since, the update is refused with a 409.
Request body exampleSynthesized example
{}

Responses

200The updated serviceapplication/json
  • created_atstring
  • display_namestring
  • group_idGroupId (string · uuid)The declaring group — where the entry lives for listing and quota purposes. Not necessarily the owner.
  • kindServiceKindservicelibrarywebsitejobdatastoreapiml_modelotherWhat sort of thing a service is. The kind decides which scorecard checks apply: a library has no deployments, so a deployment check is not applicable to it rather than failing. For your own classifications, use annotations.
  • lifecycleServiceLifecycleexperimentalproductiondeprecatedretiredWhere a service is in its life.
  • service_idServiceId (string · uuid)
  • slugServiceSlug (string)
  • sourceServiceSourceinferreddeclaredapiHow the catalog entry came to exist. Set by the platform, never accepted from a request. Any source other than inferred means a person has vouched for the entry.
  • updated_atstring
  • versioninteger · int64The service's revision, incremented on every change. Send it with an update to have the update refused with a 409 if someone changed the service since you read it.
  • annotationsobjectoptional
  • api_specsarray of ApiSpecRefoptional
    • The ApiSpecRef schema
    • pathRepoPath (string)
    • repository_idRepositoryId (string · uuid)
    • spec_kindApiSpecKindopenapigrpcasyncapiWhich interface-description format a spec is written in.
  • created_byActorSummary or nulloptional
  • descriptionstring or nulloptional
  • externalbooleanoptionalWhether the service is built outside gitmoap — a vendor SaaS, a service on another forge, a database provisioned elsewhere. The catalog records its name, owner and the dependencies on it, and nothing else. An external service has no repository paths.
  • linksarray of ServiceLinkoptional
    • The ServiceLink schema
    • link_typeServiceLinkTyperunbookdashboarddocschatotherWhat a service link points at. other covers anything the listed kinds do not.
    • urlHttpsUrl (string)
  • orphaned_atstring or nulloptionalWhen the catalog file declaring this service stopped declaring it. The service is kept, with its history, rather than deleted.
  • ownerOwnerRef or nulloptionalWho owns the service. Absent when nobody does.
  • providesarray of ProvidedArtifactoptional
    • The ProvidedArtifact schema
    • formatPackageRegistryFormatnpmcargopypiThe package ecosystem a registry speaks. A group has at most one registry per format.
    • namePackageName (string)
  • repo_pathsarray of ServiceRepoPathoptional
    • The ServiceRepoPath schema
    • path_globstring
    • path_prefixstringThe longest literal prefix of path_glob, worked out by the platform. Read-only.
    • repository_idRepositoryId (string · uuid)
    • is_excludebooleanoptionalWhether this glob removes its matches from the service's paths instead of adding them. It affects only its own service.
200 exampleSynthesized example
{
"created_at": "2026-10-10T12:53:03Z",
"display_name": "Mara Okafor",
"group_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"kind": "service",
"lifecycle": "experimental",
"service_id": "cea33c62-d3a5-4767-a654-e7d41bf3ee50",
"slug": "slug-ffd9",
"source": "inferred",
"updated_at": "2026-10-13T17:49:14Z",
"version": 4,
"annotations": {},
"api_specs": [
{
"path": "path-2ecd",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"spec_kind": "openapi"
},
{
"path": "path-592a",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"spec_kind": "openapi"
}
],
"created_by": {
"email": "mara@acme.example",
"id": "id-ccef",
"username": "mara",
"avatar_url": "https://gitmoap.example/acme/a3d1bc9b"
},
"description": "Renders each region as density contours of its operations.",
"external": false,
"links": [
{
"link_type": "runbook",
"url": "https://gitmoap.example/acme/a316c85e"
}
],
"orphaned_at": "2026-10-14T10:03:13Z",
"owner": {
"group_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"kind": "group",
"full_path": "acme/payments-api"
},
"provides": [
{
"format": "npm",
"name": "payments-api"
},
{
"format": "npm",
"name": "payments-api"
}
],
"repo_paths": [
{
"path_glob": "path-glob-a9b1",
"path_prefix": "path-prefix-2713",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70"
},
{
"path_glob": "path-glob-7839",
"path_prefix": "path-prefix-be16",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70"
}
]
}
400Validation errorapplication/json
Error codes
  • BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
  • EXTERNAL_REQUIRES_NO_PATHSAn external service is not built here, so it cannot claim repository paths
  • SERVICE_REQUIRES_PATHSA service that is not external must claim at least one repository path
  • VALIDATION_ERRORA value is outside what the operation accepts; the message 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.
400 exampleSynthesized example
{
"error": {
"code": "code-68b0",
"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-30d0",
"message": "Draw the region map from operation density"
}
}
403Insufficient standing on the group, or on the group named as the new ownerapplication/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-dba2",
"message": "Pin a page's payload to the build that rendered it"
}
}
404No such service, or it is not visible to the callerapplication/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-2748",
"message": "Inline scalar newtypes but keep their brand"
}
}
409The slug is taken, or the service was modified concurrentlyapplication/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-5bbe",
"message": "Pin a page's payload to the build that rendered it"
}
}

CLI

gitmoap catalog update-service

  • --service-ididThe service's id
  • --annotationsjsonoptional
  • --api-specsjsonoptional
  • --descriptionstringoptional
  • --display-namestringoptional
  • --externalflagoptional
  • --kindservice | library | website | job | datastore | api | ml_model | otheroptional
  • --lifecycleexperimental | production | deprecated | retiredoptional
  • --linksjsonoptional
  • --owner-group-idstringoptional
  • --owner-principal-idstringoptional
  • --owner-team-idstringoptional
  • --providesjsonoptional
  • --repo-pathsjsonoptional
  • --slugstringoptional
  • --versionnumberoptionalThe `version` you last read. When given and the service has changed since, the update is refused with a `409`.

Used in these guides