links

Create

POST
Creates a link between two objects to indicate a relationship.

Request

This endpoint expects an object.
link_type
enumRequired
Type of link used to define the relationship.
source
stringRequired
The ID of the source object.
target
stringRequired
The ID of the target object.

Response

This endpoint returns an object
link
object
POST
1curl -X POST https://api.devrev.ai/links.create \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "link_type": "developed_with",
6 "source": "string",
7 "target": "string"
8}'
200Successful
1{
2 "link": {
3 "id": "string",
4 "link_type": "developed_with",
5 "source": {
6 "type": "capability",
7 "id": "string",
8 "name": "string",
9 "display_id": "string"
10 },
11 "target": {
12 "type": "capability",
13 "id": "string",
14 "name": "string",
15 "display_id": "string"
16 },
17 "created_by": {
18 "type": "dev_user",
19 "id": "string",
20 "display_id": "string",
21 "display_name": "string",
22 "display_picture": {
23 "id": "string",
24 "display_id": "string"
25 },
26 "email": "string",
27 "full_name": "string",
28 "state": "active"
29 },
30 "created_date": "2023-01-01T00:00:00Z",
31 "display_id": "string",
32 "modified_by": {
33 "type": "dev_user",
34 "id": "string",
35 "display_id": "string",
36 "display_name": "string",
37 "display_picture": {
38 "id": "string",
39 "display_id": "string"
40 },
41 "email": "string",
42 "full_name": "string",
43 "state": "active"
44 },
45 "modified_date": "2023-01-01T00:00:00Z"
46 }
47}