Update project

put/projects/{projectId}
Internal-Use Only

Replaces an existing project. Only the name, description, imageUri, and properties fields are editable.

Request Samples

1

Response Samples

1{
2 "name": "string",
3 "description": "string",
4 "imageUri": "http://example.com",
5 "properties": {
6 "property1": "string",
7 "property2": "string"
8 },
9 "version": 0,
10 "id": "string",
11 "folderUri": "http://example.com",
12 "userCount": 0,
13 "groupCount": 0,
14 "createdBy": "string",
15 "creationTimeStamp": "2019-08-24T14:15:22Z",
16 "modifiedBy": "string",
17 "modifiedTimeStamp": "2019-08-24T14:15:22Z",
18 "links": [
19 {
20 "method": "string",
21 "rel": "string",
22 "uri": "string",
23 "href": "string",
24 "title": "string",
25 "type": "string",
26 "itemType": "string",
27 "responseType": "string",
28 "responseItemType": "string"
29 }
30 ]
31}

Path Parameters

NameTypeRequiredDescription
projectId
string<object-id>
true

The identifier of a specific project and MUST exactly match project.id sent in the body of the request.

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

The ETag that was returned from a GET, POST, or PUT request of this project.

Request Body

The representation used to update a project.

NameTypeRequiredDescription
name
string
true

The identifier of a specific project.

description
string
false

The project's description.

imageUri
string<uri>
false

URI to image used as the project avatar. If a URI is not supplied on a POST request, then a default URI is substituted. Null or blank values are allowed on a PUT request.

properties
object
false

Additional properties that could be specified for the project.

version
integer
false

The version of the object.

id
string<object-id>
false

The identifier of a specific project.

Responses

StatusMeaningDescription
200OKThe request succeeded. The project was updated.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundThe project does not exist.Schema
409ConflictThe request could not be completed. The project name already exists.Schema
412Precondition FailedThe ETag provided does not match the current version of the object.Schema
428Precondition RequiredThe ETag was not provided when updating an existing type.Schema