|
1639 | 1639 | }] |
1640 | 1640 | }, |
1641 | 1641 | "IdentityObject": { |
1642 | | - "type": "object", |
1643 | | - "properties": { |
1644 | | - "onesignal_id": { |
1645 | | - "type": "string", |
1646 | | - "format": "uuid" |
1647 | | - }, |
1648 | | - "external_id": { |
1649 | | - "type": "string" |
1650 | | - } |
1651 | | - }, |
1652 | | - "additionalProperties": { |
1653 | | - "type": "string" |
1654 | | - }, |
1655 | | - "required": [ |
1656 | | - "onesignal_id" |
1657 | | - ] |
| 1642 | + "type": "object" |
1658 | 1643 | }, |
1659 | 1644 | "PropertiesObject": { |
1660 | 1645 | "type": "object", |
|
3015 | 3000 | ] |
3016 | 3001 | } |
3017 | 3002 | }, |
3018 | | - "/user": { |
| 3003 | + "/apps/{app_id}/user": { |
3019 | 3004 | "post": { |
3020 | 3005 | "operationId": "create_user", |
3021 | 3006 | "description": "Creates a User, optionally Subscriptions owned by the User as well as Aliases.\nAliases provided in the payload will be used to look up an existing User.", |
|
3076 | 3061 | } |
3077 | 3062 | } |
3078 | 3063 | }, |
| 3064 | + "parameters": [ |
| 3065 | + { |
| 3066 | + "in": "path", |
| 3067 | + "name": "app_id", |
| 3068 | + "required": true, |
| 3069 | + "schema": { |
| 3070 | + "type": "string" |
| 3071 | + } |
| 3072 | + } |
| 3073 | + ], |
3079 | 3074 | "security": [ |
3080 | 3075 | { |
3081 | 3076 | "app_key": [] |
3082 | 3077 | } |
3083 | 3078 | ] |
3084 | 3079 | } |
3085 | 3080 | }, |
3086 | | - "/user/by/{alias_label}/{alias_id}": { |
| 3081 | + "/apps/{app_id}/user/by/{alias_label}/{alias_id}": { |
3087 | 3082 | "get": { |
3088 | 3083 | "operationId": "fetch_user", |
3089 | 3084 | "description": "Returns the User’s properties, Aliases, and Subscriptions.", |
3090 | 3085 | "parameters": [ |
| 3086 | + { |
| 3087 | + "in": "path", |
| 3088 | + "name": "app_id", |
| 3089 | + "required": true, |
| 3090 | + "schema": { |
| 3091 | + "type": "string" |
| 3092 | + } |
| 3093 | + }, |
3091 | 3094 | { |
3092 | 3095 | "in": "path", |
3093 | 3096 | "name": "alias_label", |
|
3127 | 3130 | "operationId": "update_user", |
3128 | 3131 | "description": "Updates an existing User’s properties.", |
3129 | 3132 | "parameters": [ |
| 3133 | + { |
| 3134 | + "in": "path", |
| 3135 | + "name": "app_id", |
| 3136 | + "required": true, |
| 3137 | + "schema": { |
| 3138 | + "type": "string" |
| 3139 | + } |
| 3140 | + }, |
3130 | 3141 | { |
3131 | 3142 | "in": "header", |
3132 | 3143 | "name": "subscription_id", |
|
3189 | 3200 | "operationId": "delete_user", |
3190 | 3201 | "description": "Removes the User identified by (:alias_label, :alias_id), and all Subscriptions and Aliases", |
3191 | 3202 | "parameters": [ |
| 3203 | + { |
| 3204 | + "in": "path", |
| 3205 | + "name": "app_id", |
| 3206 | + "required": true, |
| 3207 | + "schema": { |
| 3208 | + "type": "string" |
| 3209 | + } |
| 3210 | + }, |
3192 | 3211 | { |
3193 | 3212 | "in": "path", |
3194 | 3213 | "name": "alias_label", |
|
3213 | 3232 | } |
3214 | 3233 | } |
3215 | 3234 | }, |
3216 | | - "/user/by/{alias_label}/{alias_id}/identity": { |
3217 | | - "put": { |
| 3235 | + "/apps/{app_id}/user/by/{alias_label}/{alias_id}/identity": { |
| 3236 | + "patch": { |
3218 | 3237 | "operationId": "identify_user_by_alias", |
3219 | 3238 | "description": "Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).", |
3220 | 3239 | "parameters": [ |
| 3240 | + { |
| 3241 | + "in": "path", |
| 3242 | + "name": "app_id", |
| 3243 | + "required": true, |
| 3244 | + "schema": { |
| 3245 | + "type": "string" |
| 3246 | + } |
| 3247 | + }, |
3221 | 3248 | { |
3222 | 3249 | "in": "path", |
3223 | 3250 | "name": "alias_label", |
|
3298 | 3325 | "operationId": "fetch_user_identity", |
3299 | 3326 | "description": "Lists all Aliases for the User identified by (:alias_label, :alias_id).", |
3300 | 3327 | "parameters": [ |
| 3328 | + { |
| 3329 | + "in": "path", |
| 3330 | + "name": "app_id", |
| 3331 | + "required": true, |
| 3332 | + "schema": { |
| 3333 | + "type": "string" |
| 3334 | + } |
| 3335 | + }, |
3301 | 3336 | { |
3302 | 3337 | "in": "path", |
3303 | 3338 | "name": "alias_label", |
|
3334 | 3369 | ] |
3335 | 3370 | } |
3336 | 3371 | }, |
3337 | | - "/user/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete}": { |
| 3372 | + "/apps/{app_id}/user/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete}": { |
3338 | 3373 | "delete": { |
3339 | 3374 | "operationId": "delete_alias", |
3340 | 3375 | "description": "Deletes an alias by alias label", |
3341 | 3376 | "parameters": [ |
| 3377 | + { |
| 3378 | + "in": "path", |
| 3379 | + "name": "app_id", |
| 3380 | + "required": true, |
| 3381 | + "schema": { |
| 3382 | + "type": "string" |
| 3383 | + } |
| 3384 | + }, |
3342 | 3385 | { |
3343 | 3386 | "in": "path", |
3344 | 3387 | "name": "alias_label", |
|
3383 | 3426 | ] |
3384 | 3427 | } |
3385 | 3428 | }, |
3386 | | - "/subscriptions/{subscription_id}": { |
| 3429 | + "/apps/{app_id}/subscriptions/{subscription_id}": { |
3387 | 3430 | "patch": { |
3388 | 3431 | "operationId": "update_subscription", |
3389 | 3432 | "description": "Updates an existing Subscription’s properties.", |
3390 | 3433 | "parameters": [ |
| 3434 | + { |
| 3435 | + "in": "path", |
| 3436 | + "name": "app_id", |
| 3437 | + "required": true, |
| 3438 | + "schema": { |
| 3439 | + "type": "string" |
| 3440 | + } |
| 3441 | + }, |
3391 | 3442 | { |
3392 | 3443 | "in": "path", |
3393 | 3444 | "name": "subscription_id", |
|
3427 | 3478 | "operationId": "delete_subscription", |
3428 | 3479 | "description": "Deletes the Subscription.", |
3429 | 3480 | "parameters": [ |
| 3481 | + { |
| 3482 | + "in": "path", |
| 3483 | + "name": "app_id", |
| 3484 | + "required": true, |
| 3485 | + "schema": { |
| 3486 | + "type": "string" |
| 3487 | + } |
| 3488 | + }, |
3430 | 3489 | { |
3431 | 3490 | "in": "path", |
3432 | 3491 | "name": "subscription_id", |
|
3448 | 3507 | ] |
3449 | 3508 | } |
3450 | 3509 | }, |
3451 | | - "/subscriptions/{subscription_id}/identity": { |
| 3510 | + "/apps/{app_id}/subscriptions/{subscription_id}/identity": { |
3452 | 3511 | "get": { |
3453 | 3512 | "operationId": "fetch_aliases", |
3454 | 3513 | "description": "Lists all Aliases for the User identified by :subscription_id.", |
3455 | 3514 | "parameters": [ |
| 3515 | + { |
| 3516 | + "in": "path", |
| 3517 | + "name": "app_id", |
| 3518 | + "required": true, |
| 3519 | + "schema": { |
| 3520 | + "type": "string" |
| 3521 | + } |
| 3522 | + }, |
3456 | 3523 | { |
3457 | 3524 | "in": "path", |
3458 | 3525 | "name": "subscription_id", |
|
3485 | 3552 | } |
3486 | 3553 | ] |
3487 | 3554 | }, |
3488 | | - "put": { |
| 3555 | + "patch": { |
3489 | 3556 | "operationId": "identify_user_by_subscription_id", |
3490 | 3557 | "description": "Upserts one or more Aliases for the User identified by :subscription_id.", |
3491 | 3558 | "parameters": [ |
| 3559 | + { |
| 3560 | + "in": "path", |
| 3561 | + "name": "app_id", |
| 3562 | + "required": true, |
| 3563 | + "schema": { |
| 3564 | + "type": "string" |
| 3565 | + } |
| 3566 | + }, |
3492 | 3567 | { |
3493 | 3568 | "in": "path", |
3494 | 3569 | "name": "subscription_id", |
|
3532 | 3607 | ] |
3533 | 3608 | } |
3534 | 3609 | }, |
3535 | | - "/subscriptions/{subscription_id}/owner": { |
| 3610 | + "/apps/{app_id}/subscriptions/{subscription_id}/owner": { |
3536 | 3611 | "patch": { |
3537 | 3612 | "operationId": "transfer_subscription", |
3538 | 3613 | "description": "Transfers this Subscription to the User identified by the identity in the payload.", |
3539 | 3614 | "parameters": [ |
| 3615 | + { |
| 3616 | + "in": "path", |
| 3617 | + "name": "app_id", |
| 3618 | + "required": true, |
| 3619 | + "schema": { |
| 3620 | + "type": "string" |
| 3621 | + } |
| 3622 | + }, |
3540 | 3623 | { |
3541 | 3624 | "in": "path", |
3542 | 3625 | "name": "subscription_id", |
|
3584 | 3667 | ] |
3585 | 3668 | } |
3586 | 3669 | }, |
3587 | | - "/subscriptions/{subscription_id}/iams": { |
| 3670 | + "/apps/{app_id}/subscriptions/{subscription_id}/iams": { |
3588 | 3671 | "get": { |
3589 | 3672 | "operationId": "get_eligible_iams", |
3590 | 3673 | "description": "Manifest of In-App Messages the Subscription is eligible to display by the SDK.", |
3591 | 3674 | "parameters": [ |
| 3675 | + { |
| 3676 | + "in": "path", |
| 3677 | + "name": "app_id", |
| 3678 | + "required": true, |
| 3679 | + "schema": { |
| 3680 | + "type": "string" |
| 3681 | + } |
| 3682 | + }, |
3592 | 3683 | { |
3593 | 3684 | "in": "path", |
3594 | 3685 | "name": "subscription_id", |
|
0 commit comments