Skip to content

Commit 2e605f1

Browse files
github-actions[bot]github-actions
and
github-actions
authored
Modify http status code as response for manage-audience (#766)
line/line-openapi#87 This change modifies the HTTP status code for the following audience group-related endpoints, as they were incorrect. Some http status codes are wrong. They should be 202, not 200. 1. `POST /v2/bot/audienceGroup/upload` (`createAudienceGroup`) 2. `PUT /v2/bot/audienceGroup/upload` (`addAudienceToAudienceGroup`) 3. `POST /v2/bot/audienceGroup/upload/byFile` (`createAudienceForUploadingUserIds`) 4. `POST /v2/bot/audienceGroup/click` (`createClickBasedAudienceGroup`) 5. `POST /v2/bot/audienceGroup/imp` (`createImpBasedAudienceGroup`) You can also check if this change is correct by reading https://developers.line.biz/en/reference/messaging-api/#manage-audience-group. NOTE: This change is not a modification of the messaging API itself. It is simply a correction of an error in the YAML description. Co-authored-by: github-actions <[email protected]>
1 parent c3d7413 commit 2e605f1

7 files changed

+14
-14
lines changed

line-openapi

linebot/v3/audience/api/async_manage_audience.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def create_audience_group_with_http_info(self, create_audience_group_request : C
497497
_auth_settings = ['Bearer'] # noqa: E501
498498

499499
_response_types_map = {
500-
'200': "CreateAudienceGroupResponse",
500+
'202': "CreateAudienceGroupResponse",
501501
}
502502

503503
return self.api_client.call_api(
@@ -655,7 +655,7 @@ def create_click_based_audience_group_with_http_info(self, create_click_based_au
655655
_auth_settings = ['Bearer'] # noqa: E501
656656

657657
_response_types_map = {
658-
'200': "CreateClickBasedAudienceGroupResponse",
658+
'202': "CreateClickBasedAudienceGroupResponse",
659659
}
660660

661661
return self.api_client.call_api(
@@ -813,7 +813,7 @@ def create_imp_based_audience_group_with_http_info(self, create_imp_based_audien
813813
_auth_settings = ['Bearer'] # noqa: E501
814814

815815
_response_types_map = {
816-
'200': "CreateImpBasedAudienceGroupResponse",
816+
'202': "CreateImpBasedAudienceGroupResponse",
817817
}
818818

819819
return self.api_client.call_api(

linebot/v3/audience/api/async_manage_audience_blob.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def create_audience_for_uploading_user_ids_with_http_info(self, file : Annotated
399399
_auth_settings = ['Bearer'] # noqa: E501
400400

401401
_response_types_map = {
402-
'200': "CreateAudienceGroupResponse",
402+
'202': "CreateAudienceGroupResponse",
403403
}
404404

405405
return self.api_client.call_api(

linebot/v3/audience/api/manage_audience.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def create_audience_group_with_http_info(self, create_audience_group_request : C
465465
_auth_settings = ['Bearer'] # noqa: E501
466466

467467
_response_types_map = {
468-
'200': "CreateAudienceGroupResponse",
468+
'202': "CreateAudienceGroupResponse",
469469
}
470470

471471
return self.api_client.call_api(
@@ -613,7 +613,7 @@ def create_click_based_audience_group_with_http_info(self, create_click_based_au
613613
_auth_settings = ['Bearer'] # noqa: E501
614614

615615
_response_types_map = {
616-
'200': "CreateClickBasedAudienceGroupResponse",
616+
'202': "CreateClickBasedAudienceGroupResponse",
617617
}
618618

619619
return self.api_client.call_api(
@@ -761,7 +761,7 @@ def create_imp_based_audience_group_with_http_info(self, create_imp_based_audien
761761
_auth_settings = ['Bearer'] # noqa: E501
762762

763763
_response_types_map = {
764-
'200': "CreateImpBasedAudienceGroupResponse",
764+
'202': "CreateImpBasedAudienceGroupResponse",
765765
}
766766

767767
return self.api_client.call_api(

linebot/v3/audience/api/manage_audience_blob.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def create_audience_for_uploading_user_ids_with_http_info(self, file : Annotated
377377
_auth_settings = ['Bearer'] # noqa: E501
378378

379379
_response_types_map = {
380-
'200': "CreateAudienceGroupResponse",
380+
'202': "CreateAudienceGroupResponse",
381381
}
382382

383383
return self.api_client.call_api(

linebot/v3/audience/docs/ManageAudience.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void (empty response body)
160160
### HTTP response details
161161
| Status code | Description | Response headers |
162162
|-------------|-------------|------------------|
163-
**200** | OK | - |
163+
**202** | OK | - |
164164

165165
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
166166

@@ -236,7 +236,7 @@ Name | Type | Description | Notes
236236
### HTTP response details
237237
| Status code | Description | Response headers |
238238
|-------------|-------------|------------------|
239-
**200** | OK | - |
239+
**202** | OK | - |
240240

241241
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
242242

@@ -312,7 +312,7 @@ Name | Type | Description | Notes
312312
### HTTP response details
313313
| Status code | Description | Response headers |
314314
|-------------|-------------|------------------|
315-
**200** | OK | - |
315+
**202** | OK | - |
316316

317317
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
318318

@@ -388,7 +388,7 @@ Name | Type | Description | Notes
388388
### HTTP response details
389389
| Status code | Description | Response headers |
390390
|-------------|-------------|------------------|
391-
**200** | OK | - |
391+
**202** | OK | - |
392392

393393
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
394394

linebot/v3/audience/docs/ManageAudienceBlob.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Name | Type | Description | Notes
161161
### HTTP response details
162162
| Status code | Description | Response headers |
163163
|-------------|-------------|------------------|
164-
**200** | OK | - |
164+
**202** | OK | - |
165165

166166
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
167167

0 commit comments

Comments
 (0)