Publish a GitHub repository's packages
POST
Starts publish.yml (workflow_dispatch on the default branch) with version; the run publishes with OIDC trusted publishing, so Syndai holds no registry token. 202 with the version and at: the run shows on GET …/publish created at or after at. 409 PUBLISH_NOT_SET_UP when the workflow is missing or refuses the dispatch; 404 for a repository outside this workspace or one Syndai hosts; 503 GITHUB_UNAVAILABLE. Needs coding:apps:publish; a portal member who is not an owner or admin is 403.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidrepository_id*stringFormat
uuidapplication/json- body
version*stringMatch
^v?\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?(?!\n)$Length
length <= 64Request accepted, processing continues off-line
application/json- response
at*stringversion*stringcurl -X POST 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/publish' \ -H 'Content-Type: application/json' \ -d '{ "version": "string"}'Example Response
{ "at": "string", "version": "string"}