Skip to content

Add includesOwnedAudienceGroups Parameter to Audience API #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 9 additions & 77 deletions manage-audience.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,26 +256,6 @@ paths:
"200":
description: "OK"

"/v2/bot/audienceGroup/{audienceGroupId}/activate":
put:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#activate-audience-group
tags:
- manage-audience
operationId: activateAudienceGroup
description: "Activate audience"
parameters:
- name: audienceGroupId
in: path
required: true
description: "The audience ID."
schema:
type: integer
format: int64
responses:
"202":
description: "Accepted"

"/v2/bot/audienceGroup/{audienceGroupId}":
parameters:
- name: audienceGroupId
Expand Down Expand Up @@ -495,41 +475,6 @@ paths:
size: 40
page: 1

"/v2/bot/audienceGroup/authorityLevel":
get:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-authority-level
tags:
- manage-audience
operationId: getAudienceGroupAuthorityLevel
description: "Get the authority level of the audience"
responses:
"200":
description: "OK"
content:
"application/json":
schema:
"$ref": "#/components/schemas/GetAudienceGroupAuthorityLevelResponse"
example:
authorityLevel: PUBLIC
put:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#change-authority-level
tags:
- manage-audience
operationId: updateAudienceGroupAuthorityLevel
description: "Change the authority level of the audience"
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/UpdateAudienceGroupAuthorityLevelRequest"
required: true
responses:
"200":
description: "OK"
# empty json response

"/v2/bot/audienceGroup/shared/{audienceGroupId}":
parameters:
- name: audienceGroupId
Expand Down Expand Up @@ -681,6 +626,15 @@ paths:

`OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window).
`MESSAGING_API`: Return only audiences created with Messaging API.
- name: includesOwnedAudienceGroups
in: query
required: false
schema:
type: boolean
default: false
description: |+
true: Include audienceGroups owned by LINE Official Account Manager
false: Respond only audienceGroups shared by Business Manager
responses:
"200":
description: "OK"
Expand Down Expand Up @@ -1251,28 +1205,6 @@ components:
type: integer
format: int64
description: "The maximum number of audiences on the current page."
GetAudienceGroupAuthorityLevelResponse:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-authority-level
type: object
description: "Get the authority level of the audience"
properties:
authorityLevel:
"$ref": "#/components/schemas/AudienceGroupAuthorityLevel"
AudienceGroupAuthorityLevel:
description: "authority level"
type: string
enum:
- PUBLIC
- PRIVATE
UpdateAudienceGroupAuthorityLevelRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#change-authority-level
type: object
description: "Change the authority level of the audience"
properties:
authorityLevel:
"$ref": "#/components/schemas/AudienceGroupAuthorityLevel"

ErrorResponse:
externalDocs:
Expand Down