API Reference
Check if spec needs republishing based on git SHA
Returns whether the provided git SHA differs from the last published version's SHA.
Used in CI/CD to skip publish when the spec file has not changed.
Query Parameters
apiId?string
Format
uuidname?string
gitSha*string
Header Parameters
X-Org-Id*string
Format
uuidResponse Body
application/json
application/json
application/json
curl -X GET "https://loading/api-management/cli/v1/sync-status?gitSha=string" \ -H "X-Org-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"needsPublish": true,
"lastPublishedSha": "string",
"lastPublishedVersion": "string",
"apiId": "2500ac85-f71b-4d01-b32c-62f3af3fe2c5"
}{
"status": 0,
"title": "string",
"detail": "string"
}{
"status": 0,
"title": "string",
"detail": "string"
}