Add resource to project
post/projects/{projectId}/resources
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).
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | A new resource was created. | 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 URI already exists as a resource of this project. | Schema |