1 /**
2 * @oas [post] /admin/property-labels
3 * operationId: PostPropertyLabels
4 * summary: Create Property Label
5 * description: Create a property label.
6 * x-authenticated: true
7 * security:
8 * - api_token: []
9 * - cookie_auth: []
10 * - jwt_token: []
11 * requestBody:
12 * content:
13 * application/json:
14 * schema:
15 * $ref: "#/components/schemas/AdminCreatePropertyLabel"
16 * x-codeSamples:
17 * - lang: Shell
18 * label: cURL
19 * source: |-
20 * curl -X POST '{backend_url}/admin/property-labels' \
21 * -H 'Authorization: Bearer {access_token}' \
22 * -H 'Content-Type: application/json' \
23 * --data-raw '{
24 * "entity": "{value}",
25 * "property": "{value}",
26 * "label": "{value}"
27 * }'
28 * tags:
29 * - Property Labels
30 * responses:
31 * "201":
32 * description: OK
33 * content:
34 * application/json:
35 * schema:
36 * $ref: "#/components/schemas/AdminPropertyLabelResponse"
37 * "400":
38 * $ref: "#/components/responses/400_error"
39 * "401":
40 * $ref: "#/components/responses/unauthorized"
41 * "404":
42 * $ref: "#/components/responses/not_found_error"
43 * "409":
44 * $ref: "#/components/responses/invalid_state_error"
45 * "422":
46 * $ref: "#/components/responses/invalid_request_error"
47 * "500":
48 * $ref: "#/components/responses/500_error"
49 * x-workflow: createPropertyLabelsWorkflow
50 * x-events: []
51 * x-since: 2.10.3
52 * x-featureFlag: view_configurations
53 *
54 */
55