Update project resource

put/projects/{projectId}/resources/{resourceId}

Replaces an existing project resource.

Request Samples

1

Response Samples

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}

Path Parameters

NameTypeRequiredDescription
projectId
string<object-id>
true

The identifier of a specific project.

resourceId
string
true

The identifier of a specific resource.

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

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

Request Body

The representation used to update a resource.

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
200OK

The request succeeded. The project resource was updated.

HeadersSchema
400Bad Request

The request was invalid.

Schema
404Not Found

The project or resource does not exist.

Schema
409Conflict

The request could not be completed. The URI already exists as a resource of this project.

Schema
412Precondition Failed

The ETag provided does not match the current version of the object.

Schema
428Precondition Required

The ETag was not provided when updating an existing type.

Schema