POST/api/management/projects/{projectId}/blocks?autoRelease={true|false}
Parameters
Name | Parameter type | Type | Description | Example | Required |
---|
projectId | path | string | The project identifier found in the project overview screen of the management console. | movieDb | true |
---|
release | query | boolean | Automatically release the block as soon as it has been discovered. Defaults to false. | | false |
---|
Examples
Pushing a new version of the movie-listing block
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Accept: application/json
POST: /api/management/projects/movieDb/blocks/
{
"id": "movie-listing",
"projectId": "movieDb",
"image": {
"uri": "moviedb/movie-listing",
"tag": "81e13d08"
},
"source": {
"branch": "master",
"provider": "github",
"repositoryUrl": "https://github.com/moviedb/movie-listing.git",
"commit": {
"id": "81e13d08",
"message": "Implemented movie listing",
"authorEmail": "m.scorsese@film.com",
"committerEmail": "m.scorsese@film.com",
"datetime": "2021-08-09T14:05:10Z"
}
}
}