Update project resource
put/projects/{projectId}/resources/{resourceId}
Replaces an existing project resource.
1{2 "resourceUri": "http://example.com",3 "version": 0,4 "properties": {5 "property1": "string",6 "property2": "string"7 },8 "id": "string",9 "name": "string",10 "description": "string",11 "contentType": "string",12 "statusCode": 0,13 "errorMessage": "string",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. |
resourceId | string | true | The identifier of a specific resource. |
Name | Type | Required | Description |
---|---|---|---|
If-Match | string | true | The ETag that was returned from a GET, POST, or PUT of this object. |
The representation used to update a resource.
Name | Type | Required | Description |
---|---|---|---|
resourceUri | string<uri> | true | The URI of the item that the resource represents. |
version | integer | false | The version of the object. |
properties | object | false | Additional properties that could be specified for the resource. |
id | string<object-id> | true | The identifier of a specific resource. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. The project resource was updated. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | The project or resource does not exist. | Schema | |
409 | Conflict | The request could not be completed. The URI already exists as a resource of this project. | 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 |