curl --request PATCH \
--url https://api.example.com/v1/projects/{project}/plans/{plan} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"title": "<string>",
"description": "<string>",
"specs": [
{
"id": "<string>",
"createDatabaseConfig": {
"target": "<string>",
"database": "<string>",
"table": "<string>",
"characterSet": "<string>",
"collation": "<string>",
"cluster": "<string>",
"owner": "<string>",
"environment": "<string>"
},
"changeDatabaseConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"release": "<string>",
"type": "DATABASE_CHANGE_TYPE_UNSPECIFIED",
"ghostFlags": {},
"enablePriorBackup": true,
"enableGhost": true
},
"exportDataConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"format": "FORMAT_UNSPECIFIED",
"password": "<string>"
}
}
],
"deployment": {
"environments": [
"<string>"
],
"databaseGroupMappings": [
{
"databaseGroup": "<string>",
"databases": [
"<string>"
]
}
]
}
}
'{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"issue": "<string>",
"rollout": "<string>",
"title": "<string>",
"description": "<string>",
"specs": [
{
"id": "<string>",
"createDatabaseConfig": {
"target": "<string>",
"database": "<string>",
"table": "<string>",
"characterSet": "<string>",
"collation": "<string>",
"cluster": "<string>",
"owner": "<string>",
"environment": "<string>"
},
"changeDatabaseConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"release": "<string>",
"type": "DATABASE_CHANGE_TYPE_UNSPECIFIED",
"ghostFlags": {},
"enablePriorBackup": true,
"enableGhost": true
},
"exportDataConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"format": "FORMAT_UNSPECIFIED",
"password": "<string>"
}
}
],
"creator": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"planCheckRunStatusCount": {},
"deployment": {
"environments": [
"<string>"
],
"databaseGroupMappings": [
{
"databaseGroup": "<string>",
"databases": [
"<string>"
]
}
]
}
}UpdatePlan updates the plan. The plan creator and the user with bb.plans.update permission on the project can update the plan. Permissions required: bb.plans.update (or creator)
curl --request PATCH \
--url https://api.example.com/v1/projects/{project}/plans/{plan} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"title": "<string>",
"description": "<string>",
"specs": [
{
"id": "<string>",
"createDatabaseConfig": {
"target": "<string>",
"database": "<string>",
"table": "<string>",
"characterSet": "<string>",
"collation": "<string>",
"cluster": "<string>",
"owner": "<string>",
"environment": "<string>"
},
"changeDatabaseConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"release": "<string>",
"type": "DATABASE_CHANGE_TYPE_UNSPECIFIED",
"ghostFlags": {},
"enablePriorBackup": true,
"enableGhost": true
},
"exportDataConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"format": "FORMAT_UNSPECIFIED",
"password": "<string>"
}
}
],
"deployment": {
"environments": [
"<string>"
],
"databaseGroupMappings": [
{
"databaseGroup": "<string>",
"databases": [
"<string>"
]
}
]
}
}
'{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"issue": "<string>",
"rollout": "<string>",
"title": "<string>",
"description": "<string>",
"specs": [
{
"id": "<string>",
"createDatabaseConfig": {
"target": "<string>",
"database": "<string>",
"table": "<string>",
"characterSet": "<string>",
"collation": "<string>",
"cluster": "<string>",
"owner": "<string>",
"environment": "<string>"
},
"changeDatabaseConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"release": "<string>",
"type": "DATABASE_CHANGE_TYPE_UNSPECIFIED",
"ghostFlags": {},
"enablePriorBackup": true,
"enableGhost": true
},
"exportDataConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"format": "FORMAT_UNSPECIFIED",
"password": "<string>"
}
}
],
"creator": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"planCheckRunStatusCount": {},
"deployment": {
"environments": [
"<string>"
],
"databaseGroupMappings": [
{
"databaseGroup": "<string>",
"databases": [
"<string>"
]
}
]
}
}The list of fields to update.
If set to true, and the plan is not found, a new plan will be created.
In this situation, update_mask is ignored.
The name of the plan.
plan is a system generated ID.
Format: projects/{project}/plans/{plan}
The state of the plan.
STATE_UNSPECIFIED, ACTIVE, DELETED The title of the plan.
The description of the plan.
The deployment specs for the plan.
Show child attributes
Show child attributes
OK
The name of the plan.
plan is a system generated ID.
Format: projects/{project}/plans/{plan}
The state of the plan.
STATE_UNSPECIFIED, ACTIVE, DELETED The issue associated with the plan. Can be empty. Format: projects/{project}/issues/{issue}
The rollout associated with the plan. Can be empty. Format: projects/{project}/rollouts/{rollout}
The title of the plan.
The description of the plan.
The deployment specs for the plan.
Show child attributes
Format: users/[email protected]
The status count of the latest plan check runs. Keys are:
Show child attributes
Show child attributes
Was this page helpful?