Skip to content

Commit 0af4f53

Browse files
authored
Modify http status code as response for manage-audience (#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.
1 parent 4e10c73 commit 0af4f53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

manage-audience.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ paths:
3232
"$ref": "#/components/schemas/CreateAudienceGroupRequest"
3333
required: true
3434
responses:
35-
"200":
35+
"202":
3636
description: "OK"
3737
content:
3838
"application/json":
@@ -61,7 +61,7 @@ paths:
6161
"$ref": "#/components/schemas/AddAudienceToAudienceGroupRequest"
6262
required: true
6363
responses:
64-
"200":
64+
"202":
6565
description: "OK"
6666
# empty JSON object
6767

@@ -110,7 +110,7 @@ paths:
110110
contentType: text/plain
111111
required: true
112112
responses:
113-
"200":
113+
"202":
114114
description: "OK"
115115
content:
116116
"application/json":
@@ -180,7 +180,7 @@ paths:
180180
"$ref": "#/components/schemas/CreateClickBasedAudienceGroupRequest"
181181
required: true
182182
responses:
183-
"200":
183+
"202":
184184
description: "OK"
185185
content:
186186
"application/json":
@@ -213,7 +213,7 @@ paths:
213213
"$ref": "#/components/schemas/CreateImpBasedAudienceGroupRequest"
214214
required: true
215215
responses:
216-
"200":
216+
"202":
217217
description: "OK"
218218
content:
219219
"application/json":

0 commit comments

Comments
 (0)