Identifies the calling client as <name>/<version>, for example reunite-ui/0.92.1. Used for API consumer observability. Requests without it are attributed as unknown.
Push discovered files as a remote content. Files should be sent as a multipart/form-data. Commit details like commit message and author can be sent as a JSON object in the commit field. The complete multipart body must not exceed 500 MiB, including files, fields, and multipart overhead.
Requires project.remotes.update permission. The CLI push command creates or updates the remote before it pushes files, so it also requires project.remotes.create.
PROCESS_GIT_REPO job, if any. Required for Scout pushes. Unique identifier prefixed with job_.
Context of the PROCESS_GIT_REPO job, if any. Applies to Scout pushes only. Used as commit status context.
- Mock serverhttps://redocly.com/_mock/docs/platform/customization/reunite-api/openapi/orgs/{orgId}/projects/{projectId}/pushes
- Production main server.https://app.cloud.redocly.com/api/orgs/{orgId}/projects/{projectId}/pushes
- Production EU server.https://app.cloud.eu.redocly.com/api/orgs/{orgId}/projects/{projectId}/pushes
curl -i -X POST \
https://redocly.com/_mock/docs/platform/customization/reunite-api/openapi/orgs/org_01h1s5z6vf2mm1mz3hevnn9va7/projects/prj_01hh1t9sa6gwfv5naz04gr7ehm/pushes \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-H 'x-redocly-client: reunite-ui/0.92.1' \
-F remoteIds=string \
-F remoteId=string \
-F 'commit="{\"message\":\"chore: Add new API\",\"branchName\":\"main\",\"sha\":\"f64ae8ea9dd7cf28822c471ea56b6d6765971305\",\"url\":\"https://gitlab.com/example-user/example-project/-/commit/f64ae8ea9dd7cf28822c471ea56b6d6765971305\",\"createdAt\":\"2020-01-01T00:00:00.000Z\",\"namespaceId\":\"Redocly\",\"repositoryId\":\"redoc\",\"author\":{\"name\":\"John Doe\",\"email\":\"johndoe@example.com\",\"image\":\"string\"}}";type=application/json' \
-F scoutJobId=job_01h2captefvs9bpg3v6twqqj9n \
-F 'scoutJobContext=Team A' \
-F replace=true \
-F 'files="{\"property1\":\"string\",\"property2\":\"string\"}";type=application/json' \
-F isMainBranch=truePush ID. Unique identifier prefixed with push_.
PROCESS_GIT_REPO job, if any. Required for Scout pushes. Unique identifier prefixed with job_.
Indicates whether the push is discarded. In case several pushes are performed in a row, the one with most recent commit is applied only. Always false when commit's createdAt is omitted.
{ "id": "push_01h2captefvs9bpg3v6twqqj9n", "object": "push", "remoteIds": [ "string" ], "remoteId": "string", "commit": { "message": "chore: Add new API", "branchName": "main", "sha": "f64ae8ea9dd7cf28822c471ea56b6d6765971305", "url": "https://gitlab.com/example-user/example-project/-/commit/f64ae8ea9dd7cf28822c471ea56b6d6765971305", "createdAt": "2020-01-01T00:00:00.000Z", "namespaceId": "Redocly", "repositoryId": "redoc", "author": { … }, "statuses": [ … ] }, "scoutJobId": "job_01h2captefvs9bpg3v6twqqj9n", "replace": true, "uploadedFiles": [ { … } ], "isMainBranch": true, "isOutdated": false, "hasChanges": false, "status": { "preview": { … }, "production": { … } } }