1 get:
2 operationId: GetPropertyLabels
3 summary: List Property Labels
4 description: >-
5 Retrieve a list of property labels. The property labels can be filtered by
6 fields such as `id`. The property labels can also be sorted or paginated.
7 x-authenticated: true
8 parameters:
9 - name: entity
10 in: query
11 description: The property label's entity.
12 required: false
13 schema:
14 type: string
15 title: entity
16 description: The property label's entity.
17 - name: property
18 in: query
19 description: The property label's property.
20 required: false
21 schema:
22 type: string
23 title: property
24 description: The property label's property.
25 - name: q
26 in: query
27 description: The property label's q.
28 required: false
29 schema:
30 type: string
31 title: q
32 description: The property label's q.
33 - name: limit
34 in: query
35 description: Limit the number of items returned in the list.
36 required: false
37 schema:
38 type: number
39 title: limit
40 description: Limit the number of items returned in the list.
41 externalDocs:
42 url: '#pagination'
43 - name: offset
44 in: query
45 description: The number of items to skip when retrieving a list.
46 required: false
47 schema:
48 type: number
49 title: offset
50 description: The number of items to skip when retrieving a list.
51 externalDocs:
52 url: '#pagination'
53 - name: order
54 in: query
55 description: >-
56 The field to sort the data by. By default, the sort order is ascending.
57 To change the order to descending, prefix the field name with `-`.
58 required: false
59 schema:
60 type: string
61 title: order
62 description: >-
63 The field to sort the data by. By default, the sort order is
64 ascending. To change the order to descending, prefix the field name
65 with `-`.
66 externalDocs:
67 url: '#pagination'
68 - name: with_deleted
69 in: query
70 description: The property label's with deleted.
71 required: false
72 schema:
73 type: boolean
74 title: with_deleted
75 description: The property label's with deleted.
76 - name: fields
77 in: query
78 description: >-
79 Comma-separated fields that should be included in the returned data. If
80 a field is prefixed with `+` it will be added to the default fields,
81 using `-` will remove it from the default fields. Without prefix it will
82 replace the entire default fields.
83 required: false
84 schema:
85 type: string
86 title: fields
87 description: >-
88 Comma-separated fields that should be included in the returned data.
89 If a field is prefixed with `+` it will be added to the default
90 fields, using `-` will remove it from the default fields. Without
91 prefix it will replace the entire default fields.
92 externalDocs:
93 url: '#select-fields-and-relations'
94 security:
95 - api_token: []
96 - cookie_auth: []
97 - jwt_token: []
98 x-codeSamples:
99 - lang: Shell
100 label: cURL
101 source:
102 $ref: ../code_samples/Shell/admin_property-labels/get.sh
103 tags:
104 - Property Labels
105 responses:
106 '200':
107 description: OK
108 content:
109 application/json:
110 schema:
111 $ref: ../components/schemas/AdminPropertyLabelListResponse.yaml
112 '400':
113 $ref: ../components/responses/400_error.yaml
114 '401':
115 $ref: ../components/responses/unauthorized.yaml
116 '404':
117 $ref: ../components/responses/not_found_error.yaml
118 '409':
119 $ref: ../components/responses/invalid_state_error.yaml
120 '422':
121 $ref: ../components/responses/invalid_request_error.yaml
122 '500':
123 $ref: ../components/responses/500_error.yaml
124 x-since: 2.10.3
125 x-featureFlag: view_configurations
126 post:
127 operationId: PostPropertyLabels
128 summary: Create Property Label
129 description: Create a property label.
130 x-authenticated: true
131 security:
132 - api_token: []
133 - cookie_auth: []
134 - jwt_token: []
135 requestBody:
136 content:
137 application/json:
138 schema:
139 $ref: ../components/schemas/AdminCreatePropertyLabel.yaml
140 x-codeSamples:
141 - lang: Shell
142 label: cURL
143 source:
144 $ref: ../code_samples/Shell/admin_property-labels/post.sh
145 tags:
146 - Property Labels
147 responses:
148 '201':
149 description: OK
150 content:
151 application/json:
152 schema:
153 $ref: ../components/schemas/AdminPropertyLabelResponse.yaml
154 '400':
155 $ref: ../components/responses/400_error.yaml
156 '401':
157 $ref: ../components/responses/unauthorized.yaml
158 '404':
159 $ref: ../components/responses/not_found_error.yaml
160 '409':
161 $ref: ../components/responses/invalid_state_error.yaml
162 '422':
163 $ref: ../components/responses/invalid_request_error.yaml
164 '500':
165 $ref: ../components/responses/500_error.yaml
166 x-workflow: createPropertyLabelsWorkflow
167 x-events: []
168 x-since: 2.10.3
169 x-featureFlag: view_configurations