Skip to content

Commit 31c8367

Browse files
Automated build 'Automated commit by github action: 21442822641
Original commit message: Feature/devrel 2360 update entitlement metadata response 201 (#2552) * DEVREL-2360: Update entitlement metadata endpoint to return 201 Created Changed POST /api/v2025/entitlements/{id}/access-model-metadata/{attributeKey}/values/{attributeValue} response code from 200 to 201 Created to align with the actual implementation in EntitlementV3Controller which uses createdResponse(). * DEVREL-2360: Update v2024 and beta versions to return 201 Created Applied the same fix to v2024 and beta API versions to ensure consistency across all versions of the entitlement metadata endpoint.' python sdk: 21442839073
1 parent 465cfdf commit 31c8367

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

sailpoint/beta/api/entitlements_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def create_access_model_metadata_for_entitlement(
106106
)
107107

108108
_response_types_map: Dict[str, Optional[str]] = {
109-
'200': "Entitlement",
109+
'201': "Entitlement",
110110
'400': "ErrorResponseDto",
111111
'401': "ListAccessModelMetadataAttribute401Response",
112112
'403': "ErrorResponseDto",
@@ -186,7 +186,7 @@ def create_access_model_metadata_for_entitlement_with_http_info(
186186
)
187187

188188
_response_types_map: Dict[str, Optional[str]] = {
189-
'200': "Entitlement",
189+
'201': "Entitlement",
190190
'400': "ErrorResponseDto",
191191
'401': "ListAccessModelMetadataAttribute401Response",
192192
'403': "ErrorResponseDto",
@@ -266,7 +266,7 @@ def create_access_model_metadata_for_entitlement_without_preload_content(
266266
)
267267

268268
_response_types_map: Dict[str, Optional[str]] = {
269-
'200': "Entitlement",
269+
'201': "Entitlement",
270270
'400': "ErrorResponseDto",
271271
'401': "ListAccessModelMetadataAttribute401Response",
272272
'403': "ErrorResponseDto",

sailpoint/beta/docs/Methods/EntitlementsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Path | attribute_value | **str** | True | Technical name of the Attribute Val
9898
### Responses
9999
Code | Description | Data Type | Response headers |
100100
------------- | ------------- | ------------- |------------------|
101-
200 | OK | Entitlement | - |
101+
201 | Created | Entitlement | - |
102102
400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto | - |
103103
401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListAccessModelMetadataAttribute401Response | - |
104104
403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto | - |

sailpoint/v2024/api/entitlements_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def create_access_model_metadata_for_entitlement(
106106
)
107107

108108
_response_types_map: Dict[str, Optional[str]] = {
109-
'200': "Entitlement",
109+
'201': "Entitlement",
110110
'400': "ErrorResponseDto",
111111
'401': "ListAccessProfiles401Response",
112112
'403': "ErrorResponseDto",
@@ -186,7 +186,7 @@ def create_access_model_metadata_for_entitlement_with_http_info(
186186
)
187187

188188
_response_types_map: Dict[str, Optional[str]] = {
189-
'200': "Entitlement",
189+
'201': "Entitlement",
190190
'400': "ErrorResponseDto",
191191
'401': "ListAccessProfiles401Response",
192192
'403': "ErrorResponseDto",
@@ -266,7 +266,7 @@ def create_access_model_metadata_for_entitlement_without_preload_content(
266266
)
267267

268268
_response_types_map: Dict[str, Optional[str]] = {
269-
'200': "Entitlement",
269+
'201': "Entitlement",
270270
'400': "ErrorResponseDto",
271271
'401': "ListAccessProfiles401Response",
272272
'403': "ErrorResponseDto",

sailpoint/v2024/docs/Methods/EntitlementsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Path | attribute_value | **str** | True | Technical name of the Attribute Val
9898
### Responses
9999
Code | Description | Data Type | Response headers |
100100
------------- | ------------- | ------------- |------------------|
101-
200 | OK | Entitlement | - |
101+
201 | Created | Entitlement | - |
102102
400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto | - |
103103
401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListAccessProfiles401Response | - |
104104
403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto | - |

sailpoint/v2025/api/entitlements_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def create_access_model_metadata_for_entitlement(
106106
)
107107

108108
_response_types_map: Dict[str, Optional[str]] = {
109-
'200': "Entitlement",
109+
'201': "Entitlement",
110110
'400': "ErrorResponseDto",
111111
'401': "ListAccessProfiles401Response",
112112
'403': "ErrorResponseDto",
@@ -186,7 +186,7 @@ def create_access_model_metadata_for_entitlement_with_http_info(
186186
)
187187

188188
_response_types_map: Dict[str, Optional[str]] = {
189-
'200': "Entitlement",
189+
'201': "Entitlement",
190190
'400': "ErrorResponseDto",
191191
'401': "ListAccessProfiles401Response",
192192
'403': "ErrorResponseDto",
@@ -266,7 +266,7 @@ def create_access_model_metadata_for_entitlement_without_preload_content(
266266
)
267267

268268
_response_types_map: Dict[str, Optional[str]] = {
269-
'200': "Entitlement",
269+
'201': "Entitlement",
270270
'400': "ErrorResponseDto",
271271
'401': "ListAccessProfiles401Response",
272272
'403': "ErrorResponseDto",

sailpoint/v2025/docs/Methods/EntitlementsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Path | attribute_value | **str** | True | Technical name of the Attribute Val
9898
### Responses
9999
Code | Description | Data Type | Response headers |
100100
------------- | ------------- | ------------- |------------------|
101-
200 | OK | Entitlement | - |
101+
201 | Created | Entitlement | - |
102102
400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto | - |
103103
401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListAccessProfiles401Response | - |
104104
403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto | - |

0 commit comments

Comments
 (0)