Update project
put/projects/{projectId}
Replaces an existing project. Only the name, description, imageUri, and properties fields are editable.
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}
Name | Type | Required | Description |
---|---|---|---|
projectId | string<object-id> | true | The identifier of a specific project and MUST exactly match project.id sent in the body of the request. |
Name | Type | Required | Description |
---|---|---|---|
If-Match | string | true | The ETag that was returned from a GET, POST, or PUT request of this project. |
The representation used to update a project.
Name | Type | Required | Description |
---|---|---|---|
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. The project was updated. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | The project does not exist. | Schema | |
409 | Conflict | The request could not be completed. The project name already exists. | Schema | |
412 | Precondition Failed | The ETag provided does not match the current version of the object. | Schema | |
428 | Precondition Required | The ETag was not provided when updating an existing type. | Schema |