@@ -6889,7 +6889,7 @@ components:
6889
6889
description: A case
6890
6890
properties:
6891
6891
attributes:
6892
- $ref: '#/components/schemas/CaseAttributes '
6892
+ $ref: '#/components/schemas/CaseResourceAttributes '
6893
6893
id:
6894
6894
description: Case's identifier
6895
6895
example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
@@ -6947,52 +6947,11 @@ components:
6947
6947
- data
6948
6948
type: object
6949
6949
CaseAttributes:
6950
- description: Case attributes
6951
- properties:
6952
- archived_at:
6953
- description: Timestamp of when the case was archived
6954
- format: date-time
6955
- nullable: true
6956
- readOnly: true
6957
- type: string
6958
- closed_at:
6959
- description: Timestamp of when the case was closed
6960
- format: date-time
6961
- nullable: true
6962
- readOnly: true
6963
- type: string
6964
- created_at:
6965
- description: Timestamp of when the case was created
6966
- format: date-time
6967
- readOnly: true
6968
- type: string
6969
- description:
6970
- description: Description
6971
- type: string
6972
- jira_issue:
6973
- $ref: '#/components/schemas/JiraIssue'
6974
- key:
6975
- description: Key
6976
- example: CASEM-4523
6977
- type: string
6978
- modified_at:
6979
- description: Timestamp of when the case was last modified
6980
- format: date-time
6981
- nullable: true
6982
- readOnly: true
6983
- type: string
6984
- priority:
6985
- $ref: '#/components/schemas/CasePriority'
6986
- service_now_ticket:
6987
- $ref: '#/components/schemas/ServiceNowTicket'
6988
- status:
6989
- $ref: '#/components/schemas/CaseStatus'
6990
- title:
6991
- description: Title
6992
- example: Memory leak investigation on API
6950
+ additionalProperties:
6951
+ items:
6993
6952
type: string
6994
- type:
6995
- $ref: '#/components/schemas/CaseType'
6953
+ type: array
6954
+ description: The definition of `CaseAttributes` object.
6996
6955
type: object
6997
6956
CaseCreate:
6998
6957
description: Case creation data
@@ -7090,6 +7049,56 @@ components:
7090
7049
project:
7091
7050
$ref: '#/components/schemas/ProjectRelationship'
7092
7051
type: object
7052
+ CaseResourceAttributes:
7053
+ description: Case resource attributes
7054
+ properties:
7055
+ archived_at:
7056
+ description: Timestamp of when the case was archived
7057
+ format: date-time
7058
+ nullable: true
7059
+ readOnly: true
7060
+ type: string
7061
+ attributes:
7062
+ $ref: '#/components/schemas/CaseAttributes'
7063
+ closed_at:
7064
+ description: Timestamp of when the case was closed
7065
+ format: date-time
7066
+ nullable: true
7067
+ readOnly: true
7068
+ type: string
7069
+ created_at:
7070
+ description: Timestamp of when the case was created
7071
+ format: date-time
7072
+ readOnly: true
7073
+ type: string
7074
+ description:
7075
+ description: Description
7076
+ type: string
7077
+ jira_issue:
7078
+ $ref: '#/components/schemas/JiraIssue'
7079
+ key:
7080
+ description: Key
7081
+ example: CASEM-4523
7082
+ type: string
7083
+ modified_at:
7084
+ description: Timestamp of when the case was last modified
7085
+ format: date-time
7086
+ nullable: true
7087
+ readOnly: true
7088
+ type: string
7089
+ priority:
7090
+ $ref: '#/components/schemas/CasePriority'
7091
+ service_now_ticket:
7092
+ $ref: '#/components/schemas/ServiceNowTicket'
7093
+ status:
7094
+ $ref: '#/components/schemas/CaseStatus'
7095
+ title:
7096
+ description: Title
7097
+ example: Memory leak investigation on API
7098
+ type: string
7099
+ type:
7100
+ $ref: '#/components/schemas/CaseType'
7101
+ type: object
7093
7102
CaseResourceType:
7094
7103
default: case
7095
7104
description: Case resource type
@@ -7154,6 +7163,33 @@ components:
7154
7163
type: string
7155
7164
x-enum-varnames:
7156
7165
- STANDARD
7166
+ CaseUpdateAttributes:
7167
+ description: Case update attributes
7168
+ properties:
7169
+ attributes:
7170
+ $ref: '#/components/schemas/CaseUpdateAttributesAttributes'
7171
+ type:
7172
+ $ref: '#/components/schemas/CaseResourceType'
7173
+ required:
7174
+ - attributes
7175
+ - type
7176
+ type: object
7177
+ CaseUpdateAttributesAttributes:
7178
+ description: Case update attributes attributes
7179
+ properties:
7180
+ attributes:
7181
+ $ref: '#/components/schemas/CaseAttributes'
7182
+ required:
7183
+ - attributes
7184
+ type: object
7185
+ CaseUpdateAttributesRequest:
7186
+ description: Case update attributes request
7187
+ properties:
7188
+ data:
7189
+ $ref: '#/components/schemas/CaseUpdateAttributes'
7190
+ required:
7191
+ - data
7192
+ type: object
7157
7193
CaseUpdatePriority:
7158
7194
description: Case priority status
7159
7195
properties:
@@ -46558,6 +46594,47 @@ paths:
46558
46594
x-menu-order: 6
46559
46595
x-undo:
46560
46596
type: idempotent
46597
+ /api/v2/cases/{case_id}/attributes:
46598
+ post:
46599
+ description: Update case attributes
46600
+ operationId: UpdateAttributes
46601
+ parameters:
46602
+ - $ref: '#/components/parameters/CaseIDPathParameter'
46603
+ requestBody:
46604
+ content:
46605
+ application/json:
46606
+ schema:
46607
+ $ref: '#/components/schemas/CaseUpdateAttributesRequest'
46608
+ description: Case attributes update payload
46609
+ required: true
46610
+ responses:
46611
+ '200':
46612
+ content:
46613
+ application/json:
46614
+ schema:
46615
+ $ref: '#/components/schemas/CaseResponse'
46616
+ description: OK
46617
+ '400':
46618
+ $ref: '#/components/responses/BadRequestResponse'
46619
+ '401':
46620
+ $ref: '#/components/responses/UnauthorizedResponse'
46621
+ '403':
46622
+ $ref: '#/components/responses/ForbiddenResponse'
46623
+ '404':
46624
+ $ref: '#/components/responses/NotFoundResponse'
46625
+ '429':
46626
+ $ref: '#/components/responses/TooManyRequestsResponse'
46627
+ security:
46628
+ - apiKeyAuth: []
46629
+ appKeyAuth: []
46630
+ - AuthZ:
46631
+ - cases_write
46632
+ summary: Update case attributes
46633
+ tags:
46634
+ - Case Management
46635
+ x-menu-order: 10
46636
+ x-undo:
46637
+ type: idempotent
46561
46638
/api/v2/cases/{case_id}/priority:
46562
46639
post:
46563
46640
description: Update case priority
0 commit comments