Update Project Name/Team Id - PATCH /projects/{id} (v8.8.0 and up)
Update an existing project's name or team Id according to the Project Id.
Usage:
- GET /projects/{id} and get details of a specified project
- PATCH /projects/{id} and update the project's name or team Id
URL
http://localhost/cxrestapi/projects/{id}
Method:
PATCH
Media Type (header):
Authorization: Bearer <access token value>
Content-Type: application/json;v=2.0
cxOrigin: {request_origin}
Parameters
Required:
id=[integer] – Unique Id of the project
Project=[body] - Project details:
name=[string] – Specifies the name of the project
owningTeam=[string] – Specifies the Id of the team that owns the project
Curl Sample:
curl -X PATCH --header 'Content-Type: application/json;v=1.0' --header 'Accept: application/json;v=1.0' --header 'Authorization: Bearer <access token> -d '{ \
"name": "Project 6", \
"owningTeam": 1 \
}' 'http://localhost/cxrestapi/projects/1'
Sample Response:
no content
Success Response:
Code: 204 Accepted
Error Response:
Code: 400 Bad Request
Code: 404 Not Found
Notes:
Updates an existing project's name or team Id according to Project Id. The same team cannot have two projects with identical names. If the request fails, it returns an error response.
Read more: