parts

Create

POST

Request

This endpoint expects a union.
Capability
OR
Enhancement
OR
Feature
OR
Product

Response

This endpoint returns an object
part
union
POST
1curl -X POST https://api.devrev.ai/parts.create \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "type": "capability",
6 "name": "string",
7 "owned_by": [
8 "string"
9 ],
10 "parent_part": [
11 "string"
12 ]
13}'
200Successful
1{
2 "part": {
3 "type": "capability",
4 "id": "string",
5 "name": "string",
6 "owned_by": [
7 {
8 "type": "dev_user",
9 "id": "string",
10 "display_id": "string",
11 "display_name": "string",
12 "display_picture": {
13 "id": "string",
14 "display_id": "string"
15 },
16 "email": "string",
17 "full_name": "string",
18 "state": "active"
19 }
20 ],
21 "artifacts": [
22 {
23 "id": "string",
24 "display_id": "string"
25 }
26 ],
27 "created_by": {
28 "type": "dev_user",
29 "id": "string",
30 "display_id": "string",
31 "display_name": "string",
32 "display_picture": {
33 "id": "string",
34 "display_id": "string"
35 },
36 "email": "string",
37 "full_name": "string",
38 "state": "active"
39 },
40 "created_date": "2023-01-01T00:00:00Z",
41 "custom_fields": {
42 "string": {}
43 },
44 "custom_schema_fragments": [
45 "string"
46 ],
47 "description": "string",
48 "display_id": "string",
49 "modified_by": {
50 "type": "dev_user",
51 "id": "string",
52 "display_id": "string",
53 "display_name": "string",
54 "display_picture": {
55 "id": "string",
56 "display_id": "string"
57 },
58 "email": "string",
59 "full_name": "string",
60 "state": "active"
61 },
62 "modified_date": "2023-01-01T00:00:00Z",
63 "stock_schema_fragment": "string",
64 "subtype": "string",
65 "tags": [
66 {
67 "tag": {
68 "id": "string",
69 "name": "string",
70 "display_id": "string"
71 },
72 "value": "string"
73 }
74 ]
75 }
76}