Hi,
I am trying to update the pipelines and I am receiving the following 422 - Unprocessable Entity error message, "Renaming of pipelines is not supported by this API.".
I was not sure whether I am missing something vital or is it an issue so I'd thought to raise it here first.
I have a pipeline with the following details:
- group: test
- name: hi
I have done the following:
1. Do a `GET /go/api/admin/pipelines/hi` request to obtain the latest ETag value
2. Do a `PUT /go/api/admin/pipelines/hi` with the ETag value in the If-Match request header
Then I received the following error
```
{
"message": "Renaming of pipelines is not supported by this API."
}
```
The request body for the `PUT /go/api/admin/pipelines/hi` request is:
```
{
"group": "test",
"pipeline": {
"label_template": "${COUNT}",
"lock_behavior": "lockOnFailure",
"materials": [
{
"attributes": {
"url": "
https://github.com/gocd-contrib/getting-started-repo",
"branch": "master",
"shallow_clone": true,
"auto_update": true
},
"type": "git"
}
],
"stages": [
{
"name": "default_stage",
"fetch_materials": true,
"clean_working_directory": false,
"never_cleanup_artifacts": false,
"approval": {
"type": "success",
"authorization": {
"roles": [],
"users": []
}
},
"environment_variables": [],
"jobs": [
{
"name": "defaultJob",
"run_instance_count": null,
"timeout": 0,
"environment_variables": [],
"resources": [],
"tasks": [
{
"type": "exec",
"attributes": {
"run_if": [
"passed"
],
"command": "ls",
"working_directory": null
}
}
],
"artifacts": []
}
]
}
]
}
}
```