Add resource to project

post/projects/{projectId}/resources
Internal-Use Only

Adds a new resource reference to the project. If the resource object referenced is already a member of this project, this operation fails with a 409 status (conflict).

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.

Request Body

The representation used to create a new 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.

Responses

StatusMeaningDescription
201CreatedA new resource was created.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundThe project does not exist.Schema
409ConflictThe request could not be completed. The URI already exists as a resource of this project.Schema