Skip to content
GitmoapAPIBeta
Schema

CreateAnchorResponse

The anchor that was created, plus who owns the code it points at — taken from the repository's own ownership rules.

Shape

  • assignedarray of PrincipalId (string · uuid)optionalThe suggested owners who were assigned — only when the default_assignee_from_codeowners setting is on and the work item had no assignee. An owner who cannot access the work item stays a suggestion.
  • suggested_assigneesarray of ActorSummaryoptionalThe people and service accounts the repository's CODEOWNERS file names as owners of the anchored path. Whether any were assigned is in assigned.

Example

Synthesized example
{
"assigned": [
"ebad1be5-bc84-4f64-af4e-eef32939932a"
],
"suggested_assignees": [
{
"email": "tomas@acme.example",
"id": "id-5925",
"username": "mara"
},
{
"email": "tomas@acme.example",
"id": "id-4061",
"username": "tomas"
}
]
}

Graph

Used inside

No schema contains this one.

Contains

Used by

Sent by 0 operations

No operation takes it as a request body.